]> git.openstreetmap.org Git - rails.git/blob - app/views/reports/new.html.erb
Lock multi_xml to 0.6 for ruby 3.0 compatibility
[rails.git] / app / views / reports / new.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".title_html", :link => link_to(reportable_title(@report.issue.reportable), reportable_url(@report.issue.reportable)) %></h1>
3 <% end %>
4
5 <div class="alert alert-warning">
6   <%= t(".disclaimer.intro") %>
7   <ul class="mb-0">
8     <li> <%= t(".disclaimer.not_just_mistake") %> </li>
9     <li> <%= t(".disclaimer.unable_to_fix") %> </li>
10     <li> <%= t(".disclaimer.resolve_with_user") %> </li>
11   </ul>
12 </div>
13
14 <%= bootstrap_form_for(@report) do |f| %>
15   <%= f.fields_for @report.issue do |issue_form| %>
16     <%= issue_form.hidden_field :reportable_id %>
17     <%= issue_form.hidden_field :reportable_type %>
18   <% end %>
19
20   <%= f.collection_radio_buttons :category, report_categories(@report.issue.reportable), :id, :label %>
21   <%= f.richtext_field :details, :rows => 18, :label_as_placeholder => true, :format => "markdown" %>
22   <%= f.primary %>
23 <% end %>