blob: d3d8824690deb9eb4d5c5a3eff7190867d90f33f [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade show active" id="tab-domains" role="tabpanel" aria-labelledby="tab-domains">
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-domains" data-bs-toggle="collapse" aria-controls="collapse-tab-domains">
5 {{ lang.mailbox.domains }} <span class="badge bg-info table-lines"></span>
6 </button>
7 <span class="d-none d-md-block">{{ lang.mailbox.domains }} <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_domain_table" data-table="domain_table">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010011 </div>
12 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010013 <div id="collapse-tab-domains" class="card-body collapse show" data-bs-parent="#mail-content">
14 {#<div class="mass-actions-mailbox" data-actions-header="true"></div>#}
15 <div class="mass-actions-mailbox mb-4">
16 <div class="btn-group">
17 <button class="btn btn-sm btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="domain" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</button>
18 <button class="btn btn-sm btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</button>
19 <ul class="dropdown-menu">
20 {% if mailcow_cc_role == 'admin' %}
21 <li><a class="dropdown-item" data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
22 <li><a class="dropdown-item" data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
23 <li><hr class="dropdown-divider"></li>
24 <li><a class="dropdown-item" data-action="delete_selected" data-id="domain" data-api-url='delete/domain' href="#">{{ lang.mailbox.remove }}</a></li>
25 <li><hr class="dropdown-divider"></li>
26 <li><a class="dropdown-item" data-datatables-expand="domain_table">{{ lang.datatables.expand_all }}</a></li>
27 <li><a class="dropdown-item" data-datatables-collapse="domain_table">{{ lang.datatables.collapse_all }}</a></li>
28 {% endif %}
29 </ul>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010030 {% if mailcow_cc_role == 'admin' %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010031 <a class="btn btn-sm btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addDomainModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_domain }}</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010032 {% endif %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010033 </div>
34 </div>
35 <table id="domain_table" class="table table-striped dt-responsive w-100"></table>
36 <div class="mass-actions-mailbox mt-4">
37 <div class="btn-group">
38 <button class="btn btn-sm btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="domain" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</button>
39 <button class="btn btn-sm btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</button>
40 <ul class="dropdown-menu">
41 {% if mailcow_cc_role == 'admin' %}
42 <li><a class="dropdown-item" data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
43 <li><a class="dropdown-item" data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
44 <li><hr class="dropdown-divider"></li>
45 <li><a class="dropdown-item" data-action="delete_selected" data-id="domain" data-api-url='delete/domain' href="#">{{ lang.mailbox.remove }}</a></li>
46 <li><hr class="dropdown-divider"></li>
47 {% endif %}
48 <li><a class="dropdown-item" data-datatables-expand="domain_table">{{ lang.datatables.expand_all }}</a></li>
49 <li><a class="dropdown-item" data-datatables-collapse="domain_table">{{ lang.datatables.collapse_all }}</a></li>
50 </ul>
51 {% if mailcow_cc_role == 'admin' %}
52 <button class="btn btn-sm btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addDomainModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_domain }}</button>
53 {% endif %}
54 </div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010055 </div>
56 </div>
57 </div>
58</div>