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

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