<% content_for :heading do %>

Report a new Issue for <%= reportable_url(@issue.reportable) %>

<% end %> <%= form_for(@issue) do |f| %> <%= f.error_messages %>
<%= f.hidden_field :reportable_id %> <%= f.hidden_field :reportable_type %> <%= f.hidden_field :reported_user_id %>

Select one (or more) reasons for your report:

<%= check_box_tag :spam, "[SPAM]" %>
<%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.spam') %>

<%= check_box_tag :offensive, "[OFFENSIVE]" %>
<%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.offensive') %>

<%= check_box_tag :threat, "[THREAT]" %>
<%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.threat') %>

<% if @issue.reportable.class.name == "User" %>
<%= check_box_tag :vandal, "[VANDAL]" %>
<%= label_tag "This #{@issue.reportable.class.name} " + t('issues.report_strings.vandal') %>

<% end %>
<%= check_box_tag :other, "[OTHER]" %>
<%= label_tag t('issues.report_strings.other') %>


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