added alert flag and variation flag
This commit is contained in:
@@ -147,8 +147,20 @@
|
||||
<textarea class="form-control" id="dlNotes" name="notes" rows="3" placeholder="es. Scadenza 09/06/2026, Attività in appalto a Ditta specializzata..."></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="dlVariazioni" class="form-label fw-semibold">In caso di variazioni</label>
|
||||
<textarea class="form-control" id="dlVariazioni" name="variazioni" rows="3" placeholder="es. In caso di variazioni normative, aggiornare la procedura..."></textarea>
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="dlVariazioni" name="variazioni" value="1">
|
||||
<label class="form-check-label fw-semibold" for="dlVariazioni">
|
||||
In caso di variazioni
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="dlAttivaAlert" name="attiva_alert" value="1">
|
||||
<label class="form-check-label fw-semibold" for="dlAttivaAlert">
|
||||
<i class="fa-solid fa-bell me-1 text-warning"></i> Attiva alert
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user