{% extends "base.html" %} {% load static %} {% block title %}Quality Management Dashboard - {{ block.super }}{% endblock %} {% block content %}

Quality Management Dashboard

{{ indicators_meeting_target|default:0 }}

Indicators Meeting Target

{{ indicators_below_target|default:0 }}

Indicators Below Target

{{ total_indicators|default:0 }}

Total Active Indicators

{{ measurements_this_month|default:0 }}

Measurements This Month

{{ incidents_this_month|default:0 }}

Incidents This Month

{{ incidents_open|default:0 }}

Open Incidents

{{ high_risk_incidents|default:0 }}

High Risk Incidents

{{ risk_assessments_pending|default:0 }}

Pending Risk Assessments

{{ audits_active|default:0 }}

Active Audits

{{ audit_findings_open|default:0 }}

Open Audit Findings

{{ improvement_projects_active|default:0 }}

Active Projects

{{ recent_measurements|length|default:0 }}

Recent Measurements

Recent Incidents
{% if recent_incidents %}
{% for incident in recent_incidents %} {% endfor %}
Title Severity Status Date
{{ incident.incident_title|truncatechars:30 }}
{{ incident.location }}
{% if incident.severity == 'CRITICAL' %} Critical {% elif incident.severity == 'HIGH' %} High {% elif incident.severity == 'MEDIUM' %} Medium {% else %} Low {% endif %} {% if incident.status == 'CLOSED' %} Closed {% elif incident.status == 'INVESTIGATING' %} Investigating {% else %} {{ incident.get_status_display }} {% endif %} {{ incident.incident_date|date:"M d" }}
{% else %}
No Recent Incidents

No incidents have been reported recently.

Report Incident
{% endif %}
Quality Indicator Performance
{% if indicator_performance %} {% for indicator in indicator_performance %}
{{ indicator.indicator_name|truncatechars:15 }}
{{ indicator.current_value|floatformat:1 }}{{ indicator.measurement_unit }}
{% if indicator.performance_percentage >= 100 %}
{% elif indicator.performance_percentage >= 80 %}
{% else %}
{% endif %}
{{ indicator.performance_percentage|floatformat:0 }}%
{% endfor %} {% else %}
No Quality Indicators

No quality indicators have been configured yet.

Create Indicator
{% endif %}
Recent Measurements
{% if recent_measurements %}
{% for measurement in recent_measurements %} {% endfor %}
Indicator Value Status Date
{{ measurement.indicator.indicator_name|truncatechars:25 }} {{ measurement.value|floatformat:1 }} {{ measurement.indicator.measurement_unit }} {% if measurement.status == 'VERIFIED' %} Verified {% elif measurement.status == 'PENDING' %} Pending {% else %} {{ measurement.get_status_display }} {% endif %} {{ measurement.measurement_date|date:"M d" }}
{% else %}
No Recent Measurements

No measurements have been recorded recently.

Record Measurement
{% endif %}
Active Improvement Projects
{% if active_projects %}
{% for project in active_projects %} {% endfor %}
Project Manager Methodology Target Date
{{ project.project_name|truncatechars:25 }} {% if project.project_manager %}
{{ project.project_manager.first_name.0 }}{{ project.project_manager.last_name.0 }}
{{ project.project_manager.first_name }} {{ project.project_manager.last_name }}
{% else %} N/A {% endif %}
{{ project.get_methodology_display }} {{ project.target_completion_date|date:"M d, Y" }}
{% else %}
No Active Projects

No improvement projects are currently active.

Start Project
{% endif %}
{% endblock %}