mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
763 B
25 lines
763 B
from django.db.models import TextChoices
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
TICKET_DETAIL_URL = '/ui/#/tickets/tickets/{id}'
|
|
|
|
|
|
class TicketTypeChoices(TextChoices):
|
|
general = 'general', _("General")
|
|
login_confirm = 'login_confirm', _("Login confirm")
|
|
apply_asset = 'apply_asset', _('Apply for asset')
|
|
apply_application = 'apply_application', _('Apply for application')
|
|
login_asset_confirm = 'login_asset_confirm', _('Login asset confirm')
|
|
|
|
|
|
class TicketActionChoices(TextChoices):
|
|
open = 'open', _('Open')
|
|
approve = 'approve', _('Approve')
|
|
reject = 'reject', _('Reject')
|
|
close = 'close', _('Close')
|
|
|
|
|
|
class TicketStatusChoices(TextChoices):
|
|
open = 'open', _("Open")
|
|
closed = 'closed', _("Closed")
|