+
@@ -3991,6 +3996,9 @@ const TicketDetailView = {
if (document.getElementById('note-time-units')) {
document.getElementById('note-time-units').value = noteDraft.time_unit || '';
}
+ if (document.getElementById('note-time-units-bottom')) {
+ document.getElementById('note-time-units-bottom').value = noteDraft.time_unit || '';
+ }
if (document.getElementById('note-ticket-state') && noteDraft.ticket_state_id) {
document.getElementById('note-ticket-state').value = noteDraft.ticket_state_id;
}
@@ -4024,6 +4032,7 @@ const TicketDetailView = {
const customerIdInput = document.getElementById('qe-customer-id');
const noteSubjectInput = document.getElementById('note-subject');
const noteTimeUnitsInput = document.getElementById('note-time-units');
+ const noteTimeUnitsBottomInput = document.getElementById('note-time-units-bottom');
const noteCreateTimeInput = document.getElementById('note-create-time');
const checkChanges = () => {
@@ -4047,7 +4056,8 @@ const TicketDetailView = {
const noteBodyText = (this.noteQuill ? this.noteQuill.root.innerText : '').trim();
if (noteBodyText.length > 0) hasChanges = true;
- const noteTimeUnitsVal = parseFloat(noteTimeUnitsInput ? noteTimeUnitsInput.value : '0') || 0;
+ const timeValStr = (noteTimeUnitsInput ? noteTimeUnitsInput.value : '') || (noteTimeUnitsBottomInput ? noteTimeUnitsBottomInput.value : '');
+ const noteTimeUnitsVal = parseFloat(timeValStr || '0') || 0;
if (noteTimeUnitsVal > 0) hasChanges = true;
if (noteCreateTimeInput && noteCreateTimeInput.value) hasChanges = true;
@@ -4065,7 +4075,20 @@ const TicketDetailView = {
noteSubjectInput.addEventListener('input', checkChanges);
}
if (noteTimeUnitsInput) {
- noteTimeUnitsInput.addEventListener('input', checkChanges);
+ noteTimeUnitsInput.addEventListener('input', () => {
+ if (noteTimeUnitsBottomInput && noteTimeUnitsBottomInput.value !== noteTimeUnitsInput.value) {
+ noteTimeUnitsBottomInput.value = noteTimeUnitsInput.value;
+ }
+ checkChanges();
+ });
+ }
+ if (noteTimeUnitsBottomInput) {
+ noteTimeUnitsBottomInput.addEventListener('input', () => {
+ if (noteTimeUnitsInput && noteTimeUnitsInput.value !== noteTimeUnitsBottomInput.value) {
+ noteTimeUnitsInput.value = noteTimeUnitsBottomInput.value;
+ }
+ checkChanges();
+ });
}
if (noteCreateTimeInput) {
noteCreateTimeInput.addEventListener('change', checkChanges);
@@ -4093,6 +4116,7 @@ const TicketDetailView = {
if (noteSubjectInput) noteSubjectInput.value = '';
if (this.noteQuill) this.noteQuill.root.innerHTML = '';
if (noteTimeUnitsInput) noteTimeUnitsInput.value = '';
+ if (noteTimeUnitsBottomInput) noteTimeUnitsBottomInput.value = '';
if (noteCreateTimeInput) noteCreateTimeInput.value = '';
this.noteAttachments = [];
this.updateNoteAttachmentList();
diff --git a/public/js/views/ticketList.js b/public/js/views/ticketList.js
index 488f947..631cf6c 100644
--- a/public/js/views/ticketList.js
+++ b/public/js/views/ticketList.js
@@ -250,53 +250,81 @@ const TicketListView = {
container.innerHTML = `
-
-
- 0 selezionati
-
-
-
-
- Stato
-
-
-
-
- Owner
-
-
-
- Responsabile
-
-
- ${(App.lookups.types || []).length > 0 ? `
+
+
+
+
+
0 selezionati
- Tipo
-
- ` : ''}
-
-
-
-
-
+
+
+ Owner
+
+
+ ${(App.lookups.users || []).map(u => ``).join('')}
+
+
+
+ Responsabile
+
+
+ ${(App.lookups.users || []).map(u => ``).join('')}
+
+
+ ${(App.lookups.types || []).length > 0 ? `
+
+ Tipo
+
+
+ ${App.lookups.types.map(t => ``).join('')}
+
+
+ ` : ''}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
${Filters.renderBar(App.lookups)}