2018-03-21 16:57:31 +01:00
< form action = " " method = " post " id = " add-form " >
< input type = " hidden " name = " op " value = " add " >
< input type = " hidden " name = " backto " value = " record-edit " >
< div class = " row " >
2018-03-21 19:33:33 +01:00
< div class = " col-md-6 " >
2018-03-21 16:57:31 +01:00
{[ " type " : " text " , " label " : " <?php echo tr('Nome'); ?> " , " name " : " name " , " required " : 1 , " class " : " " , " value " : " $name $ " , " extra " : " " ]}
</ div >
2018-03-21 19:33:33 +01:00
< div class = " col-md-6 " >
2018-03-21 16:57:31 +01:00
{[ " type " : " text " , " label " : " <?php echo tr('Maschera'); ?> " , " name " : " pattern " , " required " : 1 , " class " : " alphanumeric-mask " , " value " : " $pattern $ " , " maxlength " : 25 , " placeholder " : " ####/YY " , " extra " : " " ]}
</ div >
2018-03-21 19:33:33 +01:00
</ div >
< div class = " row " >
< div class = " col-md-6 " >
2018-03-22 12:45:29 +01:00
{[ " type " : " select " , " label " : " <?php echo tr('Modulo'); ?> " , " name " : " id_module_ " , " required " : 1 , " class " : " " , " values " : " query=SELECT id, name AS descrizione FROM zz_modules WHERE enabled = 1 AND options != 'custom' ORDER BY name ASC " , " value " : " $id_module $ " , " extra " : " " ]}
2018-03-21 16:57:31 +01:00
</ div >
2018-03-21 19:33:33 +01:00
< div class = " col-md-6 " >
{[ " type " : " checkbox " , " label " : " <?php echo tr('Predefinito'); ?> " , " name " : " predefined " , " value " : " 0 " , " help " : " <?php echo tr('Seleziona per rendere il segmento predefinito.'); ?> " , " placeholder " : " <?php echo tr('Segmento predefinito'); ?> " ]}
</ div >
2018-03-21 16:57:31 +01:00
</ div >
< div class = " row " >
< div class = " col-md-12 " >
{[ " type " : " textarea " , " label " : " Note " , " name " : " note " , " required " : 0 , " class " : " " , " value " : " " , " extra " : " " ]}
</ div >
</ div >
< button type = " submit " class = " btn btn-primary pull-right " >< i class = " fa fa-plus " ></ i > Inserisci </ button >
< div class = " clearfix " ></ div >
</ form >
<!-- script >
$ ( document ) . ready ( function (){
start_jquerychosen ();
});
</ script -->