[% extra_js = [ version('/js/duplicates.js'), ] -%] [% permissions = c.user.permissions(problem) %] [% second_column = BLOCK -%]

[% loc('Inspect report') %]

[% INCLUDE 'errors.html' %]

[% loc('Report ID:') %] [% problem.id %] [% IF c.user_exists AND c.cobrand.admin_allow_user(c.user) AND c.user.has_permission_to('report_edit', problem.bodies_str_ids) %] ([% loc('admin') %]) [% END %]

[% IF permissions.report_inspect AND problem.user.phone %]

[% loc('Phone Reporter:') %] [% problem.user.phone_display | html %]

[% END %]

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

[% IF problem.nearest_address() %]

[% loc('Nearest calculated address:') %] [% problem.nearest_address() %]

[% END %]

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

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

[% IF permissions.report_reject %] [% TRY %] [% INCLUDE 'report/_inspect_reject_button.html' %] [% CATCH file %]

[% loc('Reject report') %]

[% END %] [% END %]
[% IF permissions.report_edit_category OR permissions.report_inspect %]

[% INCLUDE 'admin/report-category.html' %]

[% FOREACH category IN category_options %] [% cat_name = category.category; cat_prefix = cat_name | lower | replace('[^a-z]', ''); cat_prefix = "category_" _ cat_prefix _ "_" %] [% END %] [% IF permissions.report_inspect %] [% PROCESS 'defect_type/format.html' %]

[% INCLUDE 'report/inspect/state_groups_select.html' %]

[% IF permissions.report_instruct AND NOT problem.get_extra_metadata('inspected') %]

[% loc('Do you want to automatically raise a defect?') %]

[% END %]

[% loc('Duplicate of') %]

[% loc('Which report is it a duplicate of?') %]

    [% IF problem.duplicate_of %] [% INCLUDE 'report/_item_expandable.html' item_extra_class = 'item-list__item--selected' problem = problem.duplicate_of %]
  • [% loc('Choose another') %]
  • [% END %]
[% IF problem.duplicates.size %]

[% loc('Duplicates') %]

    [% FOR duplicate IN problem.duplicates %] [% INCLUDE 'report/_item_expandable.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') %]

[% IF max_detailed_info_length %] [% tprintf(loc('%d characters maximum'), max_detailed_info_length) %] [% END %]

[% 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 %] [% TRY %][% INCLUDE 'report/_inspect_extra_info.html' %][% CATCH file %][% END %] [% END %]

[% IF permissions.planned_reports %] [% END %]

[%- END %]