]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/issues/new.html.erb
Changed report button + Added disclaimer on report page + Added search filter
[rails.git] / app / views / issues / new.html.erb
index 476e06be2bfd2f5eb3494718923636c7c0601786..4252b354fbd598ca530bba346021babc5d331f1a 100644 (file)
@@ -1,7 +1,16 @@
 <% content_for :heading do %>
 <% content_for :heading do %>
-    <h1>Report a new Issue for <%= reportable_url(@issue.reportable) %></h1>
+    <h1>Report <%= reportable_url(@issue.reportable) %></h1>
 <% end %>
 
 <% end %>
 
+<div class="disclaimer">
+    <ul>
+    <%= t('issues.new.disclaimer.placeholder') %>:
+        <li> --> <%= t('issues.new.disclaimer.placeholder1') %> </li>   
+        <li> --> <%= t('issues.new.disclaimer.placeholder2') %> </li>   
+        <li> --> <%= t('issues.new.disclaimer.placeholder3') %> </li>   
+    </ul>
+</div>
+
 <%= form_for(@issue) do |f| %>
     <%= f.error_messages %>
         <fieldset>
 <%= form_for(@issue) do |f| %>
     <%= f.error_messages %>
         <fieldset>
                 <%= f.hidden_field :reportable_type %>
                 <%= f.hidden_field :reported_user_id %>
             </div>
                 <%= f.hidden_field :reportable_type %>
                 <%= f.hidden_field :reported_user_id %>
             </div>
-            <div class='form-row'>
-                <label class="standard-label"><%= t 'issue.new.message' -%></label>
-                <%= text_area :report, :details, :cols => 80, :rows => 20, placeholder: "Tell us what's wrong! Any information you can give will go on to help moderators a long way." %>
+
+            <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">
+                        <%= radio_button_tag :report_type, v[:type].to_s %>
+                        </div>
+                        <div class="new-report-string">
+                            <%= label_tag v[:details].to_s %> <br/>
+                        </div>
+                    </div>
+                    <br/>
+                <% end %> 
+                
+                <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
             </div>
             </div>
+
             <div class='buttons'>
                 <%= submit_tag %>
             </div>
             <div class='buttons'>
                 <%= submit_tag %>
             </div>
+        
         </fieldset>
 <% end %>
\ No newline at end of file
         </fieldset>
 <% end %>
\ No newline at end of file