diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 3663ef418..8737816f6 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -184,9 +184,11 @@
{% trans "Order locale" %}
{{ display_locale }} - - - + {% if "can_change_orders" in request.eventpermset %} + + + + {% endif %}
{% if order.status == "n" %}
{% trans "Expiry date" %}
@@ -206,9 +208,11 @@ {{ order.customer.identifier }} – {{ order.customer.email }} {% endif %} - - - + {% if "can_change_orders" in request.eventpermset %} + + + + {% endif %} {% endif %}
{% trans "Contact email" %}
@@ -217,21 +221,23 @@ {% if order.email and order.email_known_to_work %} {% endif %} - - - - {% if order.email %} - - + {% if "can_change_orders" in request.eventpermset %} + + - {% if order.status != "c" %} -
- {% csrf_token %} - -
+ {% if order.email %} + + + + {% if order.status != "c" %} +
+ {% csrf_token %} + +
+ {% endif %} {% endif %} {% endif %} @@ -239,9 +245,11 @@
{% trans "Phone number" %}
{{ order.phone|default_if_none:""|phone_format }} - - - + {% if "can_change_orders" in request.eventpermset %} + + + + {% endif %}
{% endif %} {% if invoices %} @@ -306,7 +314,7 @@ {% trans "Email invoices" %} {% endif %} - {% if can_generate_invoice %} + {% if can_generate_invoice and 'can_change_orders' in request.eventpermset %}
@@ -317,7 +325,7 @@
{% endif %} - {% elif can_generate_invoice %} + {% elif can_generate_invoice and 'can_change_orders' in request.eventpermset %}
{% trans "Invoices" %}
- - - {% trans "Change answers" %} - {% if 'can_change_orders' in request.eventpermset %} + + + {% trans "Change answers" %} + · {% trans "Change products" %} @@ -754,7 +762,7 @@ {% endfor %} - {% if order.payment_refund_sum > 0 %} + {% if order.payment_refund_sum > 0 and "can_change_orders" in request.eventpermset %} {% trans "Create a refund" %} @@ -942,9 +950,11 @@ {% bootstrap_field comment_form.comment show_help=True show_label=False %} {% bootstrap_field comment_form.custom_followup_at %} {% bootstrap_field comment_form.checkin_attention show_help=True show_label=False %} - + {% if "can_change_orders" in request.eventpermset %} + + {% endif %}