2022-10-18 11:34:48 +02:00
|
|
|
{% extends 'base.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="card mb-4">
|
2022-10-11 11:41:06 +02:00
|
|
|
<div class="card-header d-flex fs-5">
|
2022-10-18 11:34:48 +02:00
|
|
|
<span>{{ lang.queue.queue_manager }} <span class="badge bg-info table-lines"></span></span>
|
2022-03-31 13:24:18 +02:00
|
|
|
<div class="btn-group ms-auto">
|
2022-03-31 12:41:50 +02:00
|
|
|
<button class="btn btn-xs btn-secondary refresh_table" data-draw="draw_queue" data-table="queuetable">{{ lang.admin.refresh }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-18 11:34:48 +02:00
|
|
|
<div class="card-body">
|
2022-12-12 11:58:40 +01:00
|
|
|
<p class="text-muted">{{ lang.queue.info|raw }}</p>
|
|
|
|
<p class="text-muted"><b>{{ lang.queue.legend|raw }}</b></p>
|
|
|
|
<ul class="text-muted">
|
|
|
|
<li>{{ lang.queue.deliver_mail }} | {{ lang.queue.deliver_mail_legend }}</li>
|
|
|
|
<li>{{ lang.queue.unhold_mail }} | {{ lang.queue.unhold_mail_legend }}</li>
|
|
|
|
<li>{{ lang.queue.hold_mail }} | {{ lang.queue.hold_mail_legend }}</li>
|
|
|
|
</ul>
|
2022-05-19 21:29:01 +02:00
|
|
|
<table id="queuetable" class="table table-striped dt-responsive w-100"></table>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="mass-actions-admin">
|
|
|
|
<div class="btn-group">
|
2022-03-31 15:24:10 +02:00
|
|
|
<a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary" id="toggle_multi_select_all" data-id="mailqitems" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</a>
|
|
|
|
<a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
|
2022-12-12 11:58:40 +01:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a class="dropdown-item" data-bs-toggle="tooltip" title="postqueue -i" data-action="edit_selected" data-id="mailqitems" data-api-url='edit/mailq' data-api-attr='{"action":"deliver"}' href="#">{{ lang.queue.deliver_mail }}</a></li>
|
|
|
|
<li><a class="dropdown-item" data-bs-toggle="tooltip" title="postsuper -H" data-action="edit_selected" data-id="mailqitems" data-api-url='edit/mailq' data-api-attr='{"action":"unhold"}' href="#">{{ lang.queue.unhold_mail }}</a></li>
|
|
|
|
<li><a class="dropdown-item" data-bs-toggle="tooltip" title="postsuper -h" data-action="edit_selected" data-id="mailqitems" data-api-url='edit/mailq' data-api-attr='{"action":"hold"}' href="#">{{ lang.queue.hold_mail }}</a></li>
|
2022-03-31 10:09:25 +02:00
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" data-bs-toggle="tooltip" title="postsuper -d" data-action="delete_selected" data-id="mailqitems" data-api-url='delete/mailq' href="#">{{ lang.mailbox.remove }}</a></li>
|
2021-09-22 20:47:10 +02:00
|
|
|
</ul>
|
2022-03-31 15:24:10 +02:00
|
|
|
<a class="btn btn-sm d-block d-sm-inline btn-primary"
|
2021-09-22 20:47:10 +02:00
|
|
|
data-action="edit_selected"
|
|
|
|
data-item="mailqitems-all"
|
|
|
|
data-api-url='edit/mailq'
|
|
|
|
data-api-attr='{"action":"flush"}'
|
2022-03-30 13:04:54 +02:00
|
|
|
data-bs-toggle="tooltip" title="postqueue -f"
|
2022-12-12 11:58:40 +01:00
|
|
|
href="#"><i class="bi bi-check-all"></i> {{ lang.queue.flush }}</a>
|
2022-03-31 15:24:10 +02:00
|
|
|
<a class="btn btn-sm d-block d-sm-inline btn-danger"
|
2021-09-22 20:47:10 +02:00
|
|
|
id="super_delete"
|
|
|
|
data-action="edit_selected"
|
|
|
|
data-item="mailqitems-all"
|
|
|
|
data-api-url='edit/mailq'
|
|
|
|
data-api-attr='{"action":"super_delete"}'
|
2022-03-30 13:04:54 +02:00
|
|
|
data-bs-toggle="tooltip" title="postsuper -d ALL"
|
2022-12-12 11:58:40 +01:00
|
|
|
href="#"><i class="bi bi-trash"></i> {{ lang.queue.delete }}</a>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-18 11:34:48 +02:00
|
|
|
|
2022-10-18 14:19:51 +02:00
|
|
|
{% include 'modals/queue.twig' %}
|
|
|
|
|
2022-10-18 11:34:48 +02:00
|
|
|
<script type='text/javascript'>
|
2022-10-18 14:19:51 +02:00
|
|
|
var lang_admin = {{ lang_admin|raw }};
|
|
|
|
var lang = {{ lang_queue|raw }};
|
2022-10-18 11:34:48 +02:00
|
|
|
var lang_datatables = {{ lang_datatables|raw }};
|
|
|
|
var csrf_token = '{{ csrf_token }}';
|
|
|
|
var pagination_size = '{{ pagination_size }}';
|
|
|
|
var table_for_domain = '{{ domain }}';
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|