This commit is contained in:
Pek5892 2023-02-10 14:49:03 +01:00
parent fa660dab71
commit a21a88a063
1 changed files with 7 additions and 14 deletions

View File

@ -127,14 +127,10 @@ 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.']">
@ -166,8 +162,6 @@ ORDER BY `data`');
</div>'; </div>';
++$numero_rata; ++$numero_rata;
} }
if (empty($elementi)) {
?> ?>
</div> </div>
@ -229,12 +223,11 @@ echo '
</div> </div>
</form>'; </form>';
} else {
echo'
</div>
</div> if (!empty($elementi)) {
</div> echo '
</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_', [