35 lines
1.9 KiB
HTML
35 lines
1.9 KiB
HTML
{% extends "index.html" %}
|
|
{% block title %}Liste des tours de staff{% endblock %}
|
|
{% block main %}
|
|
{{ A }}
|
|
<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>
|
|
<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>
|
|
</div>
|
|
{% set row_class = cycler('odd', 'even') %}
|
|
{% for day in turns %}
|
|
{% for turn in day[1] %}
|
|
<div class='table_row {{ row_class.next() }}'>
|
|
<div class='border_right' style='width: 40px;'>{{ turn[0].id }}</div>
|
|
<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>
|
|
<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>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</article>
|
|
{% endblock %}
|