fix: struttura scheda preventivo / contratto

This commit is contained in:
Luca 2024-10-24 16:27:03 +02:00
parent a73af9c926
commit 8b4089bf39
2 changed files with 37 additions and 40 deletions

View File

@ -52,7 +52,7 @@ echo '
</div> </div>
</div> </div>
<div class="card-body">
<div class="card-body"> <div class="card-body">
<!-- RIGA 1 --> <!-- RIGA 1 -->
<div class="row"> <div class="row">
@ -71,17 +71,15 @@ echo '
<div class="col-md-3">'; <div class="col-md-3">';
if ($record['idagente'] != 0) { if ($record['idagente'] != 0) {
echo Modules::link('Anagrafiche', $record['idagente'], null, null, 'class="pull-right"'); echo Modules::link('Anagrafiche', $record['idagente'], null, null, 'class="pull-right"');
} }
echo '
{[ "type": "select", "label": "' . tr('Agente') . '", "name": "idagente", "ajax-source": "agenti", "select-options": {"idanagrafica": ' . $record['idanagrafica'] . '}, "value": "$idagente$" ]}
</div>
</div>
</div>
</div>';
?> ?>
{[ "type": "select", "label": "<?php echo tr('Agente'); ?>", "name": "idagente", "ajax-source": "agenti", "select-options": {"idanagrafica": <?php echo $record['idanagrafica']; ?>}, "value": "$idagente$" ]}
</div>
</div>
</div>
</div>
</div>
<div class="card card-primary"> <div class="card card-primary">
<div class="card-header"> <div class="card-header">
<h3 class="card-title"><?php echo tr('Intestazione'); ?></h3> <h3 class="card-title"><?php echo tr('Intestazione'); ?></h3>

View File

@ -57,7 +57,7 @@ if (count($preventivo->revisioni) > 1) {
</div> </div>
</div> </div>
<div class="card-body">
<div class="card-body"> <div class="card-body">
<!-- RIGA 1 --> <!-- RIGA 1 -->
<div class="row"> <div class="row">
@ -71,7 +71,7 @@ if (count($preventivo->revisioni) > 1) {
</div>'; </div>';
if (!empty($record['idreferente'])) { if (!empty($record['idreferente'])) {
echo Plugins::link('Referenti', $record['idanagrafica'], null, null, 'class="pull-right"'); echo Plugins::link('Referenti', $record['idanagrafica'], null, null, 'class="pull-right"');
} }
echo ' echo '
<div class="col-md-3"> <div class="col-md-3">
@ -80,14 +80,13 @@ echo '
<div class="col-md-3">'; <div class="col-md-3">';
if ($record['idagente'] != 0) { if ($record['idagente'] != 0) {
echo Modules::link('Anagrafiche', $record['idagente'], null, null, 'class="pull-right"'); echo Modules::link('Anagrafiche', $record['idagente'], null, null, 'class="pull-right"');
} }
echo ' echo '
{[ "type": "select", "label": "'.tr('Agente').'", "name": "idagente", "ajax-source": "agenti", "select-options": {"idanagrafica": '.$record['idanagrafica'].'}, "value": "$idagente$" ]} {[ "type": "select", "label": "'.tr('Agente').'", "name": "idagente", "ajax-source": "agenti", "select-options": {"idanagrafica": '.$record['idanagrafica'].'}, "value": "$idagente$" ]}
</div> </div>
</div> </div>
</div> </div>
</div>
</div>'; </div>';
?> ?>