{% extends "base.html" %} {% load static %} {% block title %}{{ audit.title }} - Quality Audits{% endblock %} {% block content %}
| Audit ID: | {{ audit.audit_number|default:audit.id }} |
| Type: | {% if audit.audit_type == 'internal' %} Internal {% elif audit.audit_type == 'external' %} External {% elif audit.audit_type == 'regulatory' %} Regulatory {% elif audit.audit_type == 'accreditation' %} Accreditation {% endif %} |
| Status: | {% if audit.status == 'planned' %} Planned {% elif audit.status == 'in_progress' %} In Progress {% elif audit.status == 'completed' %} Completed {% elif audit.status == 'cancelled' %} Cancelled {% endif %} |
| Department: | {{ audit.department.name|default:"All Departments" }} |
| Lead Auditor: |
{% if audit.lead_auditor %}
{{ audit.lead_auditor.get_full_name }}
{{ audit.lead_auditor.email }} {% else %} Not assigned {% endif %} |
| Scheduled: |
{% if audit.scheduled_date %}
{{ audit.scheduled_date|date:"F d, Y" }}
{% if audit.is_overdue %}
Overdue {% endif %} {% else %} Not scheduled {% endif %} |
| Started: | {% if audit.start_date %} {{ audit.start_date|date:"F d, Y g:i A" }} {% else %} Not started {% endif %} |
| Completed: | {% if audit.completion_date %} {{ audit.completion_date|date:"F d, Y g:i A" }} {% else %} Not completed {% endif %} |
| Findings: | {% if audit.findings_count > 0 %} {{ audit.findings_count }} finding{{ audit.findings_count|pluralize }} {% else %} No findings {% endif %} |
| Created: |
{{ audit.created_at|date:"F d, Y g:i A" }}
by {{ audit.created_by.get_full_name|default:audit.created_by.username }} |
{{ audit.description }}
{{ audit.scope }}
| Finding | Severity | Status | Actions |
|---|---|---|---|
|
{{ finding.title }}
{{ finding.description|truncatechars:100 }} |
{% if finding.severity == 'critical' %} Critical {% elif finding.severity == 'major' %} Major {% elif finding.severity == 'minor' %} Minor {% elif finding.severity == 'observation' %} Observation {% endif %} | {% if finding.status == 'open' %} Open {% elif finding.status == 'in_progress' %} In Progress {% elif finding.status == 'resolved' %} Resolved {% elif finding.status == 'closed' %} Closed {% endif %} |
{% if audit.status == 'in_progress' %}
{% endif %}
|