X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79bd1777ab0c165492122b10a22ecc2fb7cc4715..3af16f6337b52546297e7e09a1aba9b0e1df7e15:/app/views/reports/new.html.erb diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 705457cb6..c607d2ed4 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -1,14 +1,14 @@ <% content_for :heading do %> -

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

+

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

<% end %> -
+
+ <%= t(".disclaimer.intro") %> +
  • <%= t(".disclaimer.not_just_mistake") %>
  • +
  • <%= t(".disclaimer.unable_to_fix") %>
  • +
  • <%= t(".disclaimer.resolve_with_user") %>
  • +
    <%= form_for(@report) do |f| %> @@ -19,24 +19,24 @@ <%= 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") %>
    - <%= submit_tag %> + <%= f.submit %>
    <% end %>