2018-02-28 10:25:08 +01:00
{% extends "index.html" %}
{% block title %}Liste des tours de staff{% endblock %}
{% block main %}
2018-03-05 22:12:02 +01:00
{{ A }}
2018-02-28 10:25:08 +01:00
< article >
< h3 > Liste des tours de staff enregistrés < input class = 'add' value = '' title = 'Ajouter un tour de staff' onclick = 'javascript:document.location="/turn/new"' / > < / h3 >
< div class = 'table_header' >
< div class = 'border_right' style = 'width: 40px;' > ID< / div >
2018-03-05 22:12:02 +01:00
< div class = 'border_right' style = 'width: 240px;' > Role< / div >
< div class = 'border_right' style = 'width: 150px;' > Jour< / div >
< div class = 'border_right' style = 'width: 150px;' > Début< / div >
< div class = 'border_right' style = 'width: 150px;' > Fin< / div >
< div class = 'border_right' style = 'width: 100px;' > Slots< / div >
< div style = 'width: 50px;' style = 'width: 50px;' > Action< / div >
2018-02-28 10:25:08 +01:00
< / div >
{% set row_class = cycler('odd', 'even') %}
2018-03-05 22:12:02 +01:00
{% for day in turns %}
{% for turn in day[1] %}
2018-02-28 10:25:08 +01:00
< div class = 'table_row {{ row_class.next() }}' >
< div class = 'border_right' style = 'width: 40px;' > {{ turn[0].id }}< / div >
2018-03-05 22:12:02 +01:00
< div class = 'border_right' style = 'width: 240px;' > {{ turn[1] }}< / div >
< div class = 'border_right' style = 'width: 150px;' > {{ day[0] }}< / div >
< div class = 'border_right' style = 'width: 150px;' > {{ turn[0].start_time }}< / div >
< div class = 'border_right' style = 'width: 150px;' > {{ turn[0].end_time }}< / div >
< div class = 'border_right' style = 'width: 100px;' > {{ turn[0].num_slot }}< / div >
2018-02-28 10:25:08 +01:00
< div style = 'width: 50px;' >
< input class = 'edit' value = '' onclick = 'javascript:document.location="/turn/{{ turn[0].id }}"' title = 'Éditer' / >
< input class = 'trash' value = '' onclick = 'javascript:delete_turn({{ turn[0].id }});' title = 'Supprimer' / >
< / div >
< / div >
2018-03-05 22:12:02 +01:00
{% endfor %}
2018-02-28 10:25:08 +01:00
{% endfor %}
< / article >
{% endblock %}