X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73c95847a6680bea7f35fe5b3da6eb4e52757b9c..6bc81dc3e7f423a29003d12732599351a75d931a:/app/views/reports/new.html.erb?ds=sidebyside diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index a29104ae7..8106ccfc9 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -11,32 +11,13 @@ -<%= 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") %>

- -
- -
- <%= 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 %>