Fix pagina di login
This commit is contained in:
parent
dbc274a1b7
commit
6fc5eb0aa6
|
@ -195,6 +195,10 @@ a:focus {
|
|||
margin: 7% auto
|
||||
}
|
||||
|
||||
.card-center-medium {
|
||||
margin: 7% auto
|
||||
}
|
||||
|
||||
.box-center .box-body,
|
||||
.box-center-large .box-body {
|
||||
padding: 20px;
|
||||
|
@ -1068,6 +1072,7 @@ kbd{
|
|||
.login-page{
|
||||
background: #ccc;
|
||||
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{
|
||||
|
|
|
@ -148,10 +148,7 @@ if (!$has_user) {
|
|||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<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>
|
||||
{[ "type": "text", "label": "'.tr('Username').'", "id": "admin_username", "name": "admin_username", "value": "", "placeholder": "'.tr("Imposta lo username dell'amministratore").'", "required": 1]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
@ -159,10 +156,7 @@ if (!$has_user) {
|
|||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<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>
|
||||
{[ "type": "text", "label": "'.tr('Email').'", "id": "admin_email", "name": "admin_email", "value": "", "placeholder": "'.tr("Imposta l'indirizzo email dell'amministratore").'", "required": 1]}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -157,7 +157,7 @@ if (!empty(flash()->getMessage('error'))) {
|
|||
|
||||
echo '
|
||||
<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-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">
|
||||
|
|
|
@ -88,5 +88,6 @@
|
|||
"windows-fix": "yarn global add windows-build-tools",
|
||||
"php-cs-fix": "vendor/bin/php-cs-fixer fix",
|
||||
"rector": "vendor/bin/rector process"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||
}
|
||||
|
|
|
@ -105,8 +105,6 @@ class DefaultHandler implements HandlerInterface
|
|||
|
||||
$result = '
|
||||
<script>
|
||||
|
||||
|
||||
const characters ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!$£%-()*[]";
|
||||
|
||||
function generateString(length) {
|
||||
|
@ -133,8 +131,7 @@ class DefaultHandler implements HandlerInterface
|
|||
$("#'.$values['id'].'").attr("type", "text");
|
||||
button.removeClass("fa-eye").addClass("fa-eye-slash");
|
||||
button.attr("title", "'.tr('Nascondi password').'");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$("#'.$values['id'].'").attr("type", "password");
|
||||
button.removeClass("fa-eye-slash").addClass("fa-eye");
|
||||
button.attr("title", "'.tr('Visualizza password').'");
|
||||
|
@ -153,11 +150,11 @@ class DefaultHandler implements HandlerInterface
|
|||
<div id="'.$values['id'].'_viewport_progress"></div>
|
||||
|
||||
<script src="'.base_path().'/assets/dist/password-strength/password.min.js"></script>
|
||||
<script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#'.$values['id'].'").pwstrength({
|
||||
ui: {
|
||||
bootstrap3: true,
|
||||
bootstrap4: true,
|
||||
showVerdictsInsideProgressBar: true,
|
||||
viewports: {
|
||||
progress: "#'.$values['id'].'_viewport_progress",
|
||||
|
|
Loading…
Reference in New Issue