From add5582f91ac2e49ae22e015e3676ac0ea861cbc Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Tue, 1 Apr 2025 17:09:37 +0200 Subject: [PATCH] use list-group for backend UI --- .../datasync/control_order_info.html | 76 +++++++++---------- 1 file changed, 35 insertions(+), 41 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/datasync/control_order_info.html b/src/pretix/control/templates/pretixcontrol/datasync/control_order_info.html index 7c507878b1..8de925725c 100644 --- a/src/pretix/control/templates/pretixcontrol/datasync/control_order_info.html +++ b/src/pretix/control/templates/pretixcontrol/datasync/control_order_info.html @@ -5,17 +5,27 @@

- {% trans "Data Sync" %} + {% trans "Data transfer to external systems" %}

-
- - - {% for identifier, display_name, pending, objects in providers %} - - - - - - {% for obj in objects %} - - - - - - {% endfor %} - {% endfor %} - -
{{ display_name }} +
    + {% for identifier, display_name, pending, objects in providers %} +
  • +
    + {% csrf_token %} {% if pending %} + {% if pending.not_before %} + + {% endif %} + + {% else %} + + + {% endif %} +
    +

    {{ display_name }}

    + {% if pending %} +

    {% if pending.failed_attempts %} {% blocktrans trimmed with num=pending.failed_attempts max=pending.max_retry_attempts %} @@ -32,41 +42,25 @@ {% else %} {% trans "Pending" %} {% endif %} - (triggered by {{ pending.triggered_by }} at {{ pending.triggered|date:"SHORT_DATETIME_FORMAT" }}) - {% else %} - - - {% endif %} -

-
- {% csrf_token %} - {% if pending %} - {% if pending.not_before %} - - {% endif %} - - {% else %} - - - {% endif %} -
-
+ (triggered by {{ pending.triggered_by }} at {{ pending.triggered|date:"SHORT_DATETIME_FORMAT" }}) +

+ {% endif %} + +
    + {% for obj in objects %} +
  • {% if obj.external_link_html %} {{ obj.external_link_html }} {% else %} - {{ obj.external_object_type }} with {{ obj.external_pk_name }} = {{ obj.external_pk_value }} + {{ obj.external_object_type }} + {% trans "identified by" %} {{ obj.external_pk_name }} + {{ obj.external_pk_value }} {% endif %} -
{{ obj.timestamp }}
-
+   + + {% endfor %} + + + {% endfor %} +