orgodostihy/templates/form.html

77 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2019-10-11 18:16:25 +02:00
<html>
<head>
2019-10-11 19:18:34 +02:00
<link rel="stylesheet" href="/static/style.css">
<title>Úprava zdraví pacientů</title>
2019-10-11 18:16:25 +02:00
</head>
<body>
<h1>Zadávání pořadí - {{round}}</h1>
<form method="post" action="">
2019-10-14 11:49:43 +02:00
{% if errors %}
2019-10-11 18:16:25 +02:00
<h2> Problémy </h2>
<ul>
{% for e in errors %}
<li>{{e}}</li>
{% endfor %}
</ul>
2019-10-14 11:49:43 +02:00
{% endif %}
{% if success %}
<p class="success">Pořadí úspěšně zadáno</p>
{% endif %}
2019-10-11 19:18:34 +02:00
<div class="teams">
2019-10-11 18:16:25 +02:00
{% for team in teams %}
2019-10-11 19:18:34 +02:00
<div class="team">
<h2>Tým {{team.name}}</h2>
<div class="persons">
<div class="per1">
<h3>Člověk 1:</h3>
<ul>
{% for c in people %}
<li>
<input type="radio" name="clovek1_{{team.id}}" id="clovek1_{{team.id}}_{{c.id}}" value="{{c.id}}">
<label for="clovek1_{{team.id}}_{{c.id}}">{{c.value}}</label>
</li>
{% endfor %}
</ul>
<h4>Pořadí</h4>
<ul>
{% for p in order %}
<li>
<input type="radio" name="poradi1_{{team.id}}" id="p1_{{team.id}}_{{p.id}}" value="{{p.id}}">
<label for="p1_{{team.id}}_{{p.id}}">{{p.value}}</label>
</li>
{% endfor %}
</ul>
</div>
<div class="per2">
<h3>Člověk 2:</h3>
<ul>
{% for c in people %}
<li>
<input type="radio" name="clovek2_{{team.id}}" id="clovek2_{{team.id}}_{{c.id}}" value="{{c.id}}">
<label for="clovek2_{{team.id}}_{{c.id}}">{{c.value}}</label>
</li>
{% endfor %}
</ul>
<h4>Pořadí</h4>
<ul>
{% for p in order %}
<li>
<input type="radio" name="poradi2_{{team.id}}" id="p2_{{team.id}}_{{p.id}}" value="{{p.id}}">
<label for="p2_{{team.id}}_{{p.id}}">{{p.value}}</label>
</li>
{% endfor %}
</ul>
</div>
</div>
{% if team.emerg_remain > 0 %}
<input type="checkbox" name="zachranka_{{team.id}}" id="zach_{{team.id}}" value="true">
<label for="zach_{{team.id}}">Záchranka</label>
{% endif %}
</div>
2019-10-11 18:16:25 +02:00
{% endfor %}
2019-10-11 19:18:34 +02:00
</div>
2019-10-11 18:16:25 +02:00
<input type="submit" value="Odeslat">
</form>
</body>