Changed report button + Added disclaimer on report page + Added search filter
[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 <div class="disclaimer">
6     <ul>
7     <%= t('issues.new.disclaimer.placeholder') %>:
8         <li> --> <%= t('issues.new.disclaimer.placeholder1') %> </li>   
9         <li> --> <%= t('issues.new.disclaimer.placeholder2') %> </li>   
10         <li> --> <%= t('issues.new.disclaimer.placeholder3') %> </li>   
11     </ul>
12 </div>
13
14 <%= form_for(@issue) do |f| %>
15     <%= f.error_messages %>
16         <fieldset>
17             <div class='form-row'>
18                 <%= f.hidden_field :reportable_id %>
19                 <%= f.hidden_field :reportable_type %>
20                 <%= f.hidden_field :reported_user_id %>
21             </div>
22
23             <div class='form-row' style='width:600px'>
24                 <p><%= t('issues.new.select') %>:</p>
25
26                 <% @report_strings_yaml.each do |k,v| %>
27                     <div class="new-report-form">
28                         <div class="new-report-checkbox">
29                         <%= radio_button_tag :report_type, v[:type].to_s %>
30                         </div>
31                         <div class="new-report-string">
32                             <%= label_tag v[:details].to_s %> <br/>
33                         </div>
34                     </div>
35                     <br/>
36                 <% end %> 
37                 
38                 <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
39             </div>
40
41             <div class='buttons'>
42                 <%= submit_tag %>
43             </div>
44         
45         </fieldset>
46 <% end %>