- <div class='form-row' style='width:600px'>
- <p><%= t('issues.new.select') %>:</p>
-
- <div class="new-report-form">
- <% Report.categories_for(@report.issue.reportable).each do |c| %>
- <div style="padding-left:5px">
- <%= radio_button :report, :category, c %>
- <%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
- </div>
- <% end %>
- </div>
-
- <br/>
- <%= text_area :report, :details, :cols => 20, :rows => 3, 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.richtext_field :details, :rows => 18, :label_as_placeholder => true, :format => "markdown" %>
+ <%= f.primary %>