- <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>
-
- <br/>
- <%= text_area :report, :details, :cols => 20, :rows => 3, placeholder: t('issues.new.details'), required: true %>
- </div>
-
- <div class='buttons'>
- <%= submit_tag %>
- </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 %>