- <div class='form-row' style='width:600px'>
- <p><%= t('issues.new.select') %>:</p>
-
- <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>
+ <div class='form-row'>
+ <p><%= t(".select") %></p>
+ <ul>
+ <% Report.categories_for(@report.issue.reportable).each do |c| %>
+ <li>
+ <%= radio_button :report, :category, c, :required => true %>
+ <%= label_tag "report_category_#{c}", t(".categories.#{@report.issue.reportable.class.name.underscore}.#{c}_label") %> <br />
+ </li>
+ <% end %>
+ </ul>
+ </div>