forked from Ruderverein-Donau-Linz/rowt
fix divider visual bug between events and trips
This commit is contained in:
parent
62617b4b42
commit
1e29fab4d1
@ -28,9 +28,11 @@
|
|||||||
<small class="inline-block ml-1 text-xs text-gray-400">{{ day.day | date(format="%A", locale="de_AT") }}</small>
|
<small class="inline-block ml-1 text-xs text-gray-400">{{ day.day | date(format="%A", locale="de_AT") }}</small>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{% if day.planned_events | length > 0 or day.trips | length > 0 %}
|
||||||
|
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
|
||||||
|
|
||||||
{# --- START Events --- #}
|
{# --- START Events --- #}
|
||||||
{% if day.planned_events | length > 0 %}
|
{% if day.planned_events | length > 0 %}
|
||||||
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
|
|
||||||
{% for planned_event in day.planned_events %}
|
{% for planned_event in day.planned_events %}
|
||||||
{% set amount_cur_cox = planned_event.cox | length %}
|
{% set amount_cur_cox = planned_event.cox | length %}
|
||||||
{% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %}
|
{% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %}
|
||||||
@ -128,13 +130,11 @@
|
|||||||
{# --- END Sidebar Content --- #}
|
{# --- END Sidebar Content --- #}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# --- END Events --- #}
|
{# --- END Events --- #}
|
||||||
|
|
||||||
{# --- START Trips --- #}
|
{# --- START Trips --- #}
|
||||||
{% if day.trips | length > 0 %}
|
{% if day.trips | length > 0 %}
|
||||||
<div class="grid grid-cols-1 gap-3 divide-y mb-3">
|
|
||||||
{% for trip in day.trips %}
|
{% for trip in day.trips %}
|
||||||
<div class="pt-2 reset-js" data-coxneeded="false">
|
<div class="pt-2 reset-js" data-coxneeded="false">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
@ -197,10 +197,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{# --- END Sidebar Content --- #}
|
{# --- END Sidebar Content --- #}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# --- END Trips --- #}
|
{# --- END Trips --- #}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{# --- START Add Buttons --- #}
|
{# --- START Add Buttons --- #}
|
||||||
{% if loggedin_user.is_admin or loggedin_user.is_cox %}
|
{% if loggedin_user.is_admin or loggedin_user.is_cox %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user