This commit is contained in:
Pek5892 2023-02-10 15:00:55 +01:00
parent 99dce28136
commit 8b17b2215a
1 changed files with 15 additions and 8 deletions

View File

@ -126,11 +126,15 @@ ORDER BY `data`');
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">'.tr('Rata _NUMBER_', [
'_NUMBER_' => $numero_rata,
]).'</h3>
'_NUMBER_' => $numero_rata,
]).'</h3>';
if (empty($elementi)) {
echo '
<button type="button" class="btn btn-danger pull-right" onclick="rimuoviRata(' . $result['id'] . ')">
<i class="fa fa-trash"></i> ' . tr('Elimina') . '
</button>
</button>';
}
echo '
</div>
<div class="box-body">
<input type="hidden" value="'.$result['id'].'" name="id['.$numero_rata.']">
@ -162,6 +166,8 @@ ORDER BY `data`');
</div>';
++$numero_rata;
}
if (empty($elementi)) {
?>
</div>
@ -223,11 +229,12 @@ echo '
</div>
</form>';
if (!empty($elementi)) {
echo '
} else {
echo'
</div>
</div>
</div>
</form>
<div class="box box-warning collapsable collapsed-box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-warning"></i> '.tr('Documenti collegati: _NUM_', [