]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/reports/new.html.erb
Fully internationalise the issues and reports interfaces.
[rails.git] / app / views / reports / new.html.erb
index 6dad7aa43a314069ddbcd2f05a112aacd37ef467..705457cb6bb486d36ffe301dc06b89a5796b88c1 100644 (file)
@@ -1,5 +1,5 @@
 <% content_for :heading do %>
 <% content_for :heading do %>
-  <h1>Report <%= reportable_url(@report.issue.reportable) %></h1>
+  <h1><%= t ".title_html", :link => reportable_url(@report.issue.reportable) %></h1>
 <% end %>
 
 <div class="disclaimer">
 <% end %>
 
 <div class="disclaimer">
       <p><%= t('issues.new.select') %>:</p>
 
       <div class="new-report-form">
       <p><%= t('issues.new.select') %>:</p>
 
       <div class="new-report-form">
-        <% @report_strings_yaml.each do |k,v| %>
+        <% Report.categories_for(@report.issue.reportable).each do |c| %>
           <div style="padding-left:5px">
           <div style="padding-left:5px">
-            <%= radio_button_tag :report_type, v[:type].to_s %>
-            <%= label_tag v[:details].to_s %> <br/>
+            <%= radio_button :report, :category, c %>
+            <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
           </div>
         <% end %>
       </div>
           </div>
         <% end %>
       </div>