{% extends "base.html" %} {% block title %}Issue #{{ issue.id }}{% endblock %} {% block content %}
Issue #{{ issue.id }} — {{ issue.severity|title }} Severity
{{ issue.status|replace('_',' ')|title }}
Reported
{{ issue.reported_at.strftime('%Y-%m-%d %H:%M') }}
Facility
{{ issue.area.facility.name }}
Area
{{ issue.area.name }}
{% if issue.inspection %}
Inspection
#{{ issue.inspection_id }}
{% endif %}
Assigned To
{{ issue.assigned_user.username if issue.assigned_user else '— Unassigned —' }}
{% if issue.resolved_at %}
Resolved
{{ issue.resolved_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}

Description

{{ issue.description }}

{% if issue.photo_path %}
Photo Evidence
{% endif %}
{% if current_user.role in ['admin','supervisor'] %}
Update Issue
{{ form.status.label(class="form-label fw-semibold") }} {{ form.status(class="form-select") }}
{{ form.assigned_to.label(class="form-label fw-semibold") }} {{ form.assigned_to(class="form-select") }}
{{ form.comments.label(class="form-label fw-semibold") }} {{ form.comments(class="form-control", rows=3, placeholder="Optional update notes…") }}
{% endif %}
Back to Issues {% endblock %}