add more ticket state options

This commit is contained in:
jedi 2024-01-19 21:13:04 +01:00
parent b28bd7b23b
commit 26ce3e23a4
3 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 4.2.7 on 2024-01-19 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tickets', '0006_issuethread_uuid'),
]
operations = [
migrations.AlterField(
model_name='statechange',
name='state',
field=models.CharField(choices=[('pending_new', 'New'), ('pending_open', 'Open'), ('pending_shipping', 'Needs to be shipped'), ('pending_physical_confirmation', 'Needs to be confirmed physically'), ('pending_return', 'Needs to be returned'), ('pending_postponed', 'Postponed'), ('waiting_details', 'Waiting for details'), ('waiting_pre_shipping', 'Waiting for Address/Shipping Info'), ('closed_returned', 'Closed: Returned'), ('closed_shipped', 'Closed: Shipped'), ('closed_not_found', 'Closed: Not found'), ('closed_not_our_problem', 'Closed: Not our problem'), ('closed_duplicate', 'Closed: Duplicate'), ('closed_timeout', 'Closed: Timeout'), ('closed_spam', 'Closed: Spam'), ('closed_nothing_missing', 'Closed: Nothing missing'), ('closed_wtf', 'Closed: WTF'), ('found_open', 'Item Found and stored externally'), ('found_closed', 'Item Found and stored externally and closed')], default='pending_new', max_length=255),
),
]

View file

@ -11,6 +11,7 @@ STATE_CHOICES = (
('pending_shipping', 'Needs to be shipped'),
('pending_physical_confirmation', 'Needs to be confirmed physically'),
('pending_return', 'Needs to be returned'),
('pending_postponed', 'Postponed'),
('waiting_details', 'Waiting for details'),
('waiting_pre_shipping', 'Waiting for Address/Shipping Info'),
('closed_returned', 'Closed: Returned'),
@ -20,6 +21,10 @@ STATE_CHOICES = (
('closed_duplicate', 'Closed: Duplicate'),
('closed_timeout', 'Closed: Timeout'),
('closed_spam', 'Closed: Spam'),
('closed_nothing_missing', 'Closed: Nothing missing'),
('closed_wtf', 'Closed: WTF'),
('found_open', 'Item Found and stored externally'),
('found_closed', 'Item Found and stored externally and closed'),
)

View file

@ -23,7 +23,7 @@
<CollapsableCards v-if="layout === 'tasks'" :items="tickets"
:columns="['id', 'name', 'last_activity', 'assigned_to']"
:keyName="'state'" :sections="['pending_new', 'pending_open','pending_shipping',
'pending_physical_confirmation','pending_return'].map(stateInfo)">
'pending_physical_confirmation','pending_return','pending_postponed'].map(stateInfo)">
<template #section_header="{index, section, count}">
{{ section.text }} <span class="badge badge-light ml-1">{{ count }}</span>
</template>