30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
{% extends "index.html" %}
|
|
{% block title %}Liste des tours de staff{% endblock %}
|
|
{% block main %}
|
|
<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'>Role</div>
|
|
<div class='border_right'>Jour</div>
|
|
<div class='border_right'>Début</div>
|
|
<div class='border_right'>Fin</div>
|
|
<div style='width: 50px;'>Action</div>
|
|
</div>
|
|
{% set row_class = cycler('odd', 'even') %}
|
|
{% for turn in turns %}
|
|
<div class='table_row {{ row_class.next() }}'>
|
|
<div class='border_right' style='width: 40px;'>{{ turn[0].id }}</div>
|
|
<div class='border_right'>{{ turn[1] }}</div>
|
|
<div class='border_right'>{{ turn[0].wday }}</div>
|
|
<div class='border_right'>{{ turn[0].start_time }}</div>
|
|
<div class='border_right'>{{ turn[0].end_time }}</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 %}
|
|
</article>
|
|
{% endblock %}
|