Some template improvements

This commit is contained in:
Skia
2016-09-11 19:00:12 +02:00
parent 7aec32cef0
commit 54444b31ba
6 changed files with 14 additions and 9 deletions

View File

@ -38,8 +38,8 @@
{% if get_subscriber(user).slots.exists() %}
<h5>{% trans %}Slot{% endtrans %}</h5>
<ul>
{% for i in get_subscriber(user).slots.all() %}
<li>{{ i.get_type_display() }} - {{i.machine.launderette }}, {{ i.start_date|localtime|date("l j") }} : {{ i.start_date|localtime|time(DATETIME_FORMAT) }}</li>
{% for i in get_subscriber(user).slots.filter(start_date__gte=timezone.now().replace(tzinfo=None)).all() %}
<li>{{ i.get_type_display() }} - {{i.machine.launderette }}, {{ i.start_date|date("l j") }} : {{ i.start_date|time(DATETIME_FORMAT) }}</li>
{% endfor %}
</ul>
{% endif %}
@ -54,4 +54,4 @@
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
{% endmacro %}