diff --git a/templates/projects/board.html b/templates/projects/board.html index dacd7cf..283bd52 100644 --- a/templates/projects/board.html +++ b/templates/projects/board.html @@ -33,6 +33,18 @@ newTicketOpen: false, exportOpen: false, filterOpen: false, + manageStatusesOpen: false, + + createStatusName: '', + createStatusColor: '#6B7280', + createStatusOrder: '0', + createStatusCompleted: false, + + editStatusId: null, + editStatusName: '', + editStatusColor: '', + editStatusOrder: '0', + editStatusCompleted: false, ticketName: '', ticketDescription: '', @@ -187,6 +199,9 @@ touch.clientY >= rect.top && touch.clientY <= rect.bottom) targetColumn = col; col.classList.remove('bg-blue-50', 'dark:bg-blue-900/20'); }); + {% if not can_move_to_completed %} + if (targetColumn && targetColumn.getAttribute('data-status-completed') === 'true') targetColumn = null; + {% endif %} if (targetColumn && targetColumn !== originalColumn) this.moveTicketToStatus(this.draggingTicket, targetColumn.getAttribute('data-status-id')); this.draggingTicket = null; @@ -209,6 +224,9 @@ col.addEventListener('drop', (e) => { e.preventDefault(); col.classList.remove('bg-blue-50', 'dark:bg-blue-900/20'); + {% if not can_move_to_completed %} + if (col.getAttribute('data-status-completed') === 'true') return; + {% endif %} if (this.draggingTicket) { this.moveTicketToStatus(this.draggingTicket, col.getAttribute('data-status-id')); this.draggingTicket = null; @@ -297,6 +315,11 @@ class="space-y-6" + {% if is_admin %} + + {% endif %} @@ -345,6 +368,12 @@ class="space-y-6" View Only ModeYou can view tickets but cannot move them +{% elif not can_move_to_completed %} +
| Name | +Color | +Order | +Completed | +Actions | +
|---|---|---|---|---|
| {{ col.status.name }} | ++ + {{ col.status.color }} + + | +{{ col.status.sort_order }} | ++ {% if col.status.is_completed %} + Yes + {% else %} + No + {% endif %} + | +
+
+
+
+
+
+
+
+
+ |
+
| No statuses found. | ||||