-
+
{[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
@@ -25,25 +26,25 @@ if ($contratti == 0) {
{[ "type": "checkbox", "label": "", "name": "is_completato", "value": "$is_completato$", "help": "", "placeholder": "", "extra": "" ]}
-
+
{[ "type": "checkbox", "label": "", "name": "is_pianificabile", "value": "$is_pianificabile$", "help": "", "placeholder": "", "extra": "" ]}
-
+
{[ "type": "checkbox", "label": "", "name": "is_fatturabile", "value": "$is_fatturabile$", "help": "", "placeholder": "", "extra": "" ]}
-
+
-
+
-
+
{[ "type": "text", "label": "", "name": "icona", "required": 1, "class": "text-center", "value": "$icona$", "extra": "", "icon-after": "' : ''; ?>" ]}
-
+
-
+
@@ -61,4 +62,4 @@ if (!empty($contratti)) {
-
\ No newline at end of file
+
diff --git a/modules/stati_preventivo/edit.php b/modules/stati_preventivo/edit.php
index a22b4ee1f..9b9d4999d 100644
--- a/modules/stati_preventivo/edit.php
+++ b/modules/stati_preventivo/edit.php
@@ -1,14 +1,15 @@
fetchArray('SELECT id FROM co_preventivi WHERE idstato='.prepare($id_record)));
-
+$preventivi = $dbo->fetchNum('SELECT id FROM co_preventivi WHERE idstato='.prepare($id_record));
+$attr = '';
+/*
if ($preventivi == 0) {
$attr = '';
} else {
$attr = 'readonly';
echo '
'.tr('Alcune impostazioni non possono essere modificate per questo stato perché già utilizzato in alcuni preventivi.').'
';
-}
+}*/
?>