X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3bd06529c7f9920c4f71498277f453bf1b8dd030..152e3110403c7ac2568298069123e9015d42d8b3:/app/views/reports/new.html.erb diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index f3bda8880..a29104ae7 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -2,37 +2,37 @@

<%= t ".title_html", :link => link_to(reportable_title(@report.issue.reportable), reportable_url(@report.issue.reportable)) %>

<% end %> -
- +
+ <%= t(".disclaimer.intro") %> +
<%= form_for(@report) do |f| %> <%= f.error_messages %> -
+
<%= f.fields_for @report.issue do |issue_form| %> <%= issue_form.hidden_field :reportable_id %> <%= issue_form.hidden_field :reportable_type %> <% end %> -
-

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

- -
- <% Report.categories_for(@report.issue.reportable).each do |c| %> -
- <%= radio_button :report, :category, c %> - <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %>
-
- <% end %> -
+
+

<%= t(".select") %>

+
    + <% Report.categories_for(@report.issue.reportable).each do |c| %> +
  • + <%= radio_button :report, :category, c, :required => true %> + <%= label_tag "report_category_#{c}", t(".categories.#{@report.issue.reportable.class.name.underscore}.#{c}_label") %> +
  • + <% end %> +
+
-
- <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %> +
+ <%= text_area :report, :details, :cols => 20, :rows => 5, :placeholder => t(".details") %>