blob: 02b5b6d0ce22e02dd8d08b9ea807c29702416820 [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001<div class="tab-pane fade" id="tab-mbox-aliases" role="tabpanel" aria-labelledby="tab-mbox-aliases">
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-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-mbox-aliases" data-bs-toggle="collapse" aria-controls="collapse-tab-mbox-aliases">
5 {{ lang.mailbox.aliases }} <span class="badge bg-info table-lines"></span>
6 </button>
7 <span class="d-none d-md-block">{{ lang.mailbox.aliases }} <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_alias_table" data-table="alias_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-mbox-aliases" class="card-body collapse" data-bs-parent="#mail-content">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010014 <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 <a class="btn btn-sm btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="alias" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</a>
17 <a class="btn btn-sm btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
18 <ul class="dropdown-menu top33">
19 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
20 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
21 <li><hr class="dropdown-divider"></li>
22 <li><a class="dropdown-item" data-action="delete_selected" data-id="alias" data-api-url='delete/alias' href="#">{{ lang.mailbox.remove }}</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010023 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
24 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="alias_table">{{ lang.datatables.expand_all }}</a></li>
25 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="alias_table">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010026 {% if not skip_sogo %}
27 <li><hr class="dropdown-divider"></li>
28 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"sogo_visible":"1"}' href="#">{{ lang.mailbox.sogo_visible_y }}</a></li>
29 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"sogo_visible":"0"}' href="#">{{ lang.mailbox.sogo_visible_n }}</a></li>
30 {% endif %}
31 </ul>
32 <a class="btn btn-sm btn-secondary" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"expand_alias":true}' ><i class="bi bi-arrows-angle-expand"></i> {{ lang.mailbox.add_alias_expand }}</a>
33 <a class="btn btn-sm btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addAliasModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_alias }}</a>
34 </div>
35 </div>
36 <p class="text-muted">{{ lang.mailbox.alias_domain_alias_hint|raw }}</p>
37 <table id="alias_table" class="table table-striped dt-responsive w-100"></table>
38 <div class="mass-actions-mailbox mt-4">
39 <div class="btn-group">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010040 <a class="btn btn-sm btn-xs-lg btn-xs-half btn-secondary" id="toggle_multi_select_all" data-id="alias" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</a>
41 <a class="btn btn-sm btn-xs-lg btn-xs-half btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010042 <ul class="dropdown-menu top33">
43 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
44 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
45 <li><hr class="dropdown-divider"></li>
46 <li><a class="dropdown-item" data-action="delete_selected" data-id="alias" data-api-url='delete/alias' href="#">{{ lang.mailbox.remove }}</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010047 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
48 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="alias_table">{{ lang.datatables.expand_all }}</a></li>
49 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="alias_table">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010050 {% if not skip_sogo %}
51 <li><hr class="dropdown-divider"></li>
52 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"sogo_visible":"1"}' href="#">{{ lang.mailbox.sogo_visible_y }}</a></li>
53 <li><a class="dropdown-item" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"sogo_visible":"0"}' href="#">{{ lang.mailbox.sogo_visible_n }}</a></li>
54 {% endif %}
55 </ul>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010056 <a class="btn btn-sm btn-xs-lg btn-secondary" data-action="edit_selected" data-id="alias" data-api-url='edit/alias' data-api-attr='{"expand_alias":true}' ><i class="bi bi-arrows-angle-expand"></i> {{ lang.mailbox.add_alias_expand }}</a>
57 <a class="btn btn-sm btn-xs-lg btn-success" href="#" data-bs-toggle="modal" data-bs-target="#addAliasModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_alias }}</a>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010058 </div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010059 </div>
60 </div>
61 </div>
62</div>