X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d5f02968f6f2dd153c74844e818a4d2b2ae24991..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 5f9c7ce08..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 %>
@@ -11,63 +20,22 @@ <%= f.hidden_field :reported_user_id %> -
-

Select one (or more) reasons for your report:

- -
-
- <%= check_box_tag :spam, "[SPAM]" %> -
-
- <%= label_tag "This #{@issue.reportable.class.name} is/contains spam." %>
-
-
-
- -
-
- <%= check_box_tag :offensive, "[OFFENSIVE]" %> -
-
- <%= label_tag "This #{@issue.reportable.class.name} is obscene/offensive." %>
-
-
-
- -
-
- <%= check_box_tag :threat, "[THREAT]" %> -
-
- <%= label_tag "This #{@issue.reportable.class.name} contains a threat." %>
-
-
-
+
+

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

- <% if @issue.reportable.class.name == "User" %> + <% @report_strings_yaml.each do |k,v| %>
- <%= check_box_tag :vandal, "[VANDAL]" %> + <%= radio_button_tag :report_type, v[:type].to_s %>
- <%= label_tag "This #{@issue.reportable.class.name} is a vandal." %>
+ <%= label_tag v[:details].to_s %>

- <% end %> - -
-
- <%= check_box_tag :other, "[OTHER]" %> -
-
- <%= label_tag "Other." %>
-
-
-
- -
- <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: "Please provide some more details into the problem. (This field cannot be left blank!)" %> + <% end %> + + <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>