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">
|
2021-11-08 22:28:40 +00:00
|
|
|
{% if current_user.is_authenticated %}
|
2021-11-10 21:00:18 +00:00
|
|
|
<div class=deletebutton onclick="DeleteService(this)">
|
2021-11-08 22:28:40 +00:00
|
|
|
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 %}
|
2021-11-10 21:00:18 +00:00
|
|
|
<div class="resultitem" style="background-color: lightblue" data="{{value[0]}}">
|
2021-11-08 22:28:40 +00:00
|
|
|
{% if current_user.is_authenticated %}
|
2021-11-10 21:00:18 +00:00
|
|
|
<div class=deletebutton onclick="DeleteService(this)">
|
2021-11-08 22:28:40 +00:00
|
|
|
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 %}
|