participer.thsf.net/templates/turn_by_id.html

32 lines
1.5 KiB
HTML
Raw Normal View History

2018-03-01 00:30:31 +11:00
{% extends "index.html" %}
{% block title %}Mise à jour du tour de staff{% endblock %}
{% block main %}
<article>
<h3>Tour de staff:</h3>
2018-03-06 08:12:02 +11:00
<form method='POST' action="/turn/update/{{ turn.id }}">
2018-03-01 00:30:31 +11:00
<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 = '' %}
2018-03-06 08:12:02 +11:00
{% if turn.day == day[0] %}
2018-03-01 00:30:31 +11:00
{% set selected="selected" %}
{% endif %}
2018-03-06 08:12:02 +11:00
<option {{ selected }} value='{{ day[1] }}'>{{ day[0] }}</option>
2018-03-01 00:30:31 +11:00
{% 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/>
2018-03-06 08:12:02 +11:00
<label>Nombre de slots (max. 4) </label><input id='num_slot' name='num_slot' type='number' min='1' max='4' value='{{ turn.num_slot }}'/><br/>
2018-03-01 00:30:31 +11:00
<input type='submit' value='Enregistrer' onclick='javascript:return save_turn();'/>
</form>
</article>
{% endblock %}