Controllo campo codice iva

This commit is contained in:
Luca 2018-11-30 17:12:25 +01:00
parent 36d4fceded
commit 36dc4c5a70
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ include_once __DIR__.'/../../core.php';
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "codice", "class":"alphanumeric-mask", "maxlength": 10 ]}
{[ "type": "number", "label": "<?php echo tr('Codice'); ?>", "name": "codice", "decimals":0, "min-value":"0", "max-value":"999", "maxlength": 3 ]}
</div>
</div>

View File

@ -57,7 +57,7 @@ $esigibilita = [
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "codice", "value": "$codice$", "class":"alphanumeric-mask", "maxlength": 10, "extra": "<?php echo $attr; ?>" ]}
{[ "type": "number", "label": "<?php echo tr('Codice'); ?>", "name": "codice", "value": "$codice$", "decimals":0, "min-value":"0", "max-value":"999", "maxlength": 3, "extra": "<?php echo $attr; ?>" ]}
</div>
<div class="col-md-4">