{% 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/priority-based" %}

{% if form.source.errors %}

{{ form.source.errors.0 }}

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

{% trans "Required for severity/priority-based SLA" %}

{% if form.severity.errors %}

{{ form.severity.errors.0 }}

{% endif %} {% if form.priority.errors %}

{{ form.priority.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.first_reminder_hours_after }} {% trans "hours after creation" %}

{% trans "Leave as 0 to use legacy timing (hours before deadline)" %}

{% if form.first_reminder_hours_after.errors %}

{{ form.first_reminder_hours_after.errors.0 }}

{% endif %}
{{ form.second_reminder_hours_after }} {% trans "hours after creation" %}

{% trans "Leave as 0 to disable or use legacy timing" %}

{% if form.second_reminder_hours_after.errors %}

{{ form.second_reminder_hours_after.errors.0 }}

{% endif %}
{% trans "Legacy Timing (hours before deadline)" %}
{{ form.reminder_hours_before }} {% trans "hours before" %}
{{ form.second_reminder_enabled }}
{{ form.second_reminder_hours_before }} {% trans "hours before" %}

{% trans "Escalation Configuration" %}

{{ form.escalation_hours_after }} {% trans "hours after creation" %}

{{ form.escalation_hours_after.help_text }}

{% if form.escalation_hours_after.errors %}

{{ form.escalation_hours_after.errors.0 }}

{% endif %}

{% trans "Configuration Status" %}

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

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