mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Add a ‘general’ ticket type
This is for tickets coming from non-logged-in users. It’s effectively the same as reporting a problem, but doesn’t have the banner about the status page (because we can’t tell if they’re actually reporting a problem now we’re not asking). It also gives a more generic page title.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
from werkzeug.routing import BaseConverter
|
||||
|
||||
from app.models.feedback import PROBLEM_TICKET_TYPE, QUESTION_TICKET_TYPE
|
||||
from app.models.feedback import (
|
||||
GENERAL_TICKET_TYPE,
|
||||
PROBLEM_TICKET_TYPE,
|
||||
QUESTION_TICKET_TYPE,
|
||||
)
|
||||
|
||||
|
||||
class TemplateTypeConverter(BaseConverter):
|
||||
@@ -10,7 +14,7 @@ class TemplateTypeConverter(BaseConverter):
|
||||
|
||||
class TicketTypeConverter(BaseConverter):
|
||||
|
||||
regex = f'(?:{PROBLEM_TICKET_TYPE}|{QUESTION_TICKET_TYPE})'
|
||||
regex = f'(?:{PROBLEM_TICKET_TYPE}|{QUESTION_TICKET_TYPE}|{GENERAL_TICKET_TYPE})'
|
||||
|
||||
|
||||
class LetterFileExtensionConverter(BaseConverter):
|
||||
|
||||
Reference in New Issue
Block a user