{% extends "base.html" %} {% load static %} {% block title %}{% if object %}Edit Notification - {{ object.title }}{% else %}Create New Notification{% endif %}{% endblock %} {% block content %}

{% if object %}Edit Notification{% else %}Create New Notification{% endif %}

Notification Information
{% csrf_token %}
{#
#} {#
#} {# {{ form.category }}#} {# #} {# {% if form.category.errors %}#} {#
{{ form.category.errors.0 }}
#} {# {% endif %}#} {#
#} {#
#}
{{ form.title }} {% if form.title.errors %}
{{ form.title.errors.0 }}
{% endif %}
{{ form.priority }} {% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% endif %}
{{ form.message }} {% if form.message.errors %}
{{ form.message.errors.0 }}
{% endif %}
Display Settings
{#
#} {#
#} {# {{ form.display_location }}#} {# #} {# {% if form.display_location.errors %}#} {#
{{ form.display_location.errors.0 }}
#} {# {% endif %}#} {#
#} {#
#}
{{ form.start_date }} {% if form.start_date.errors %}
{{ form.start_date.errors.0 }}
{% endif %}
{{ form.end_date }} {% if form.end_date.errors %}
{{ form.end_date.errors.0 }}
{% endif %}
{{ form.is_dismissible }} {% if form.is_dismissible.errors %}
{{ form.is_dismissible.errors.0 }}
{% endif %}
{{ form.is_active }} {% if form.is_active.errors %}
{{ form.is_active.errors.0 }}
{% endif %}
Action Link (Optional)
Target Audience (Optional)

If no specific targets are selected, the notification will be shown to all users.

{{ form.target_roles }} {% if form.target_roles.errors %}
{{ form.target_roles.errors.0 }}
{% endif %}
Hold Ctrl/Cmd to select multiple roles
{{ form.target_departments }} {% if form.target_departments.errors %}
{{ form.target_departments.errors.0 }}
{% endif %}
Hold Ctrl/Cmd to select multiple departments
Advanced Options
{{ form.additional_data }} {% if form.additional_data.errors %}
{{ form.additional_data.errors.0 }}
{% endif %}
Enter valid JSON format
{#
#} {#
#} {# {{ form.icon_class }}#} {# #} {# {% if form.icon_class.errors %}#} {#
{{ form.icon_class.errors.0 }}
#} {# {% endif %}#} {#
#} {#
FontAwesome icon class (e.g., fa-info-circle)
#} {#
#}
{{ form.is_persistent }} {% if form.is_persistent.errors %}
{{ form.is_persistent.errors.0 }}
{% endif %}
If enabled, notification will persist across sessions
Cancel
Live Preview
Notification Title

Notification message will appear here.


Action Link

This preview updates as you type
Help & Guidelines

  • Low Informational messages, tips, updates
  • Medium Important information, reminders
  • High Urgent messages, warnings
  • Critical Emergency alerts, system critical issues

  • Dashboard: Appears on the main dashboard
  • Header: Appears in the site header
  • Sidebar: Appears in the navigation sidebar
  • Modal: Appears as a popup modal
  • Toast: Appears as a temporary toast notification
  • Banner: Appears as a full-width banner

Basic formatting is supported:

  • **bold text** - bold text
  • *italic text* - italic text
  • [link text](url) - link text
  • - list item - bulleted list
Keep messages concise and clear for better user experience.

  • Keep titles short and descriptive
  • Use appropriate priority levels
  • Include clear action steps when needed
  • Target specific audiences when possible
  • Avoid overusing high/critical priorities
  • Don't create too many concurrent notifications
{% endblock %} {% block js %} {% endblock %}