X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d1d4f8192da5a266cddb17bb8970b2b04387888c..c7bc13668b78afde72e9b8f6644b001799e84eb9:/app/views/issues/new.html.erb?ds=sidebyside diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 476e06be2..499035db6 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -10,12 +10,69 @@ <%= f.hidden_field :reportable_type %> <%= f.hidden_field :reported_user_id %> +
- - <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: "Tell us what's wrong! Any information you can give will go on to help moderators a long way." %> +

Select one (or more) reasons for your report:

+ +
+
+ <%= check_box_tag :spam, "[SPAM]" %> +
+
+ <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.spam') %>
+
+
+
+ +
+
+ <%= check_box_tag :offensive, "[OFFENSIVE]" %> +
+
+ <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.offensive') %>
+
+
+
+ +
+
+ <%= check_box_tag :threat, "[THREAT]" %> +
+
+ <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.threat') %>
+
+
+
+ + <% if @issue.reportable.class.name == "User" %> +
+
+ <%= check_box_tag :vandal, "[VANDAL]" %> +
+
+ <%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.vandal') %>
+
+
+
+ <% end %> + +
+
+ <%= check_box_tag :other, "[OTHER]" %> +
+
+ <%= label_tag t('issues.report_strings.other') %>
+
+
+
+ +
+ <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: t('issues.new.details'), required: true %>
+
<%= submit_tag %>
+ <% end %> \ No newline at end of file