]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/new.html.erb
a2f43e9553f3a01c07b90a2c5d0138f3b0026c35
[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                 <div class="new-report-form">
27                     <% @report_strings_yaml.each do |k,v| %>
28                             <div style="padding-left:5px">
29                                 <%= radio_button_tag :report_type, v[:type].to_s %>
30                                 <%= label_tag v[:details].to_s %> <br/>
31                             </div>
32                     <% end %> 
33                 </div>
34                 
35                 <br/>
36                 <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
37             </div>
38
39             <div class='buttons'>
40                 <%= submit_tag %>
41             </div>
42         
43         </fieldset>
44 <% end %>