abgame/templates/index.html

34 lines
1.4 KiB
HTML
Raw Normal View History

2023-06-04 11:53:32 +02:00
{% extends 'base.html' %}
2023-06-03 16:19:39 +02:00
2023-06-04 11:53:32 +02:00
{% block main %}
2023-06-03 16:19:39 +02:00
{%- set id = namespace(value=0) %}
{%- for question in content %}
{%- set id.value = id.value + 1 %}
<div class="ab">
<input type="radio" id="a{{ id.value }}" class="a" name="group-{{ id.value }}">
2023-06-05 17:05:27 +02:00
<label for="a{{ id.value }}" class="a slide{{ id.value }}" title="{{ question['A'] }}"> A)&nbsp;{{ question['A'] }}</label>
2023-06-03 16:19:39 +02:00
<div class="separator">{{ separator }}</div>
<input type="radio" id="b{{ id.value }}" class="b" name="group-{{ id.value }}">
2023-06-05 17:05:27 +02:00
<label for="b{{ id.value }}" class="b slide{{ id.value }}" title="{{ question['B'] }}">B)&nbsp;{{ question['B'] }}</label>
2023-06-02 10:11:06 +02:00
</div>
2023-06-03 16:19:39 +02:00
<hr>
{%- endfor %}
<div id="footer">
2023-06-04 11:53:32 +02:00
<div id="questions">
2023-06-06 10:42:00 +02:00
{{ i18n.questions_prefix }} {{ num_lines }} {{ i18n.questions_suffix }}
2023-06-04 11:53:32 +02:00
<br>
2023-06-06 10:42:00 +02:00
<a href="mailto:{{ config.mailto }}">{{ i18n.mailtext }}</a> -
<a href="#">{{ i18n.helptext }}
2023-06-05 10:32:01 +02:00
<div id="help">
2023-06-06 10:42:00 +02:00
{{ i18n.help|safe }}
2023-06-05 10:32:01 +02:00
</div>
</a>
2023-06-04 01:19:02 +02:00
</div>
2023-06-04 12:18:28 +02:00
{% include 'toggle.html' %}
2023-06-03 16:19:39 +02:00
<form action="/" method="get">
<input type="hidden" name="t" value="{{ epoch }}">
2023-06-06 10:42:00 +02:00
<button id="next" type="submit">{{ i18n.more }}</button>
2023-06-03 16:19:39 +02:00
</form>
</div>
2023-06-04 11:53:32 +02:00
{% endblock %}