Project_Fish/templates/results.html

23 lines
872 B
HTML
Raw Permalink Normal View History

2021-11-07 11:56:41 +00:00
{% 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.
2021-11-07 11:56:41 +00:00
</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.
2021-11-07 11:56:41 +00:00
</div>
{% endif %}
{% endfor %}