1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 05:54:03 +01:00

Aggiunta possibilità di aggiungere le zone dalla scheda anagrafica

This commit is contained in:
Luca 2018-03-02 17:45:35 +01:00
parent 5f89f16ba6
commit 81811ff293
5 changed files with 12 additions and 6 deletions

View File

@ -145,7 +145,7 @@ if (!$cliente) {
</div>
<div class="col-md-4">
{[ "type": "select", "label": "<?php echo tr('Zona'); ?>", "name": "idzona", "values": "query=SELECT id, CONCAT_WS( ' - ', nome, descrizione) AS descrizione FROM an_zone ORDER BY descrizione ASC", "value": "$idzona$" ]}
{[ "type": "select", "label": "<?php echo tr('Zona'); ?>", "name": "idzona", "values": "query=SELECT id, CONCAT_WS( ' - ', nome, descrizione) AS descrizione FROM an_zone ORDER BY descrizione ASC", "value": "$idzona$", "icon-after": "add|<?php echo Modules::get('Zone')['id']; ?>" ]}
</div>
</div>
</div>

View File

@ -43,7 +43,7 @@ echo '
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Icona'); ?>", "name": "icon", "value": "$icon$" ]}
{[ "type": "text", "label": "<?php echo tr('Icona'); ?>", "name": "icon", "value": "$icon$" ,"help":"<?php echo tr('Es. \'fa fa-envelope\''); ?>" ]}
</div>
</div>
@ -53,11 +53,11 @@ echo '
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('BCC'); ?>", "name": "port", "value": "$bcc$" ]}
{[ "type": "text", "label": "<?php echo tr('BCC'); ?>", "name": "bcc", "value": "$bcc$" ]}
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Reply to'); ?>", "name": "reply_to", "value": "$reply_to$" ]}
{[ "type": "email", "label": "<?php echo tr('Reply to'); ?>", "name": "reply_to", "value": "$reply_to$" ]}
</div>
</div>

View File

@ -40,6 +40,12 @@ switch (post('op')) {
$_SESSION['infos'][] = tr('Aggiunta una nuova zona!');
}
if (isAjaxRequest()) {
echo json_encode(['id' => $id_record, 'text' => $nome.' - '.$descrizione]);
}
break;
case 'delete':

View File

@ -8,7 +8,7 @@ include_once __DIR__.'/../../core.php';
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "nome", "required": 1, "value": "" ]}
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "nome", "required": 1, "maxlength": 25, "class": "alphanumeric-mask", "value": "" ]}
</div>
<div class="col-md-8">

View File

@ -10,7 +10,7 @@ include_once __DIR__.'/../../core.php';
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "nome", "required": 1, "value": "$nome$" ]}
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "nome", "required": 1, "maxlength": 25, "class": "alphanumeric-mask", "value": "$nome$" ]}
</div>
<div class="col-md-8">