blob: 71edb9d39994c81109f0450695c5012bb04db8e5 [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001<div class="tab-pane fade" id="tab-templates-mbox" role="tabpanel" aria-labelledby="tab-templates-mbox">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01002 <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>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010013 <div id="collapse-tab-templates-mbox" class="card-body collapse" data-bs-parent="#mail-content">
14 <div class="mass-actions-mailbox mb-4 d-none d-sm-block">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010015 <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>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010021 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
22 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="templates_mbox_table">{{ lang.datatables.expand_all }}</a></li>
23 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="templates_mbox_table">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010024 {% endif %}
25 </ul>
26 {% if mailcow_cc_role == 'admin' %}
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010027 <button class="btn btn-sm btn-success" data-bs-toggle="modal" data-bs-target="#addMailboxTemplateModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_template }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010028 {% 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">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010034 <button class="btn btn-sm btn-xs-lg 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-lg btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010036 <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>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010039 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
40 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="templates_mbox_table">{{ lang.datatables.expand_all }}</a></li>
41 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="templates_mbox_table">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010042 {% endif %}
43 </ul>
44 {% if mailcow_cc_role == 'admin' %}
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010045 <button class="btn btn-sm btn-xs-lg btn-success" data-bs-toggle="modal" data-bs-target="#addMailboxTemplateModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_template }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010046 {% endif %}
47 </div>
48 </div>
49 </div>
50 </div>
51</div>