<h1><%= t ".title_html", :link => link_to(reportable_title(@report.issue.reportable), reportable_url(@report.issue.reportable)) %></h1>
<% end %>
-<div class="report-disclaimer">
- <%= t('.disclaimer.intro') %>
- <ul>
- <li> <%= t('.disclaimer.not_just_mistake') %> </li>
- <li> <%= t('.disclaimer.unable_to_fix') %> </li>
- <li> <%= t('.disclaimer.resolve_with_user') %> </li>
+<div class="alert alert-warning">
+ <%= t(".disclaimer.intro") %>
+ <ul class="mb-0">
+ <li> <%= t(".disclaimer.not_just_mistake") %> </li>
+ <li> <%= t(".disclaimer.unable_to_fix") %> </li>
+ <li> <%= t(".disclaimer.resolve_with_user") %> </li>
</ul>
</div>
-<%= form_for(@report) do |f| %>
- <%= f.error_messages %>
- <fieldset>
- <%= 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 %>
- <div class='form-row'>
- <p><%= t('.select') %></p>
- <ul>
- <% Report.categories_for(@report.issue.reportable).each do |c| %>
- <li>
- <%= radio_button :report, :category, c, :required => true %>
- <%= label_tag "report_category_#{c}", t(".categories.#{@report.issue.reportable.class.name.underscore}.#{c}_label") %> <br/>
- </li>
- <% end %>
- </ul>
- </div>
-
- <div class='form-row'>
- <%= text_area :report, :details, :cols => 20, :rows => 5, placeholder: t('.details'), :required => true %>
- </div>
-
- <div class='buttons'>
- <%= f.submit %>
- </div>
- </fieldset>
+ <%= 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 %>