2019-02-02 10:40:11 +01:00
< ? php
include_once __DIR__ . '/../../core.php' ;
// Presenza di documenti associati
if ( $record [ 'doc_associati' ] > 0 ) {
echo '
< div class = " alert alert-warning " > '.tr(' Non puoi eliminare questa ritenuta . ').' '.tr(' Ci sono _NUM_ documenti associati . ' , [
'_NUM_' => $record [ 'doc_associati' ],
]) . '</div>' ;
}
?>
< form action = " " method = " post " id = " edit-form " >
< input type = " hidden " name = " backto " value = " record-edit " >
< input type = " hidden " name = " op " value = " update " >
<!-- DATI -->
< div class = " panel panel-primary " >
< div class = " panel-heading " >
< h3 class = " panel-title " >< ? php echo tr ( 'Dati' ); ?> </h3>
</ div >
< div class = " panel-body " >
< div class = " row " >
< div class = " col-md-12 " >
{[ " type " : " text " , " label " : " <?php echo tr('Descrizione'); ?> " , " name " : " descrizione " , " required " : 1 , " value " : " $descrizione $ " ]}
</ div >
</ div >
< div class = " row " >
< div class = " col-md-6 " >
{[ " type " : " number " , " label " : " <?php echo tr('Percentuale'); ?> " , " name " : " percentuale " , " value " : " $percentuale $ " , " icon-after " : " <i class= \" fa fa-percent \" ></i> " ]}
</ div >
< div class = " col-md-6 " >
{[ " type " : " number " , " label " : " <?php echo tr('Percentuale imponibile'); ?> " , " name " : " percentuale_imponibile " , " value " : " $percentuale_imponibile $ " , " help " : " <?php echo tr('Percentuale imponibile sui cui applicare il calcolo della ritenuta'); ?> " , " icon-after " : " <i class= \" fa fa-percent \" ></i> " ]}
</ div >
</ div >
</ div >
</ div >
</ form >
< ? php
// Presenza di documenti associati
if ( $record [ 'doc_associati' ] == 0 ) {
echo '
< a class = " btn btn-danger ask " data - backto = " record-list " >
< i class = " fa fa-trash " ></ i > '.tr(' Elimina ').'
</ a > ' ;
2019-02-19 16:45:46 +01:00
}