diff --git a/src/pretix/control/templates/pretixcontrol/items/questions.html b/src/pretix/control/templates/pretixcontrol/items/questions.html index 8dd8e59ad5..ce817465fb 100644 --- a/src/pretix/control/templates/pretixcontrol/items/questions.html +++ b/src/pretix/control/templates/pretixcontrol/items/questions.html @@ -10,17 +10,27 @@ {% endblocktrans %}
{% csrf_token %} - {% if 'event.items:write' in request.eventpermset %} -- {% trans "Create a new per-ticket question" %} - - {% trans "Create a new order-level question" %} - -
- {% endif %} -{% trans "These questions are asked for every ticket, so possibly multiple times in the same order." %}
+ {% if request.event.settings.feature_flag_order_level_questions %} + {% if 'event.items:write' in request.eventpermset %} ++ {% trans "Create a new per-ticket question" %} + + {% trans "Create a new order-level question" %} + +
+ {% endif %} + +{% trans "These questions are asked for every ticket, so possibly multiple times in the same order." %}
+ {% else %} + {% if 'event.items:write' in request.eventpermset %} ++ {% trans "Create a new question" %} + +
+ {% endif %} + {% endif %}{% trans "These questions are asked once per order." %}
-| {% trans "Question" %} | -{% trans "Type" %} | -- | - | - {% if 'event.items:write' in request.eventpermset %} - | - {% endif %} - | - |
|---|---|---|---|---|---|---|
|
-
- {% if q.pk %}
-
- {% endif %}
- {{ q.question }}
- {% if q.pk %}
-
- {% endif %}
- - {{ q.identifier }} - |
- - {% if q.pk %} - {{ q.get_type_display }} - {% else %} - {% trans "System question" %} - {% endif %} - | -- {% if q.required %} - - {% endif %} - | -- {% if q.pk and q.ask_during_checkin %} - - {% endif %} - - | -- {% if q.pk and q.hidden %} - - {% endif %} - | + {% if request.event.settings.feature_flag_order_level_questions %} +||
|
+
+ {% if q.pk %}
+
+ {% endif %}
+ {{ q.question }}
+ {% if q.pk %}
+
+ {% endif %}
+ + {{ q.identifier }} + |
+ + {% if q.pk %} + {{ q.get_type_display }} + {% else %} + {% trans "System question" %} + {% endif %} + | ++ {% if q.required %} + + {% endif %} + | ++ {% if q.pk and q.ask_during_checkin %} + + {% endif %} + + | ++ {% if q.pk and q.hidden %} + + {% endif %} + | + {% if 'event.items:write' in request.eventpermset %} ++ | + {% endif %} ++ {% if q.pk %} + + {% if 'event.items:write' in request.eventpermset %} + + + {% endif %} + {% else %} + {% if 'event.settings.general:write' in request.eventpermset %} + + {% endif %} + {% endif %} + | +