[WIP] list view

This commit is contained in:
Marie Birner 2023-04-05 22:35:52 +02:00
parent 051d20e627
commit 0e7c03a2b2

View File

@ -2,15 +2,16 @@
{% block content %} {% block content %}
{% if loggedin_user %} <div class="max-w-screen-lg w-full grid gap-4">
{% if loggedin_user %}
Hi {{ loggedin_user.name }}. <a href="/auth/logout">LOGOUT</a> Hi {{ loggedin_user.name }}. <a href="/auth/logout">LOGOUT</a>
{% if loggedin_user.is_admin %} {% if loggedin_user.is_admin %}
<a href="/admin/user">USER</a> <a href="/admin/user">USER</a>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if flash %} {% if flash %}
{% if flash.0 == "success" %} {% if flash.0 == "success" %}
<div class="row"> <div class="row">
<div class="one-column p-1 text-white bg-green mb-3 light text-center"> <div class="one-column p-1 text-white bg-green mb-3 light text-center">
@ -25,11 +26,14 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
<h1>Ausfahrten</h1> <h1 class="text-center text-3xl uppercase tracking-wide font-bold text-primary-900">Ausfahrten</h1>
{% for day in days %}
{% for day in days %}
<div class="bg-white p-3 rounded-md flex items-end md:items-center justify-between">
<h2>{{ day.day }}</h2> <h2>{{ day.day }}</h2>
{% for planned_event in day.planned_events %} {% for planned_event in day.planned_events %}
@ -117,7 +121,8 @@
{% endif %} {% endif %}
<hr/> </div>
{% endfor %} {% endfor %}
</div>
</div>
{% endblock content %} {% endblock content %}