Project_Fish/templates/results.html
2021-11-10 22:00:18 +01:00

23 lines
872 B
HTML

{% for key, value in services.items() %}
{% if(loop.index % 2 == 0) %}
<div class="resultitem" style="background-color: lightcyan">
{% if current_user.is_authenticated %}
<div class=deletebutton onclick="DeleteService(this)">
Verwijderen
</div>
{% endif %}
Dienst op {{value[0].date().strftime("%A")}} on {{value[0].time().hour}}:{{value[0].time().minute}} uur.
</div>
{% else %}
<div class="resultitem" style="background-color: lightblue" data="{{value[0]}}">
{% if current_user.is_authenticated %}
<div class=deletebutton onclick="DeleteService(this)">
Verwijderen
</div>
{% endif %}
Dienst op {{value[0].date().strftime("%A")}} on {{value[0].time().hour}}:{{value[0].time().minute}} uur.
</div>
{% endif %}
{% endfor %}