{% embed '@ui2022/modal__content.html.twig' with {} %}
{% block body %}
<div id="select-modal-message-type" class="d-block">
<h2 class="modal-body--title text-center">Choose a message type</h2>
<div class="msgtypes">
{% if maybe_granted('app.notifications.messaging.general') %}
<a
class="msgtypes-block msgtypes--general"
href="{{- path('app.notifications.dashboard.default.broadcast_modal', {
type: 'general',
}) -}}"
target="_modal"
>
<span class="msgtypes-inner">
<i class="icon-message-plane"></i>
<span class="h3">General Message</span>
<span class="para">Announcements, reminders and links to important events and information.</span>
</span>
</a>
{% endif %}
{% if maybe_granted('app.notifications.messaging.urgent') %}
<a
id="modal-urgent-message"
class="msgtypes-block msgtypes--urgent"
href="#"
>
<span class="msgtypes-inner">
<i class="icon-exclamation"></i>
<span class="h3">Urgent message</span>
<span class="para">Critical alerts and updates (school closings, delays, and other important messages.)</span>
<span class="msgtypes-muted">
<i class="icon-activity-voice"></i>
<span>Includes voice message</span>
</span>
</span>
</a>
{% endif %}
</div>
</div>
<div id="select-modal-rules" class="d-none">
<div class="msgtypes__urgent msgtypes__notification" style="display: block;">
<div class="notify__head notify__head--urgent">
<h3 class="text-bold">Urgent messages</h3>
</div>
<div class="notify__body">
<div class="mb-3">
These are CRITICAL alerts and updates, and should be limited to emergencies,
school closings and delays, weather and other important alerts.
</div>
<div>
<h5 class="mb-3">Messages that SHOULD NOT be sent as URGENT</h5>
<ul class="pl-3">
<li class="mb-3">
<b>Non-school related –</b>
anything not related to an urgent school matter
</li>
<li class="mb-3">
<b>Controversial -</b>
these could include any religious, community or personal issues
</li>
<li class="mb-3">
<b>General messages -</b>
routine announcements, newsletters, fundraising info, etc.
</li>
</ul>
</div>
<div class="notify__actions">
<button type="button" class="btn btn-gray mr-5" data-dismiss="modal" aria-label="Close">Cancel</button>
<a
class="btn btn-dark"
href="{{- path('app.notifications.dashboard.default.broadcast_modal', {
type: 'urgent',
}) -}}"
target="_modal"
>
I agree
</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$('#modal-urgent-message').click(function (e) {
e.preventDefault();
e.stopPropagation();
$('#select-modal-message-type').addClass('d-none').removeClass('d-block');
$('#select-modal-rules').removeClass('select-modal-rules').addClass('d-block');
});
});
</script>
{% endblock %}
{% endembed %}