1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Personalizzazione scadenze

This commit is contained in:
Thomas Zilio
2019-07-25 18:05:47 +02:00
parent 604a8eac6b
commit 30957f2363
15 changed files with 154 additions and 75 deletions

View File

@@ -49,8 +49,9 @@ switch (filter('op')) {
$utente->email = $email;
$cambia_password = filter('change_password');
if (!empty($cambia_password))
$utente->password = $password;
if (!empty($cambia_password)) {
$utente->password = $password;
}
} else {
$utente = User::build($username, $email, $password);
}

View File

@@ -7,7 +7,7 @@ $_SESSION['superselect']['idanagrafica'] = $utente['id_anagrafica'];
echo '
<div class="row">
<div class="col-md-12">
{[ "type": "text", "label": "'.tr('Username').'", "name": "username", "required": 1, "value": "'.$utente['username'].'", "validation": "username||'.($utente['id']?:0).'" ]}
{[ "type": "text", "label": "'.tr('Username').'", "name": "username", "required": 1, "value": "'.$utente['username'].'", "validation": "username||'.($utente['id'] ?: 0).'" ]}
</div>
</div>';

View File

@@ -42,7 +42,7 @@ if (!empty($user)) {
echo '
<div class="row">
<div class="col-md-12">
{[ "type": "checkbox", "label": "' . tr('Cambia password') . '", "name": "change_password", "value": "1" ]}
{[ "type": "checkbox", "label": "'.tr('Cambia password').'", "name": "change_password", "value": "1" ]}
</div>
</div>