blob: a43ec914b55cf5f9ec69e84318578bcc773d0b32 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade show" id="tab-templates-mbox" role="tabpanel" aria-labelledby="tab-templates-mbox">
2 <div class="card mb-4">
3 <div class="card-header d-flex fs-5">
4 <button class="btn d-sm-block d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-templates-mbox" data-bs-toggle="collapse" aria-controls="collapse-tab-templates-mbox">
5 {{ lang.mailbox.mailbox_templates }} <span class="badge bg-info table-lines"></span>
6 </button>
7 <span class="d-none d-md-block">{{ lang.mailbox.mailbox_templates }} <span class="badge bg-info table-lines"></span></span>
8
9 <div class="btn-group ms-auto d-flex">
10 <button class="btn btn-xs btn-secondary refresh_table" data-draw="draw_templates_mbox_table" data-table="templates_mbox_table">{{ lang.admin.refresh }}</button>
11 </div>
12 </div>
13 <div id="collapse-tab-templates-mbox" class="card-body collapse show" data-bs-parent="#mail-content">
14 <div class="mass-actions-mailbox mb-4">
15 <div class="btn-group">
16 <button class="btn btn-sm btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="mailbox_template" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</button>
17 <button class="btn btn-sm btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</button>
18 <ul class="dropdown-menu">
19 {% if mailcow_cc_role == 'admin' %}
20 <li><a class="dropdown-item" data-action="delete_selected" data-id="mailbox_template" data-api-url='delete/mailbox/template' href="#">{{ lang.mailbox.remove }}</a></li>
21 <li><hr class="dropdown-divider"></li>
22 <li><a class="dropdown-item" data-datatables-expand="templates_mbox_table">{{ lang.datatables.expand_all }}</a></li>
23 <li><a class="dropdown-item" data-datatables-collapse="templates_mbox_table">{{ lang.datatables.collapse_all }}</a></li>
24 {% endif %}
25 </ul>
26 {% if mailcow_cc_role == 'admin' %}
27 <a class="btn btn-sm btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addMailboxTemplateModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_template }}</a>
28 {% endif %}
29 </div>
30 </div>
31 <table id="templates_mbox_table" class="table table-striped dt-responsive w-100"></table>
32 <div class="mass-actions-mailbox mt-4">
33 <div class="btn-group">
34 <button class="btn btn-sm btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="mailbox_template" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</button>
35 <button class="btn btn-sm btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</button>
36 <ul class="dropdown-menu">
37 {% if mailcow_cc_role == 'admin' %}
38 <li><a class="dropdown-item" data-action="delete_selected" data-id="mailbox_template" data-api-url='delete/mailbox/template' href="#">{{ lang.mailbox.remove }}</a></li>
39 <li><hr class="dropdown-divider"></li>
40 <li><a class="dropdown-item" data-datatables-expand="templates_mbox_table">{{ lang.datatables.expand_all }}</a></li>
41 <li><a class="dropdown-item" data-datatables-collapse="templates_mbox_table">{{ lang.datatables.collapse_all }}</a></li>
42 {% endif %}
43 </ul>
44 {% if mailcow_cc_role == 'admin' %}
45 <a class="btn btn-sm btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addMailboxTemplateModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_template }}</a>
46 {% endif %}
47 </div>
48 </div>
49 </div>
50 </div>
51</div>