X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cf4cfc530ae54abee7b6a0dccbc9d4603ab35611..cf639202b802be9ce1a6f3f65e7d4f6292a2ad3a:/app/views/issues/new.html.erb diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 499035db6..e42ec19a6 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -1,5 +1,5 @@ <% content_for :heading do %> -

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

+

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

<% end %> <%= form_for(@issue) do |f| %> @@ -13,60 +13,20 @@

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" %> + <% @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} " + t('issues.report_strings.vandal') %>
+ <%= label_tag v[:details].to_s %>

- <% end %> - -
-
- <%= check_box_tag :other, "[OTHER]" %> -
-
- <%= label_tag t('issues.report_strings.other') %>
-
-
-
- -
+ <% end %> + +
<%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: t('issues.new.details'), required: true %>