{% block inspection_report %}
{% set title = t('labels.inspection_pictures') ~ " /" ~ t('reports.pacp.inspection') ~ " : " ~ (inspection.header.location.pipe_segment_reference if inspection.header.location.pipe_segment_reference else "") %} {% set border_bottom = true %} {% include "nassco/pacp/es/page_title.html" %} {% include "nassco/pacp/es/inspection_report_header.html" %}

{{ t('labels.place') }} {% if inspection.header.location.city %} {{inspection.header.location.city }} {% endif %}

{{ t('labels.road') }} {% if inspection.header.location.street %} {{inspection.header.location.street }} {% endif %}

{{ t('labels.location_details') }} {% if inspection.header.location.location_details %} {{inspection.header.location.location_details }} {% endif %}

{{ t('labels.location_code') }} {% if inspection.header.location.location_code %} {{inspection.header.location.location_code.label }} {% endif %}

{{ t('labels.dvd_no') }}

{{ t('labels.mpeg_file_name') }} {% if video_name %} {{ video_name }} {% endif %}

{{ t('labels.project_ref_no') }} {% if inspection.header.survey.work_order_number %} {{inspection.header.survey.work_order_number }} {% endif %}

{{ t('labels.us_mh_gis_id') }} {% if inspection.header.survey.direction_of_survey.abbreviation == "U" and inspection.header.measurements.downstream_mh_number %} {{ inspection.header.measurements.downstream_mh_number }} {% elif inspection.header.survey.direction_of_survey.abbreviation == "D" and inspection.header.measurements.upstream_mh_number %} {{ inspection.header.measurements.upstream_mh_number }} {% endif %}

{{ t('labels.ds_mh_gis_id') }} {% if inspection.header.survey.direction_of_survey.abbreviation == "D" and inspection.header.measurements.downstream_mh_number %} {{ inspection.header.measurements.downstream_mh_number }} {% elif inspection.header.survey.direction_of_survey.abbreviation == "U" and inspection.header.measurements.upstream_mh_number %} {{ inspection.header.measurements.upstream_mh_number }} {% endif %}

{{ t('labels.cctv_length') }} {% if inspection.header.pipe.total_length %} {{ inspection.header.pipe.total_length|string|replace('.', ',') }} {{ measurement_units }} {% endif %}

{{ t('labels.sip_length') }} {% if inspection.header.pipe.length_surveyed %} {{ inspection.header.pipe.length_surveyed|string|replace('.', ',') }} {{ measurement_units }} {% endif %}

{{ t('labels.direction_of_survey') }} {% if inspection.header.survey.direction_of_survey %} {{inspection.header.survey.direction_of_survey.label }} {% endif %}

{{ t('labels.upstream_water_level') }}

{{ t('labels.downstream_water_level') }}

{{ t('labels.diameter') }} {% if inspection.header.pipe.height %} {{ inspection.header.pipe.height|int if inspection.header.pipe.height|int == inspection.header.pipe.height else inspection.header.pipe.height }} {{ pipe_size_units }} {% endif %}

{{ t('labels.pipe_material') }} {% if inspection.header.pipe.material %} {{ inspection.header.pipe.material.label }} {% endif %}

{{ t('labels.shape') }} {% if inspection.header.pipe.shape %} {{ inspection.header.pipe.shape.label }} {% endif %}

{{ t('labels.aim') }}

{{ t('labels.covering') }}

{{ t('labels.comment') }} {% if inspection.header.additional_info %} {{inspection.header.additional_info }} {% endif %}

{% if diagram_pages %} {% set page = diagram_pages[0] %} {% set extra_space_before_diagram = false %} {% include "nassco/pacp/es/pipe_diagram.html" %} {% if diagram_pages|length == 1 %} {% set extra_space_after_diagram = true %} {% include "nassco/pacp/es/pipe_ratings.html" %} {% endif %} {% endif %}
{% endblock %}