X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d7612f42d04727c037deb3ef66ac421ea347d54b..801944dbe4694fd895058b9444bacbe4e57d53e1:/app/views/reports/new.html.erb diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 6dad7aa43..8106ccfc9 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -1,42 +1,23 @@ <% content_for :heading do %> -

Report <%= 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") %> +
-<%= 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 %> +<%= bootstrap_form_for(@report) do |f| %> + <%= 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_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 %> -
-
+ <%= f.collection_radio_buttons :category, report_categories(@report.issue.reportable), :id, :label %> + <%= f.richtext_field :details, :rows => 18, :label_as_placeholder => true, :format => "markdown" %> + <%= f.primary %> <% end %>