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:
Chris Hill-Scott
2020-03-24 17:56:11 +00:00
parent 30a3418473
commit 697803a10c
6 changed files with 136 additions and 35 deletions
+6 -2
View File
@@ -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):