{% block inspection_pictures %} {% set observations_per_page = 2 %} {% set total_observations = inspection.observations|length %} {% set total_pages = ((total_observations / observations_per_page) | round(0, 'ceil')) | int %} {% for page_num in range(1, total_pages + 1) %}
Place:
{% if inspection.header.location.city %}{{ inspection.header.location.city }}
{% endif %}Road:
{% if inspection.header.location.street %}{{ inspection.header.location.street }}
{% endif %}Date (YYYY/MM/DD):
{% if inspection.header.survey.survey_date %}{{ inspection.header.survey.survey_date.strftime("%Y/%m/%d") }}
{% endif %}Camera:
{% if inspection.header.survey.inspection_technology and inspection.header.survey.inspection_technology.label %}{{ inspection.header.survey.inspection_technology.label }}
{% endif %}Operator:
{% if inspection.header.survey.surveyed_by %}{{ inspection.header.survey.surveyed_by }}
{% endif %}Photo: {{ image_prefix }}{{ i + 1 }}.png{% if observation.video_ref %}, {{ observation.video_ref }}{% endif %}
{% if observation.distance is not none %}{{ observation.distance }}{{ measurement_units }}{% endif %}{% if observation.code and observation.code.full_name %}, {{ observation.code.label }}{% endif %}{% if observation.component %}, {{ observation.component.full_name }}{% endif %}