<% 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} is/contains spam." %>

<%= check_box_tag :offensive, "[OFFENSIVE]" %>
<%= label_tag "This #{@issue.reportable.class.name} is obscene/offensive." %>

<%= check_box_tag :threat, "[THREAT]" %>
<%= label_tag "This #{@issue.reportable.class.name} contains a threat." %>

<% if @issue.reportable.class.name == "User" %>
<%= check_box_tag :vandal, "[VANDAL]" %>
<%= label_tag "This #{@issue.reportable.class.name} is a vandal." %>

<% end %>
<%= check_box_tag :other, "[OTHER]" %>
<%= label_tag "Other." %>


<%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: "Please provide some more details into the problem. (This field cannot be left blank!)" %>
<%= submit_tag %>
<% end %>