[Web] Fix ACL for spam score and minor style fix

master
andryyy 2021-07-09 08:23:23 +02:00
parent f73ac284e5
commit dfc8c95a54
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 29 additions and 25 deletions

View File

@ -570,6 +570,8 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
<div role="tabpanel" class="tab-pane" id="Spamfilter"> <div role="tabpanel" class="tab-pane" id="Spamfilter">
<h4><?=$lang['user']['spamfilter_behavior'];?></h4> <h4><?=$lang['user']['spamfilter_behavior'];?></h4>
<div class="row">
<div class="col-sm-12">
<form class="form-horizontal" role="form" data-id="spam_score" method="post"> <form class="form-horizontal" role="form" data-id="spam_score" method="post">
<div class="form-group"> <div class="form-group">
<div class="col-lg-8 col-sm-12"> <div class="col-lg-8 col-sm-12">
@ -582,19 +584,21 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
</ul> </ul>
</div> </div>
</div> </div>
<div class="btn-group" data-acl="<?=$_SESSION['acl']['spam_policy'];?>"> <div class="btn-group" data-acl="<?=$_SESSION['acl']['spam_score'];?>">
<a type="button" class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="edit_selected" <a type="button" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="edit_selected"
data-item="<?= htmlentities($username); ?>" data-item="<?= htmlentities($username); ?>"
data-id="spam_score" data-id="spam_score"
data-api-url='edit/spam-score' data-api-url='edit/spam-score'
data-api-attr='{}'><i class="bi bi-save"></i> <?=$lang['user']['save_changes'];?></a> data-api-attr='{}'><i class="bi bi-save"></i> <?=$lang['user']['save_changes'];?></a>
<a type="button" class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected" <a type="button" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected"
data-item="<?= htmlentities($username); ?>" data-item="<?= htmlentities($username); ?>"
data-id="spam_score_reset" data-id="spam_score_reset"
data-api-url='edit/spam-score' data-api-url='edit/spam-score'
data-api-attr='{"spam_score":"default"}'><?=$lang['user']['spam_score_reset'];?></a> data-api-attr='{"spam_score":"default"}'><?=$lang['user']['spam_score_reset'];?></a>
</div> </div>
</form> </form>
</div>
</div>
<hr> <hr>
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">