]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/issues/new.html.erb
Made rubocop happy by formatting and minor syntax tweaks.
[rails.git] / app / views / issues / new.html.erb
index 8a0055e5132834d0a44d01652d1e74ce0e889ea0..010394c293c0db91903f71282392d57cc623bfb7 100644 (file)
@@ -2,6 +2,15 @@
     <h1>Report <%= reportable_url(@issue.reportable) %></h1>
 <% end %>
 
+<div class="disclaimer">
+    <ul>
+    <%= t('issues.new.disclaimer.intro') %>:
+        <li> <%= t('issues.new.disclaimer.not_just_mistake') %> </li>   
+        <li> <%= t('issues.new.disclaimer.unable_to_fix') %> </li>   
+        <li> <%= t('issues.new.disclaimer.resolve_with_user') %> </li>   
+    </ul>
+</div>
+
 <%= form_for(@issue) do |f| %>
     <%= f.error_messages %>
         <fieldset>
                 <%= f.hidden_field :reported_user_id %>
             </div>
 
-            <div class='form-row'>
-                <p>Select one (or more) reasons for your report:</p>
+            <div class='form-row' style='width:600px'>
+                <p><%= t('issues.new.select') %>:</p>
 
-                <% @report_strings_yaml.each do |k,v| %>
-                    <div class="new-report-form">
-                        <div class="new-report-checkbox">
-                        <%= check_box_tag k.to_sym, v[:type].to_s %>
-                        </div>
-                        <div class="new-report-string">
-                            <%= label_tag v[:details].to_s %> <br/>
-                        </div>
-                    </div>
-                    <br/>
-                <% end %> 
+                <div class="new-report-form">
+                    <% @report_strings_yaml.each do |k,v| %>
+                            <div style="padding-left:5px">
+                                <%= radio_button_tag :report_type, v[:type].to_s %>
+                                <%= label_tag v[:details].to_s %> <br/>
+                            </div>
+                    <% end %> 
+                </div>
                 
-                <label class="standard-label"><b><%= t 'issue.new.message' -%>: </b></label> <br/>
-                <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: t('issues.new.details'), required: true %>
+                <br/>
+                <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
             </div>
 
             <div class='buttons'>
@@ -35,4 +41,4 @@
             </div>
         
         </fieldset>
-<% end %>
\ No newline at end of file
+<% end %>