added alert flag and variation flag

This commit is contained in:
2026-07-19 15:06:18 +02:00
parent 4e61426be7
commit 58af735082
10 changed files with 180 additions and 27 deletions
@@ -135,6 +135,8 @@
$('#dlEmployees').val(null).trigger('change');
$('#dlFunction').val('').trigger('change');
$('#notify_function').prop('checked', false);
$('#dlVariazioni').prop('checked', false);
$('#dlAttivaAlert').prop('checked', false);
renderAttachments([]);
modal.show();
};
@@ -164,7 +166,8 @@
document.getElementById('dlNotifDays').value = d.notification_days || 7;
document.getElementById('dlStorage').value = d.storage_location || '';
document.getElementById('dlNotes').value = d.notes || '';
document.getElementById('dlVariazioni').value = d.variazioni || '';
$('#dlVariazioni').prop('checked', Number(d.variazioni) === 1);
$('#dlAttivaAlert').prop('checked', Number(d.attiva_alert) === 1);
document.getElementById('dlFiles').value = '';
document.getElementById('modalTitle').textContent = 'Modifica Scadenza';
$('#dlDepartments').val(d.department_names || []).trigger('change');