Skip to content

Commit

Permalink
reformat admin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Aug 6, 2024
1 parent 27652bb commit 6d6e1bd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/Templates/translatable/admin/dashboard-admin.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
<p>{% trans %}dashboard-admin.approvedTp{% endtrans %}: {{ troopParticipants.approvedCount }}</p>
<p>{% trans %}dashboard-admin.paidTp{% endtrans %}: {{ troopParticipants.paidCount }}</p>
{% endif %}
<br>
{% if event.eventType.showFoodStats() %}
<h3>{% trans %}dashboard-admin.foodCount{% endtrans %}</h3>
{% for food, count in foodStatistic %}
<p>{{ food|trans }}: <b>{{ count }}</b></p>
{% endfor %}
{% endif %}
</div>
<div>
{% if event.allowIsts %}
Expand All @@ -65,12 +58,23 @@
<p>{% trans %}dashboard-admin.approvedGuest{% endtrans %}: {{ guests.approvedCount }}</p>
<p>{% trans %}dashboard-admin.paidGuest{% endtrans %}: {{ guests.paidCount }}</p>
{% endif %}
<br>
</div>
</div>
<div class="card-divide">
<div>
<h3>{% trans %}dashboard-admin.entryCount{% endtrans %}</h3>
<p>{% trans %}dashboard-admin.entryComing{% endtrans %}: {{ entryStatistic.coming }}</p>
<p>{% trans %}dashboard-admin.entryArrived{% endtrans %}: {{ entryStatistic.arrived }}</p>
<p>{% trans %}dashboard-admin.entryLeave{% endtrans %}: {{ entryStatistic.leave }}</p>
</div>
<div>
{% if event.eventType.showFoodStats() %}
<h3>{% trans %}dashboard-admin.foodCount{% endtrans %}</h3>
{% for food, count in foodStatistic %}
<p>{{ food|trans }}: <b>{{ count }}</b></p>
{% endfor %}
{% endif %}
</div>
</div>
{% if event.eventType.showContingentPatrolStats %}
<h3>{% trans %}dashboard-admin.contingentPatrolStats{% endtrans %}</h3>
Expand Down

0 comments on commit 6d6e1bd

Please sign in to comment.