{% extends "base.html" %} {% block title %}Inspection View - Inspection Reporting{% endblock %} {% block content %}

Inspection Report

Installation Information

Installation Name: {{ inspection.installation_name }}

Location: {{ inspection.location }}

Date of Inspection: {{ inspection.inspection_date.strftime('%Y-%m-%d') }}

Reference Number: {{ inspection.reference_number }}

Version: {{ inspection.version }}

Inspectors

{% if inspection.inspectors %}
    {% for inspector in inspection.inspectors %}
  • {% if inspector.user_id %} {{ inspector.user.full_name }} {% else %} {{ inspector.free_text_name }} {% endif %}
  • {% endfor %}
{% else %}

No inspectors assigned.

{% endif %}

Observations

{% if inspection.observations %}

{{ inspection.observations }}

{% else %}

No observations recorded.

{% endif %}
{% if inspection.photos %}

Photos

{% for photo in inspection.photos %}
{% if photo.filename %} Photo {{ loop.index }} {% else %}
No image available
{% endif %}

Caption: {{ photo.caption or 'No caption' }}

{% if photo.action_required == ActionRequired.NONE %}No action required {% elif photo.action_required == ActionRequired.URGENT %}Urgent action required {% else %}Action required before next inspection {% endif %}
{% endfor %}
{% endif %}

Conclusion

Conclusion Comments:

{{ inspection.conclusion_text or 'No conclusion comments provided.' }}

{% if inspection.conclusion_status == ConclusionStatus.OK %}OK for operation in current state {% elif inspection.conclusion_status == ConclusionStatus.MINOR %}Minor comments — Remedial actions required for continued operation {% else %}Major comments — Operation suspended until resolution and satisfactory follow-up inspection {% endif %}
{% endblock %}