Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | {% extends 'base.twig' %} |
| 2 | |
| 3 | {% block content %} |
| 4 | <div class="card mb-4"> |
| 5 | <div class="card-header d-flex fs-5"> |
| 6 | <span>{{ lang.queue.queue_manager }} <span class="badge bg-info table-lines"></span></span> |
| 7 | <div class="btn-group ms-auto"> |
| 8 | <button class="btn btn-xs btn-secondary refresh_table" data-draw="draw_queue" data-table="queuetable">{{ lang.admin.refresh }}</button> |
| 9 | </div> |
| 10 | </div> |
| 11 | <div class="card-body"> |
| 12 | <p class="text-muted">{{ lang.queue.info|raw }}</p> |
| 13 | <p class="text-muted"><b>{{ lang.queue.legend|raw }}</b></p> |
| 14 | <ul class="text-muted"> |
| 15 | <li>{{ lang.queue.deliver_mail }} | {{ lang.queue.deliver_mail_legend }}</li> |
| 16 | <li>{{ lang.queue.unhold_mail }} | {{ lang.queue.unhold_mail_legend }}</li> |
| 17 | <li>{{ lang.queue.hold_mail }} | {{ lang.queue.hold_mail_legend }}</li> |
| 18 | </ul> |
| 19 | <table id="queuetable" class="table table-striped dt-responsive w-100"></table> |
| 20 | <div class="mass-actions-admin"> |
| 21 | <div class="btn-group"> |
| 22 | <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> |
| 23 | <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> |
| 24 | <ul class="dropdown-menu"> |
| 25 | <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> |
| 26 | <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> |
| 27 | <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> |
| 28 | <li><hr class="dropdown-divider"></li> |
| 29 | <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> |
| 30 | </ul> |
| 31 | <a class="btn btn-sm d-block d-sm-inline btn-primary" |
| 32 | data-action="edit_selected" |
| 33 | data-item="mailqitems-all" |
| 34 | data-api-url='edit/mailq' |
| 35 | data-api-attr='{"action":"flush"}' |
| 36 | data-bs-toggle="tooltip" title="postqueue -f" |
| 37 | href="#"><i class="bi bi-check-all"></i> {{ lang.queue.flush }}</a> |
| 38 | <a class="btn btn-sm d-block d-sm-inline btn-danger" |
| 39 | id="super_delete" |
| 40 | data-action="edit_selected" |
| 41 | data-item="mailqitems-all" |
| 42 | data-api-url='edit/mailq' |
| 43 | data-api-attr='{"action":"super_delete"}' |
| 44 | data-bs-toggle="tooltip" title="postsuper -d ALL" |
| 45 | href="#"><i class="bi bi-trash"></i> {{ lang.queue.delete }}</a> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | {% include 'modals/queue.twig' %} |
| 52 | |
| 53 | <script type='text/javascript'> |
| 54 | var lang_admin = {{ lang_admin|raw }}; |
| 55 | var lang = {{ lang_queue|raw }}; |
| 56 | var lang_datatables = {{ lang_datatables|raw }}; |
| 57 | var csrf_token = '{{ csrf_token }}'; |
| 58 | var pagination_size = '{{ pagination_size }}'; |
| 59 | var table_for_domain = '{{ domain }}'; |
| 60 | </script> |
| 61 | {% endblock %} |