blob: e29d8544b28008e8eedd892f6cc7996ae3bb7cec [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001<div role="tabpanel" class="tab-pane active" id="tab-domains">
2 <div class="panel panel-default">
3 <div class="panel-heading">
4 {{ lang.mailbox.domains }} <span class="badge badge-info table-lines"></span>
5 <div class="btn-group pull-right hidden-xs">
6 {% if mailcow_cc_role == 'admin' %}
7 <button class="btn btn-xs btn-success" href="#" data-toggle="modal" data-target="#addDomainModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_domain }}</button>
8 {% endif %}
9 <button class="btn btn-xs btn-default refresh_table" data-draw="draw_domain_table" data-table="domain_table">{{ lang.admin.refresh }}</button>
10 <button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown">{{ lang.mailbox.table_size }}
11 <span class="caret"></span>
12 </button>
13 <ul class="dropdown-menu" data-table-id="domain_table" role="menu">
14 {% include 'mailbox/page-size.twig' %}
15 </ul>
16 </div>
17 </div>
18{# <div class="mass-actions-mailbox" data-actions-header="true"></div>#}
19 <div class="table-responsive">
20 <table id="domain_table" class="table table-striped"></table>
21 </div>
22 <div class="mass-actions-mailbox">
23 <div class="btn-group">
24 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" id="toggle_multi_select_all" data-id="domain" href="#"><i class="bi bi-check-all"></i> {{ lang.mailbox.toggle_all }}</a>
25 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default dropdown-toggle" data-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }} <span class="caret"></span></a>
26 <ul class="dropdown-menu">
27 {% if mailcow_cc_role == 'admin' %}
28 <li><a data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
29 <li><a data-action="edit_selected" data-id="domain" data-api-url='edit/domain' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
30 <li role="separator" class="divider"></li>
31 <li><a data-action="delete_selected" data-id="domain" data-api-url='delete/domain' href="#">{{ lang.mailbox.remove }}</a></li>
32 {% endif %}
33 </ul>
34 <div class="clearfix visible-xs"></div>
35 {% if mailcow_cc_role == 'admin' %}
36 <a class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" href="#" data-toggle="modal" data-target="#addDomainModal"><i class="bi bi-plus-lg"></i> {{ lang.mailbox.add_domain }}</a>
37 {% endif %}
38 </div>
39 </div>
40 </div>
41</div>