mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-04 10:24:42 +02:00
Fix domain admin table, move quick actions
This commit is contained in:
parent
2c2441eaf0
commit
25e6339940
@ -12,8 +12,6 @@ table.footable>tbody>tr.footable-empty>td {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.footer-add-item {
|
||||
text-align:center;
|
||||
font-style: italic;
|
||||
display:block;
|
||||
padding: 10px;
|
||||
background: #F5F5F5;
|
||||
@ -28,11 +26,11 @@ table.footable>tbody>tr.footable-empty>td {
|
||||
}
|
||||
.mass-select-all {
|
||||
cursor:pointer;
|
||||
color:grey;
|
||||
color:#555;
|
||||
}
|
||||
#alias_table {
|
||||
cursor:pointer;
|
||||
}
|
||||
#alias_table .footable-paging {
|
||||
cursor: auto;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: '/api/v1/domain-admin/all',
|
||||
url: '/api/v1/get/domain-admin/all',
|
||||
jsonp: false,
|
||||
error: function () {
|
||||
alert('Cannot draw domain administrator table');
|
||||
|
@ -237,6 +237,7 @@ $(document).ready(function() {
|
||||
$.each(data, function (i, item) {
|
||||
item.action = '<div class="btn-group">' +
|
||||
'<a href="/edit.php?alias=' + encodeURI(item.address) + '" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-pencil"></span> ' + lang.edit + '</a>' +
|
||||
'<a href="/remove.php?alias=' + encodeURI(item.address) + '" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-pencil"></span> ' + lang.remove + '</a>' +
|
||||
'</div>';
|
||||
item.chkbox = '<input type="checkbox" class="alias_item" name="sel_aliases" value="' + item.address + '" />';
|
||||
if (item.is_catch_all == 1) {
|
||||
|
@ -102,14 +102,17 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||
<table id="alias_table" class="table table-striped"></table>
|
||||
</div>
|
||||
<div class="mass-actions">
|
||||
<span id="select_all_aliases" class="mass-select-all"><?=$lang['mailbox']['toggle_all'];?></span>
|
||||
<span>– <?=$lang['mailbox']['quick_actions'];?>:
|
||||
<a id="delete_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['remove'];?></a> |
|
||||
<a id="activate_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['activate'];?></a> |
|
||||
<a id="deactivate_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['deactivate'];?></a>
|
||||
</span>
|
||||
<p id="select_all_aliases" class="mass-select-all">
|
||||
↪ <?=$lang['mailbox']['toggle_all'];?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-add-item">
|
||||
<b><?=$lang['mailbox']['quick_actions'];?>:</b>
|
||||
<a id="delete_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['remove'];?></a> |
|
||||
<a id="activate_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['activate'];?></a> |
|
||||
<a id="deactivate_selected_alias" href="#" class="mass-each-action"><?=$lang['mailbox']['deactivate'];?></a>
|
||||
<a class="pull-right" href="/add.php?alias"><?=$lang['mailbox']['add_alias'];?></a>
|
||||
</div>
|
||||
<span class="footer-add-item"><a href="/add.php?alias"><?=$lang['mailbox']['add_alias'];?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user