. */ include_once __DIR__.'/../../core.php'; use Models\PrintTemplate; ?>

{[ "type": "text", "label": "", "name": "title", "required": 1, "value": "$title$" ]}
{[ "type": "text", "label": "", "name": "filename", "required": 1, "value": "$filename$" ]}
{[ "type": "select", "label": "", "name": "module", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_modules WHERE ( enabled = 1 AND options != 'custom' ) OR id = ORDER BY name ASC", "value": "", "disabled": "1" ]}
{[ "type": "checkbox", "label": "", "name": "enabled", "value": "$enabled$", "disabled": "1" ]}
{[ "type": "number", "label": "", "name": "order", "required": 0, "value": "$order$", "decimals":0 ]}
where('id_module', $record['id_module']) ->orderBy('id') ->first(); if (!empty($stampa_predefinita)) { $nome_stampa_predefinita = $stampa_predefinita->name; } else { $nome_stampa_predefinita = 'Nessuna'; } ?>
{[ "type": "checkbox", "label": "", "help" : "", "name": "predefined", "value": "$predefined$", "disabled": "" ]}
{[ "type": "textarea", "label": "", "name": "options", "value": "$options$", "help": "" ]}
getPlaceholders($id_record); echo '

'.tr('Variabili').'

'; if (!empty($variables)) { echo '

'.tr('Puoi utilizzare le seguenti variabili per generare il nome del file').':

'; } else { echo '

'.tr('Non sono state definite variabili da utilizzare nel template').'.

'; } echo '

'; ?>