{% extends "base.html" %} {% load static %} {% block title %}System Notifications{% endblock %} {% block content %}

System Notifications

{% if request.GET.search or request.GET.status or request.GET.priority or request.GET.category %} Clear {% endif %}
New Notification
{% csrf_token %}
{% for notification in notifications %} {% empty %} {% endfor %}
Title Priority Category Status Period Actions
{{ notification.title }}

{{ notification.message|truncatechars:50 }}

{{ notification.get_priority_display }} {{ notification.category }} {% if notification.is_active %} {% if notification.start_date <= now and notification.end_date >= now %} Active {% elif notification.start_date > now %} Scheduled {% elif notification.end_date < now %} Expired {% endif %} {% else %} Inactive {% endif %} From: {{ notification.start_date|date:"M d, Y" }} To: {{ notification.end_date|date:"M d, Y" }}
No notifications found

No system notifications match your criteria.

Create New Notification
{% if is_paginated %}
Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ paginator.count }} notifications
{% endif %}
{% endblock %} {% block js %} {% endblock %}