Add priority flag to jobs
- Migration 0010: priority BOOLEAN NOT NULL DEFAULT 0 on print_jobs - Priority jobs sort above normal jobs in the list - Checkbox in Add Job modal; warning icon in list; badge on detail page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
<table class="table table-dark table-hover mb-0 align-middle" style="font-size:.875rem">
|
||||
<thead>
|
||||
<tr class="text-secondary small">
|
||||
<th class="fw-normal"></th>
|
||||
<th class="fw-normal">UUID</th>
|
||||
<th class="fw-normal">Customer</th>
|
||||
<th class="fw-normal">File</th>
|
||||
@@ -42,6 +43,9 @@
|
||||
<tbody>
|
||||
{% for j in jobs %}
|
||||
<tr>
|
||||
<td style="width:24px">
|
||||
{% if j.priority %}<i class="bi bi-exclamation-circle-fill text-warning" title="Priority"></i>{% endif %}
|
||||
</td>
|
||||
<td class="font-monospace text-secondary" style="font-size:.75rem">
|
||||
{{ j.job_uuid[:8] if j.job_uuid else '—' }}
|
||||
</td>
|
||||
@@ -157,6 +161,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-check form-switch mb-1">
|
||||
<input class="form-check-input" type="checkbox" name="priority" id="priorityCheck" value="1">
|
||||
<label class="form-check-label text-secondary small" for="priorityCheck">
|
||||
<i class="bi bi-exclamation-circle text-warning me-1"></i>Priority
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label text-secondary small">Amount</label>
|
||||
|
||||
Reference in New Issue
Block a user