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">
@ -73,15 +73,13 @@ echo '
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">
@ -87,7 +87,6 @@ echo '
</div> </div>
</div> </div>
</div> </div>
</div>
</div>'; </div>';
?> ?>