1 <% content_for :heading do %>
2 <h1>Report a new Issue for <%= reportable_url(@issue.reportable) %></h1>
5 <%= form_for(@issue) do |f| %>
6 <%= f.error_messages %>
9 <%= f.hidden_field :reportable_id %>
10 <%= f.hidden_field :reportable_type %>
11 <%= f.hidden_field :reported_user_id %>
14 <div class='form-row'>
15 <p>Select one (or more) reasons for your report:</p>
17 <div class="new-report-form">
18 <div class="new-report-checkbox">
19 <%= check_box_tag :spam, "[SPAM]" %>
21 <div class="new-report-string">
22 <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.spam') %> <br/>
27 <div class="new-report-form">
28 <div class="new-report-checkbox">
29 <%= check_box_tag :offensive, "[OFFENSIVE]" %>
31 <div class="new-report-string">
32 <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.offensive') %> <br/>
37 <div class="new-report-form">
38 <div class="new-report-checkbox">
39 <%= check_box_tag :threat, "[THREAT]" %>
41 <div class="new-report-string">
42 <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.threat') %> <br/>
47 <% if @issue.reportable.class.name == "User" %>
48 <div class="new-report-form">
49 <div class="new-report-checkbox">
50 <%= check_box_tag :vandal, "[VANDAL]" %>
52 <div class="new-report-string">
53 <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.vandal') %> <br/>
59 <div class="new-report-form">
60 <div class="new-report-checkbox">
61 <%= check_box_tag :other, "[OTHER]" %>
63 <div class="new-report-string">
64 <%= label_tag t('issues.report_strings.other') %> <br/>
69 <label class="standard-label"><b><%= t 'issue.new.message' -%>: </b></label> <br/>
70 <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: t('issues.new.details'), required: true %>