Fix pagina di login

This commit is contained in:
valentina 2024-07-16 15:42:39 +02:00
parent dbc274a1b7
commit 6fc5eb0aa6
5 changed files with 28 additions and 31 deletions

View File

@ -195,6 +195,10 @@ a:focus {
margin: 7% auto margin: 7% auto
} }
.card-center-medium {
margin: 7% auto
}
.box-center .box-body, .box-center .box-body,
.box-center-large .box-body { .box-center-large .box-body {
padding: 20px; padding: 20px;
@ -1068,6 +1072,7 @@ kbd{
.login-page{ .login-page{
background: #ccc; background: #ccc;
background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 34%, rgba(204,204,204,1) 100%); background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 34%, rgba(204,204,204,1) 100%);
display: block;
} }
.icon{ .icon{

View File

@ -148,10 +148,7 @@ if (!$has_user) {
<div class="card-body"> <div class="card-body">
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> {[ "type": "text", "label": "'.tr('Username').'", "id": "admin_username", "name": "admin_username", "value": "", "placeholder": "'.tr("Imposta lo username dell'amministratore").'", "required": 1]}
<label for="admin_username">'.tr('Username').'</label>
<input type="text" class="form-control" id="admin_username" name="admin_username" placeholder="'.tr("Imposta l'username dell'amministratore").'" required>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
@ -159,10 +156,7 @@ if (!$has_user) {
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group"> {[ "type": "text", "label": "'.tr('Email').'", "id": "admin_email", "name": "admin_email", "value": "", "placeholder": "'.tr("Imposta l'indirizzo email dell'amministratore").'", "required": 1]}
<label for="admin_email">'.tr('Email').'</label>
<input type="email" class="form-control" id="admin_email" name="admin_email" placeholder="'.tr("Imposta l'indirizzo email dell'amministratore").'" required>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -157,7 +157,7 @@ if (!empty(flash()->getMessage('error'))) {
echo ' echo '
<form action="?op=login" method="post" autocomplete="off"> <form action="?op=login" method="post" autocomplete="off">
<div class="login-box"> <div class="login-box card-center-medium">
<div class="card card-outline card-orange"> <div class="card card-outline card-orange">
<div class="card-header text-center"> <div class="card-header text-center">
<img src="'.App::getPaths()['img'].'/logo_completo.png" alt="'.tr('OpenSTAManager, il software gestionale open source per assistenza tecnica e fatturazione elettronica').'" class="img-fluid"> <img src="'.App::getPaths()['img'].'/logo_completo.png" alt="'.tr('OpenSTAManager, il software gestionale open source per assistenza tecnica e fatturazione elettronica').'" class="img-fluid">

View File

@ -88,5 +88,6 @@
"windows-fix": "yarn global add windows-build-tools", "windows-fix": "yarn global add windows-build-tools",
"php-cs-fix": "vendor/bin/php-cs-fixer fix", "php-cs-fix": "vendor/bin/php-cs-fixer fix",
"rector": "vendor/bin/rector process" "rector": "vendor/bin/rector process"
} },
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
} }

View File

@ -105,8 +105,6 @@ class DefaultHandler implements HandlerInterface
$result = ' $result = '
<script> <script>
const characters ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!%-()*[]"; const characters ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!%-()*[]";
function generateString(length) { function generateString(length) {
@ -133,8 +131,7 @@ class DefaultHandler implements HandlerInterface
$("#'.$values['id'].'").attr("type", "text"); $("#'.$values['id'].'").attr("type", "text");
button.removeClass("fa-eye").addClass("fa-eye-slash"); button.removeClass("fa-eye").addClass("fa-eye-slash");
button.attr("title", "'.tr('Nascondi password').'"); button.attr("title", "'.tr('Nascondi password').'");
} } else {
else {
$("#'.$values['id'].'").attr("type", "password"); $("#'.$values['id'].'").attr("type", "password");
button.removeClass("fa-eye-slash").addClass("fa-eye"); button.removeClass("fa-eye-slash").addClass("fa-eye");
button.attr("title", "'.tr('Visualizza password').'"); button.attr("title", "'.tr('Visualizza password').'");
@ -157,7 +154,7 @@ class DefaultHandler implements HandlerInterface
$(document).ready(function(){ $(document).ready(function(){
$("#'.$values['id'].'").pwstrength({ $("#'.$values['id'].'").pwstrength({
ui: { ui: {
bootstrap3: true, bootstrap4: true,
showVerdictsInsideProgressBar: true, showVerdictsInsideProgressBar: true,
viewports: { viewports: {
progress: "#'.$values['id'].'_viewport_progress", progress: "#'.$values['id'].'_viewport_progress",