{% extends 'layouts/base.html' %} {% load static %} {% load i18n %} {% block title %}{{ title }} | {{ hospital.name }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ title }}

{% trans "Configure SLA parameters for complaint resolution" %}

{% trans "Back to List" %}
{% csrf_token %}

{% trans "Configuration Type" %}

{{ form.source }}

{% trans "Select a source for source-based SLA, or leave empty for severity-based" %}

{% if form.source.errors %}

{{ form.source.errors.0 }}

{% endif %}
{{ form.severity }}

{% trans "Select a severity level for this SLA configuration" %}

{% if form.severity.errors %}

{{ form.severity.errors.0 }}

{% endif %}

{% trans "SLA Deadline" %}

{{ form.sla_hours }} {% trans "hours" %}

{{ form.sla_hours.help_text }}

{% if form.sla_hours.errors %}

{{ form.sla_hours.errors.0 }}

{% endif %}

{% trans "Reminder Configuration" %}

{{ form.reminder_hours_before }} {% trans "hours before deadline" %}

{% trans "Set to 0 to disable" %}

{% if form.reminder_hours_before.errors %}

{{ form.reminder_hours_before.errors.0 }}

{% endif %}
{{ form.second_reminder_hours_before }} {% trans "hours before deadline" %}

{% trans "Set to 0 to disable" %}

{% if form.second_reminder_hours_before.errors %}

{{ form.second_reminder_hours_before.errors.0 }}

{% endif %}

{% trans "Configuration Status" %}

{% trans "Enable or disable this SLA configuration" %}

{% trans "Active" %} {{ form.is_active }}
{% trans "Cancel" %}

{% trans "Quick Guide" %}

{% trans "Configuration Type" %}

{% trans "Choose a Source (e.g. MOH, CCHI) for source-specific deadlines. Or leave empty and pick a Severity for severity-based deadlines. Source configs take precedence." %}

{% trans "SLA Deadline" %}

{% trans "Total hours from complaint creation until the deadline. Example: 72 hours = due in 3 days." %}

{% trans "First Reminder" %}

{% trans "Hours before the SLA deadline when the first reminder email is sent to the assignee. Example: 6 = remind 6 hours before deadline. Set to 0 to disable." %}

{% trans "Second Reminder" %}

{% trans "Hours before the SLA deadline when a follow-up reminder is sent. Must be closer to deadline than the first reminder (smaller number). Set to 0 to disable." %}

{% trans "Status" %}

{% trans "Only Active configs are used. Inactive configs are ignored." %}

{% endblock %}