42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
<% content_for :heading do %>
|
|
<h1><%= t ".title_html", :link => reportable_url(@report.issue.reportable) %></h1>
|
|
<% end %>
|
|
|
|
<div class="disclaimer">
|
|
<ul>
|
|
<%= t('issues.new.disclaimer.intro') %>:
|
|
<li> <%= t('issues.new.disclaimer.not_just_mistake') %> </li>
|
|
<li> <%= t('issues.new.disclaimer.unable_to_fix') %> </li>
|
|
<li> <%= t('issues.new.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 %>
|
|
|
|
<div class='form-row' style='width:600px'>
|
|
<p><%= t('issues.new.select') %>:</p>
|
|
|
|
<div class="new-report-form">
|
|
<% Report.categories_for(@report.issue.reportable).each do |c| %>
|
|
<div style="padding-left:5px">
|
|
<%= radio_button :report, :category, c %>
|
|
<%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<br/>
|
|
<%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
|
|
</div>
|
|
|
|
<div class='buttons'>
|
|
<%= f.submit %>
|
|
</div>
|
|
</fieldset>
|
|
<% end %>
|