{% extends 'layouts/base.html' %} {% load i18n static %} {% load notification_tags %} {% block title %}{% trans "Notification Settings" %} - {{ hospital.name }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Notification Settings" %}

{{ hospital.name }}

{% trans "Refresh" %}
{% trans "Master Switch" %}

{% trans "Enable or disable all notifications for this hospital" %}

{% csrf_token %}
{% if settings.notifications_enabled %} {% for category in categories %}
{{ category.name }}
{{ category.description }}
{% for event in category.events %}
{{ event.name }}

{{ event.description }}

{% for channel in event.channels %} {% with field_name=event.key|add:"_"|add:channel %}
{% endwith %} {% endfor %}
{% endfor %} {% if category.extra_settings %} {% for extra in category.extra_settings %}
{{ extra.name }}

{{ extra.description }}

{% endfor %} {% endif %}
{% endfor %}
{% trans "Quiet Hours" %}

{% trans "During quiet hours, SMS and WhatsApp notifications will be queued and sent after the quiet period ends." %}

{% csrf_token %}
{% else %}
{% trans "Notifications are currently disabled" %}

{% trans "Enable the master switch above to configure notification settings." %}

{% endif %}
{% trans "Recent Changes" %}
{% if change_logs %} {% for log in change_logs %}
{{ log.created_at|date:"M d, Y H:i" }}
{{ log.changed_by.get_full_name|default:log.changed_by.email }} {{ log.new_value|yesno:"enabled,disabled" }} {{ log.field_name }}
{% endfor %} {% else %}

{% trans "No recent changes" %}

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}