mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Ottimizzazione lingue
This commit is contained in:
@@ -31,7 +31,7 @@ echo '
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{[ "type": "select", "label": "'.tr('Gruppo di appartenenza').'", "name": "idgruppo", "required": 1, "ajax-source": "gruppi", "value": "'.(!empty($utente['idgruppo']) ? $utente['idgruppo'] : $current_idgruppo).'", "icon-after": "add|'.(new Module())->getByField('name', 'Utenti e permessi').'", "readonly": "'.(($utente['id'] == '1') ? 1 : 0).'" ]}
|
||||
{[ "type": "select", "label": "'.tr('Gruppo di appartenenza').'", "name": "idgruppo", "required": 1, "ajax-source": "gruppi", "value": "'.(!empty($utente['idgruppo']) ? $utente['idgruppo'] : $current_idgruppo).'", "icon-after": "add|'.(new Module())->getByField('name', 'Utenti e permessi', \Models\Locale::where('predefined', true)->first()->id).'", "readonly": "'.(($utente['id'] == '1') ? 1 : 0).'" ]}
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
@@ -54,7 +54,7 @@ echo '
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{[ "type": "select", "label": "'.tr('Collega ad una anagrafica').'", "name": "idanag", "required": 1, "ajax-source": "anagrafiche_utenti", "value": "'.$utente['id_anagrafica'].'", "icon-after": "add|'.(new Module())->getByField('name', 'Anagrafiche').(isset($gruppo) ? '|tipoanagrafica='.$gruppo : '').'" ]}
|
||||
{[ "type": "select", "label": "'.tr('Collega ad una anagrafica').'", "name": "idanag", "required": 1, "ajax-source": "anagrafiche_utenti", "value": "'.$utente['id_anagrafica'].'", "icon-after": "add|'.(new Module())->getByField('name', 'Anagrafiche', \Models\Locale::where('predefined', true)->first()->id).(isset($gruppo) ? '|tipoanagrafica='.$gruppo : '').'" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ if (!empty($rs)) {
|
||||
}
|
||||
|
||||
$api = base_url().'/api/?token='.$token;
|
||||
$module = Module::find((new Module())->getByField('name', 'Utenti e permessi'));
|
||||
$module = Module::find((new Module())->getByField('name', 'Utenti e permessi', \Models\Locale::where('predefined', true)->first()->id));
|
||||
|
||||
echo '
|
||||
<div class="box box-widget widget-user">
|
||||
|
||||
Reference in New Issue
Block a user