<% content_for :heading do %>

<%= t ".title_html", :link => reportable_url(@report.issue.reportable) %>

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

<%= t('issues.new.select') %>:

<% Report.categories_for(@report.issue.reportable).each do |c| %>
<%= radio_button :report, :category, c %> <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %>
<% end %>

<%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
<%= submit_tag %>
<% end %>