31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
{% extends "index.html" %}
|
|
{% block title %}Mise à jour du tour de staff{% endblock %}
|
|
{% block main %}
|
|
<article>
|
|
<h3>Tour de staff:</h3>
|
|
<form method='POST' action='/turn/update/{{ turn.id }}'>
|
|
<label>Role: </label><select id='role_id' name='role_id'>
|
|
{% for role in roles %}
|
|
{% set selected = '' %}
|
|
{% if role.id == turn.role_id %}
|
|
{% set selected="selected" %}
|
|
{% endif %}
|
|
<option {{ selected }} value='{{ role.id }}'>{{ role.role }}</option>
|
|
{% endfor %}
|
|
</select><br/>
|
|
<label>Jour de la semaine: </label><select id='day' name='day'>
|
|
{% for day in days %}
|
|
{% set selected = '' %}
|
|
{% if turn.wday == day %}
|
|
{% set selected="selected" %}
|
|
{% endif %}
|
|
<option {{ selected }} value='{{ day }}'>{{ day }}</option>
|
|
{% endfor %}
|
|
</select><br/>
|
|
<label>Début (HH:MM:SS) </label><input id='start' name='start' type='text' maxlength=8 value='{{ turn.start_time }}'/><br/>
|
|
<label>Fin: (HH:MM:SS) </label><input id='end' name='end' type='text' maxlength=8 value='{{ turn.end_time }}'/><br/>
|
|
<input type='submit' value='Enregistrer' onclick='javascript:return save_turn();'/>
|
|
</form>
|
|
</article>
|
|
{% endblock %}
|