X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/29aac6e14964d612ee6a06998ae61bc8923f5946..b9659cdfc52aec4a2063b2af8e24033f98e380d8:/app/views/reports/new.html.erb diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 599456db2..8106ccfc9 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -2,41 +2,22 @@

<%= 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(".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 => 5, :placeholder => t(".details") %> -
- -
- <%= f.submit %> -
-
+ <%= 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 %>