]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/new.html.erb
Made rubocop happy by formatting and minor syntax tweaks.
[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.intro') %>:
8         <li> <%= t('issues.new.disclaimer.not_just_mistake') %> </li>   
9         <li> <%= t('issues.new.disclaimer.unable_to_fix') %> </li>   
10         <li> <%= t('issues.new.disclaimer.resolve_with_user') %> </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 %>