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 "Per-ticket questions" %}

-

{% 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 "Per-ticket questions" %}

+

{% 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 %}
@@ -112,82 +122,90 @@
-

{% trans "Per-order questions" %}

-

{% trans "These questions are asked once per order." %}

-
- - - - - - - - - {% if 'event.items:write' in request.eventpermset %} - - {% endif %} - - - - - {% for q in questions %}{% if q.container_type == "O" %} - - - - - - + {% if request.event.settings.feature_flag_order_level_questions %} +

+ {% trans "Per-order questions" %} + + + {% trans "Experimental feature" %} + +

+

{% trans "These questions are asked once per order." %}

+
+
{% trans "Question" %}{% trans "Type" %}
- - {% 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 %} - + - {% endif %}{% endfor %} - -
{% trans "Question" %}{% trans "Type" %} - - {% if q.pk %} - - {% if 'event.items:write' in request.eventpermset %} - - - {% endif %} - {% else %} - {% if 'event.settings.general:write' in request.eventpermset %} - - {% endif %} - {% endif %} -
-
+ + + {% for q in questions %}{% if q.container_type == "O" %} + + + + {% 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 %} + + + {% endif %}{% endfor %} + + + + {% endif %} {% endblock %}