Introduzione impostazione Autocomple web form

This commit is contained in:
Luca 2019-07-25 14:49:24 +02:00
parent 19731c33e2
commit e02b1f812d
5 changed files with 18 additions and 12 deletions

View File

@ -127,7 +127,7 @@ if (!empty(flash()->getMessage('error'))) {
}
echo '
<form action="?op=login" method="post" class="login-box box">
<form action="?op=login" method="post" class="login-box box" autocomplete="off" >
<div class="box-header with-border text-center">
<img src="'.App::getPaths()['img'].'/logo.png" alt="'.tr('OSM Logo').'">
<h3 class="box-title">'.tr('OpenSTAManager').'</h3>

View File

@ -26,7 +26,7 @@ if (!$is_cliente) {
?>
<form action="" method="post" id="edit-form" >
<form action="" method="post" id="edit-form" autocomplete="<?php echo setting('Autocomple web form')?>" >
<fieldset>
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">
@ -40,7 +40,7 @@ if (!$is_cliente) {
<div class="panel-body">
<div class="row">
<div class="col-md-6">
{[ "type": "text", "label": "<?php echo tr('Denominazione'); ?>", "name": "ragione_sociale", "required": 1, "value": "$ragione_sociale$", "extra": "autocomplete=\"off\"" ]}
{[ "type": "text", "label": "<?php echo tr('Denominazione'); ?>", "name": "ragione_sociale", "required": 1, "value": "$ragione_sociale$", "extra": "" ]}
</div>
<div class="col-md-3">
@ -55,11 +55,11 @@ if (!$is_cliente) {
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Cognome'); ?>", "name": "cognome", "required": 0, "value": "$cognome$", "extra": "autocomplete=\"off\"" ]}
{[ "type": "text", "label": "<?php echo tr('Cognome'); ?>", "name": "cognome", "required": 0, "value": "$cognome$", "extra": "" ]}
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 0, "value": "$nome$", "extra": "autocomplete=\"off\"" ]}
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 0, "value": "$nome$", "extra": "" ]}
</div>
<div class="col-md-4">

View File

@ -5,6 +5,6 @@ include_once __DIR__.'/../../core.php';
echo '
<div class="row">
<div class="col-md-12">
{[ "type": "file", "label": "'.tr('Foto').'", "name": "photo" ]}
{[ "type": "file", "label": "'.tr('Foto utente').'", "name": "photo", "help": "'.tr('Dimensione consigliata 100x100 pixel').'" ]}
</div>
</div>';

View File

@ -21,6 +21,7 @@ if (!empty($rs)) {
}
$api = BASEURL.'/api/?token='.$token;
$module = Modules::get('Utenti e permessi');
echo '
<div class="box">
@ -33,8 +34,7 @@ echo '
// Cambio password e nome utente
echo '
<div class="row">
<div class="col-md-12">
<img src="'.$user->photo.'" class="img-responsive img-thumbnail pull-right">
<div class="col-md-8">
<p>'.tr('Utente').': <b>'.$user['username'].'</b></p>
<p>'.tr('Gruppo').': <b>'.$user['gruppo'].'</b></p>';
@ -46,9 +46,12 @@ if (!empty($anagrafica)) {
echo '
</div>
</div>';
$module = Modules::get('Utenti e permessi');
<div class="col-md-4">
<a data-href="'.$module->fileurl('self.php').'?id_module='.$module->id.'&resource=photo" data-toggle="modal" ><img src="'.$user->photo.'" class="img-responsive img-thumbnail pull-right"></a>
</div>
</div><div class="clearfix">&nbsp;</div>';
if (!empty($module)) {
echo '
@ -62,8 +65,8 @@ if (!empty($module)) {
</div>
<div class="col-md-6">
<a class="btn btn-info btn-block tip" data-href="'.$module->fileurl('self.php').'?id_module='.$module->id.'&resource=photo" data-toggle="modal" data-title="'.tr('Cambia foto').'">
<i class="fa fa-picture-o"></i> '.tr('Cambia foto').'
<a class="btn btn-info btn-block tip" data-href="'.$module->fileurl('self.php').'?id_module='.$module->id.'&resource=photo" data-toggle="modal" data-title="'.tr('Cambia foto utente').'">
<i class="fa fa-picture-o"></i> '.tr('Cambia foto utente').'
</a>
</div>
</div>';

View File

@ -180,3 +180,6 @@ UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `co_scadenziario`
WHERE 1=1 AND ABS(`co_scadenziario`.`pagato`) < ABS(`co_scadenziario`.`da_pagare`) AND (`co_statidocumento`.`descrizione` IS NULL OR `co_statidocumento`.`descrizione` IN(''Emessa'',''Parzialmente pagato''))
HAVING 2=2
ORDER BY `scadenza` ASC' WHERE `name` = 'Scadenzario';
-- Aggiunte impostazione Autocomple web form
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Autocomple web form', 'on', 'list[on,off]', '1', 'Generali', '', NULL);