[Web] Fix username policy display for admins and domain admins (also added for edit pages)

master
andryyy 2021-04-20 20:59:39 +02:00
parent 46f2a011c3
commit 1cdac4ff18
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 5 additions and 3 deletions

View File

@ -106,7 +106,7 @@ if (isset($_SESSION['mailcow_cc_role'])) {
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2" for="username_new"><?=$lang['edit']['username'];?></label> <label class="control-label col-sm-2" for="username_new"><?=$lang['edit']['username'];?></label>
<div class="col-sm-10"> <div class="col-sm-10">
<input class="form-control" type="text" name="username_new" value="<?=htmlspecialchars($domain_admin);?>" /> <input class="form-control" type="text" name="username_new" value="<?=htmlspecialchars($domain_admin);?>" required onkeyup="this.value = this.value.toLowerCase();" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -197,14 +197,14 @@ if (isset($_SESSION['mailcow_cc_role'])) {
$result = admin('details', $admin); $result = admin('details', $admin);
if (!empty($result)) { if (!empty($result)) {
?> ?>
<h4><?=$lang['edit']['domain_admin'];?></h4> <h4><?=$lang['edit']['admin'];?></h4>
<br> <br>
<form class="form-horizontal" data-id="editadmin" role="form" method="post" autocomplete="off"> <form class="form-horizontal" data-id="editadmin" role="form" method="post" autocomplete="off">
<input type="hidden" value="0" name="active"> <input type="hidden" value="0" name="active">
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2" for="username_new"><?=$lang['edit']['username'];?></label> <label class="control-label col-sm-2" for="username_new"><?=$lang['edit']['username'];?></label>
<div class="col-sm-10"> <div class="col-sm-10">
<input class="form-control" type="text" name="username_new" value="<?=htmlspecialchars($admin);?>" /> <input class="form-control" type="text" name="username_new" onkeyup="this.value = this.value.toLowerCase();" required value="<?=htmlspecialchars($admin);?>" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -504,6 +504,7 @@
}, },
"edit": { "edit": {
"active": "Aktiv", "active": "Aktiv",
"admin": "Administrator bearbeiten",
"advanced_settings": "Erweiterte Einstellungen", "advanced_settings": "Erweiterte Einstellungen",
"alias": "Alias bearbeiten", "alias": "Alias bearbeiten",
"allow_from_smtp": "Nur folgende IPs für <b>SMTP</b> erlauben", "allow_from_smtp": "Nur folgende IPs für <b>SMTP</b> erlauben",

View File

@ -502,6 +502,7 @@
}, },
"edit": { "edit": {
"active": "Active", "active": "Active",
"admin": "Edit administrator",
"advanced_settings": "Advanced settings", "advanced_settings": "Advanced settings",
"alias": "Edit alias", "alias": "Edit alias",
"allow_from_smtp": "Only allow these IPs to use <b>SMTP</b>", "allow_from_smtp": "Only allow these IPs to use <b>SMTP</b>",