[% permissions = c.user.permissions(c, problem.bodies_str) %] [% second_column = BLOCK -%]
[% INCLUDE 'errors.html' %]

[% loc('Report ID:') %] [% problem.id %]

[% SET local_coords = problem.local_coords; %] [% IF local_coords %] [% loc('Easting/Northing:') %] [% local_coords.0 %], [% local_coords.1 %] [% ELSE %] [% loc('Latitude/Longitude:') %] [% problem.latitude %] [% problem.longitude %], [% END %]

[% loc('Navigate to this problem') %]

[% loc('Set to my current location') %]

[% 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 %] [% 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 %]

[%- END %]