Files
Romhack-Plaza---WordPress-P…/views/admin/pages/send-notification.twig

43 lines
1.4 KiB
Twig
Raw Permalink Normal View History

2026-01-11 19:39:55 +01:00
{% extends '@plugin/admin/pages/base.twig' %}
{% block title %}
<h1>{{ __('Send Notification', 'romhackplaza') }}</h1>
{% endblock %}
{% block page %}
<form id="send-manual-notification" method="post" autocomplete="off">
<label for="type_select">
{{ __('Type of notification', 'romhackplaza') }}
</label>
<select id="type_select" name="type_select">
<option value="none" disabled selected>---</option>
{% for type, pretty_type in type_list %}
<option value="{{ type }}">{{ __(pretty_type) }}</option>
{% endfor %}
</select>
<hr>
<input type="checkbox" name="sender_anonymous" id="sender_anonymous"> {{ __('Anonymous notification?', 'romhackplaza') }}
<hr>
<label for="recipients">
{{ __('Recipients', 'romhackplaza') }}
</label>
<select id="recipients" name="recipients[]" multiple="multiple" style="width: 15%">
{# Filled by Select2 Ajax. #}
</select>
<br><input type="checkbox" name="recipients_all" id="recipients_all"> All users ?
<hr>
<label for="postContent">
{{ __('Content', 'romhackplaza') }}
</label>
{{ fn( 'wp_editor', "", 'postContent' ) }}
<hr>
<input type="submit" name="send" value="{{ __('Send Notification', 'romhackplaza') }}">
</form>
{% endblock %}