X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d1d4f8192da5a266cddb17bb8970b2b04387888c..b598979374985b8c62fac14588d685e29eac20a4:/app/views/issues/new.html.erb?ds=inline diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 476e06be2..4252b354f 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -1,7 +1,16 @@ <% content_for :heading do %> -

Report a new Issue for <%= reportable_url(@issue.reportable) %>

+

Report <%= reportable_url(@issue.reportable) %>

<% end %> +
+ +
+ <%= form_for(@issue) do |f| %> <%= f.error_messages %>
@@ -10,12 +19,28 @@ <%= 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." %> + +
+

<%= t('issues.new.select') %>:

+ + <% @report_strings_yaml.each do |k,v| %> +
+
+ <%= radio_button_tag :report_type, v[:type].to_s %> +
+
+ <%= label_tag v[:details].to_s %>
+
+
+
+ <% end %> + + <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
+
<%= submit_tag %>
+
<% end %> \ No newline at end of file