1
0
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:
Pek5892
2024-03-27 15:34:01 +01:00
parent d4866e4ce4
commit f3126950c4
180 changed files with 371 additions and 358 deletions

View File

@@ -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>

View File

@@ -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">