- <div class='form-row'>
- <p><%= t('issues.new.select') %></p>
- <ul>
- <% Report.categories_for(@report.issue.reportable).each do |c| %>
- <li>
- <%= radio_button :report, :category, c %>
- <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
- </li>
- <% end %>
- </ul>
- </div>
-
- <div class='form-row'>
- <%= text_area :report, :details, :cols => 20, :rows => 5, placeholder: t('issues.new.details'), required: true %>
- </div>
-
- <div class='buttons'>
- <%= f.submit %>
- </div>
- </fieldset>
+ <%= f.collection_radio_buttons :category, report_categories(@report.issue.reportable), :id, :label %>
+ <%= f.text_area :details, :rows => 5, :label_as_placeholder => true %>
+ <%= f.primary %>