Added report icon + changes to admin UI + changes to report form + few other minor...
[rails.git] / app / views / issues / new.html.erb
1 <% content_for :heading do %>
2     <h1>Report <%= reportable_url(@issue.reportable) %></h1>
3 <% end %>
4
5 <%= form_for(@issue) do |f| %>
6     <%= f.error_messages %>
7         <fieldset>
8             <div class='form-row'>
9                 <%= f.hidden_field :reportable_id %>
10                 <%= f.hidden_field :reportable_type %>
11                 <%= f.hidden_field :reported_user_id %>
12             </div>
13
14             <div class='form-row' style='width:600px'>
15                 <p><%= t('issues.new.select') %>:</p>
16
17                 <% @report_strings_yaml.each do |k,v| %>
18                     <div class="new-report-form">
19                         <div class="new-report-checkbox">
20                         <%= radio_button_tag :report_type, v[:type].to_s %>
21                         </div>
22                         <div class="new-report-string">
23                             <%= label_tag v[:details].to_s %> <br/>
24                         </div>
25                     </div>
26                     <br/>
27                 <% end %> 
28                 
29                 <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
30             </div>
31
32             <div class='buttons'>
33                 <%= submit_tag %>
34             </div>
35         
36         </fieldset>
37 <% end %>