{% extends "admin/base.html" %} {% block content %}

Notifications

{% with form = Forms.notifications.NotificationForm() %}
{{ form.title.label }} {{ form.title(class="form-control") }} {{ form.title.description }}
{{ form.content.label }} {{ form.content(class="form-control", rows="3") }} {{ form.content.description }}
{{ form.type.label }}
{% for radio in form.type %}
{{ radio(class="form-check-input") }} {{ radio.label(class="form-check-label") }}
{% endfor %} {{ form.type.description }}
{{ form.sound.label }}
{{ form.sound(class="form-check-input") }} {{ form.sound.label(class="form-check-label") }}
{{ form.sound.description }}
{{ form.submit(class="btn btn-success text-center") }}
{% endwith %}

{% for notification in notifications %}

{{ notification.title }}

{{ notification.html }}

{% endfor %}
{% endblock %} {% block scripts %} {% endblock %} {% block entrypoint %} {{ Assets.js("assets/js/pages/notifications.js", theme="admin") }} {% endblock %}