From 3039c88ae92406cf171bc35b2c0cba4f6cd3e2ca Mon Sep 17 00:00:00 2001 From: pek5892 Date: Fri, 24 May 2024 08:42:20 +0200 Subject: [PATCH] Fix minore --- modules/interventi/edit.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/interventi/edit.php b/modules/interventi/edit.php index 2d0b2fe8c..02c4853cc 100755 --- a/modules/interventi/edit.php +++ b/modules/interventi/edit.php @@ -55,10 +55,7 @@ echo '
-
- {[ "type": "select", "label": "'.tr('Tags').'", "multiple": "1", "name": "tags[]", "values": "query=SELECT `id`, `name` as descrizione FROM `in_tags` ORDER BY `name`", "value": "'.implode(',', $tags).'", "icon-after": "add|'.(new Module())->getByField('title', 'Tags').'|" ]} -
-
+
{[ "type": "select", "label": "'.tr('Stato').'", "name": "idstatointervento", "required": 1, "values": "query=SELECT `in_statiintervento`.`id`, `title` as descrizione, `colore` AS _bgcolor_ FROM `in_statiintervento` LEFT JOIN `in_statiintervento_lang` ON (`in_statiintervento`.`id` = `in_statiintervento_lang`.`id_record` AND `in_statiintervento_lang`.`id_lang` ='.prepare(Models\Locale::getDefault()->id).') WHERE `deleted_at` IS NULL ORDER BY `title`", "value": "$idstatointervento$", "class": "unblockable" ]}
@@ -188,10 +185,12 @@ $sede_azienda = $anagrafica_azienda->sedeLegale;
{[ "type": "timestamp", "label": "", "name": "data_scadenza", "required": 0, "value": "$data_scadenza$", "readonly": "" ]}
-
+
{[ "type": "select", "label": "", "name": "idtipointervento", "required": 1, "ajax-source": "tipiintervento", "value": "$idtipointervento$", "readonly": "" ]}
- +
+ {[ "type": "select", "label": "", "multiple": "1", "name": "tags[]", "values": "query=SELECT `id`, `name` as descrizione FROM `in_tags` ORDER BY `name`", "value": "", "icon-after": "add|getByField('title', 'Tags'); ?>|" ]} +