{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ title }} - {% translate "Complaint Thresholds" %} - PX360{% endblock %} {% block content %}
{% csrf_token %} {% if request.user.is_px_admin %}
{% if form.hospital.errors %}
{{ form.hospital.errors.0 }}
{% endif %}
{% endif %}
{% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %}
{% if form.threshold_type.errors %}
{{ form.threshold_type.errors.0 }}
{% endif %}
{% if form.metric_type.errors %}
{{ form.metric_type.errors.0 }}
{% endif %}
{% if form.threshold_value.errors %}
{{ form.threshold_value.errors.0 }}
{% endif %}
{% if form.action.errors %}
{{ form.action.errors.0 }}
{% endif %}
{% if form.complaint_category.errors %}
{{ form.complaint_category.errors.0 }}
{% else %}
{% translate "Leave empty to apply to all complaint categories" %}
{% endif %}
{% if form.notify_emails.errors %}
{{ form.notify_emails.errors.0 }}
{% else %}
{% translate "Comma-separated list of email addresses to notify when threshold is reached" %}
{% endif %}
{% translate "Only active thresholds will be monitored" %}
{% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %}
{% translate "Help" %}
{% translate "Understanding Complaint Thresholds" %}

{% translate "Thresholds monitor complaint metrics and trigger actions when limits are exceeded." %}

{% translate "Threshold Types" %}
  • {% translate "Daily" %} - {% translate "Monitor daily complaint volume" %}
  • {% translate "Weekly" %} - {% translate "Monitor weekly complaint volume" %}
  • {% translate "Monthly" %} - {% translate "Monitor monthly complaint volume" %}
  • {% translate "By Category" %} - {% translate "Monitor specific complaint categories" %}

{% translate "Metric Types" %}
  • {% translate "Count" %} - {% translate "Number of complaints" %}
  • {% translate "Percentage" %} - {% translate "Percentage of total complaints" %}

{% translate "Actions" %}
  • {% translate "Send Alert" %} - {% translate "Notify administrators" %}
  • {% translate "Send Email" %} - {% translate "Send email notifications" %}
  • {% translate "Generate Report" %} - {% translate "Create detailed report" %}
{% endblock %}