X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d7612f42d04727c037deb3ef66ac421ea347d54b..79bd1777ab0c165492122b10a22ecc2fb7cc4715:/app/views/reports/new.html.erb diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 6dad7aa43..705457cb6 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -1,5 +1,5 @@ <% content_for :heading do %> -

Report <%= reportable_url(@report.issue.reportable) %>

+

<%= t ".title_html", :link => reportable_url(@report.issue.reportable) %>

<% end %>
@@ -23,10 +23,10 @@

<%= t('issues.new.select') %>:

- <% @report_strings_yaml.each do |k,v| %> + <% Report.categories_for(@report.issue.reportable).each do |c| %>
- <%= radio_button_tag :report_type, v[:type].to_s %> - <%= label_tag v[:details].to_s %>
+ <%= radio_button :report, :category, c %> + <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %>
<% end %>