From 6d6e1bd44b29775743c835eb8a4086e59c8c919d Mon Sep 17 00:00:00 2001 From: Lung Date: Tue, 6 Aug 2024 22:25:59 +0200 Subject: [PATCH] reformat admin dashboard --- .../translatable/admin/dashboard-admin.twig | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/Templates/translatable/admin/dashboard-admin.twig b/src/Templates/translatable/admin/dashboard-admin.twig index f8536a2..b9e8065 100755 --- a/src/Templates/translatable/admin/dashboard-admin.twig +++ b/src/Templates/translatable/admin/dashboard-admin.twig @@ -38,13 +38,6 @@

{% trans %}dashboard-admin.approvedTp{% endtrans %}: {{ troopParticipants.approvedCount }}

{% trans %}dashboard-admin.paidTp{% endtrans %}: {{ troopParticipants.paidCount }}

{% endif %} -
- {% if event.eventType.showFoodStats() %} -

{% trans %}dashboard-admin.foodCount{% endtrans %}

- {% for food, count in foodStatistic %} -

{{ food|trans }}: {{ count }}

- {% endfor %} - {% endif %}
{% if event.allowIsts %} @@ -65,12 +58,23 @@

{% trans %}dashboard-admin.approvedGuest{% endtrans %}: {{ guests.approvedCount }}

{% trans %}dashboard-admin.paidGuest{% endtrans %}: {{ guests.paidCount }}

{% endif %} -
+
+ +
+

{% trans %}dashboard-admin.entryCount{% endtrans %}

{% trans %}dashboard-admin.entryComing{% endtrans %}: {{ entryStatistic.coming }}

{% trans %}dashboard-admin.entryArrived{% endtrans %}: {{ entryStatistic.arrived }}

{% trans %}dashboard-admin.entryLeave{% endtrans %}: {{ entryStatistic.leave }}

+
+ {% if event.eventType.showFoodStats() %} +

{% trans %}dashboard-admin.foodCount{% endtrans %}

+ {% for food, count in foodStatistic %} +

{{ food|trans }}: {{ count }}

+ {% endfor %} + {% endif %} +
{% if event.eventType.showContingentPatrolStats %}

{% trans %}dashboard-admin.contingentPatrolStats{% endtrans %}