[% IF permissions.report_edit_category OR permissions.report_inspect %]
[%# XXX this is duplicated from admin/report_edit.html, should be refactored %]
[% FOREACH category IN categories %]
[% cat_prefix = category | lower | replace('[^a-z]', '') %]
[% cat_prefix = "category_" _ cat_prefix _ "_" %]
[% IF category == problem.category %]
[% INCLUDE 'report/new/category_extras_fields.html' %]
[% ELSE %]
[% INCLUDE 'report/new/category_extras_fields.html' report_meta='' %]
[% END %]
[% END %]
[% IF permissions.report_inspect %]
[% PROCESS 'defect_type/format.html' %]
[% INCLUDE 'report/inspect/state_groups_select.html' %]
[% loc('Duplicate of') %]
[% loc('Which report is it a duplicate of?') %]
[% IF problem.duplicate_of %]
[% INCLUDE 'report/_item.html' item_extra_class = 'item-list--reports__item--selected' problem = problem.duplicate_of %]
- [% loc('Choose another') %]
[% END %]
[% IF problem.duplicates.size %]
[% loc('Duplicates') %]
[% FOR duplicate IN problem.duplicates %]
[% INCLUDE 'report/_item.html' problem = duplicate %]
[% END %]
[% END %]
[% END %]
[% END %]
[% IF permissions.report_edit_priority OR permissions.report_inspect %]
[% IF permissions.report_inspect %]
[% traffic_info = problem.get_extra_metadata('traffic_information') %]
[% END %]
[% END %]
[% IF permissions.report_inspect %]
[% INCLUDE 'admin/response_templates_select.html' for='public_update' %]
[% END %]
[% IF problem.get_extra_metadata('inspected') %]
[% IF problem.whensent %]
[% loc("Note: This report has been sent onwards for action. Any changes made won't be passed on.") %]
[% ELSE %]
[% loc("Note: This report hasn't yet been sent onwards for action. Any changes made may not be passed on.") %]
[% END %]
[% END %]