{% extends 'layouts/base.html' %} {% load static %} {% load i18n %} {% block title %}{% trans "Complaint SLA Management" %} | {{ hospital.name }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Configure Service Level Agreements for complaint resolution" %}
{% trans "Current Hospital" %}
{{ hospital.name }}
{% trans "SLAs based on complaint source (MOH, CCHI, Patient, etc.)" %}
| {% trans "Source" %} | {% trans "SLA (Hours)" %} | {% trans "1st Reminder" %} | {% trans "2nd Reminder" %} | {% trans "Escalation" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|
|
{{ config.source.name_en }}
{{ config.source.name_ar }}
|
{{ config.sla_hours }}h | {% if config.first_reminder_hours_after > 0 %} +{{ config.first_reminder_hours_after }}h {% else %} -{{ config.reminder_hours_before }}h {% endif %} | {% if config.second_reminder_hours_after > 0 %} +{{ config.second_reminder_hours_after }}h {% elif config.second_reminder_enabled %} -{{ config.second_reminder_hours_before }}h {% else %} — {% endif %} | {% if config.escalation_hours_after > 0 %} +{{ config.escalation_hours_after }}h {% else %} {% trans "On overdue" %} {% endif %} |
{% trans "Get started by creating a new SLA configuration." %}
{% trans "Add Source-Based SLA" %}{% trans "SLAs based on complaint severity and priority levels" %}
| {% trans "Severity" %} | {% trans "Priority" %} | {% trans "SLA (Hours)" %} | {% trans "1st Reminder" %} | {% trans "2nd Reminder" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|
| {% include 'complaints/partials/severity_badge.html' with severity=config.severity %} | {% include 'complaints/partials/priority_badge.html' with priority=config.priority %} | {{ config.sla_hours }}h | {% if config.first_reminder_hours_after > 0 %} +{{ config.first_reminder_hours_after }}h {% else %} -{{ config.reminder_hours_before }}h {% endif %} | {% if config.second_reminder_hours_after > 0 %} +{{ config.second_reminder_hours_after }}h {% elif config.second_reminder_enabled %} -{{ config.second_reminder_hours_before }}h {% else %} — {% endif %} |
{% trans "Get started by creating a new SLA configuration." %}
{% trans "Add Severity-Based SLA" %}