2021-08-17 10:50:15 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
from django.db.models import TextChoices
|
2023-07-24 03:52:25 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2021-08-17 10:50:15 +00:00
|
|
|
|
|
|
|
TICKET_DETAIL_URL = '/ui/#/tickets/tickets/{id}'
|
|
|
|
|
|
|
|
|
|
|
|
class SystemOrOrgRole(TextChoices):
|
|
|
|
SYSTEM_ADMIN = 'system_admin', _('System administrator')
|
|
|
|
SYSTEM_AUDITOR = 'system_auditor', _('System auditor')
|
|
|
|
ORG_ADMIN = 'org_admin', _('Organization administrator')
|
|
|
|
ORG_AUDITOR = 'org_auditor', _("Organization auditor")
|
|
|
|
USER = 'user', _('User')
|
|
|
|
|
|
|
|
|
|
|
|
class PasswordStrategy(TextChoices):
|
|
|
|
email = 'email', _('Reset link will be generated and sent to the user')
|
|
|
|
custom = 'custom', _('Set password')
|
2023-09-11 06:38:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
class RDPResolution(TextChoices):
|
|
|
|
AUTO = 'auto', _('AUTO')
|
|
|
|
RES_1024x768 = '1024x768', '1024x768'
|
|
|
|
RES_1366x768 = '1366x768', '1366x768'
|
|
|
|
RES_1600x900 = '1600x900', '1600x900'
|
|
|
|
RES_1920x1080 = '1920x1080', '1920x1080'
|
|
|
|
|
|
|
|
|
|
|
|
class RDPClientOption(TextChoices):
|
|
|
|
FULL_SCREEN = 'full_screen', _('Full screen')
|
|
|
|
MULTI_SCREEN = 'multi_screen', _('Multi screen')
|
|
|
|
DRIVES_REDIRECT = 'drives_redirect', _('Drives redirect')
|
|
|
|
|
|
|
|
|
2023-11-02 10:51:17 +00:00
|
|
|
class RDPSmartSize(TextChoices):
|
|
|
|
DISABLE = '0', _('Disable')
|
|
|
|
ENABLE = '1', _('Enable')
|
|
|
|
|
|
|
|
|
2023-09-11 06:38:07 +00:00
|
|
|
class KeyboardLayout(TextChoices):
|
|
|
|
EN_US_QWERTY = 'en-us-qwerty', 'US English (Qwerty)'
|
|
|
|
EN_UK_QWERTY = 'en-gb-qwerty', 'UK English (Qwerty)'
|
|
|
|
JA_JP_QWERTY = 'ja-jp-qwerty', 'Japanese (Qwerty)'
|
|
|
|
FR_FR_AZERTY = 'fr-fr-azerty', 'French (Azerty)'
|
|
|
|
FR_CH_QWERTZ = 'fr-ch-qwertz', 'Swiss French (Qwertz)'
|
|
|
|
FR_BE_AZERTY = 'fr-be-azerty', 'Belgian French (Azerty)'
|
|
|
|
TR_TR_QWERTY = 'tr-tr-qwerty', 'Turkish-Q (Qwerty)'
|
|
|
|
|
|
|
|
|
2023-09-12 11:57:03 +00:00
|
|
|
class AppletConnectionMethod(TextChoices):
|
2023-09-11 06:38:07 +00:00
|
|
|
WEB = 'web', _('Web')
|
|
|
|
CLIENT = 'client', _('Client')
|
|
|
|
|
|
|
|
|
|
|
|
class FileNameConflictResolution(TextChoices):
|
|
|
|
REPLACE = 'replace', _('Replace')
|
|
|
|
SUFFIX = 'suffix', _('Suffix')
|