Cleaned up HTML output

This commit is contained in:
root 2023-06-02 18:48:35 +02:00
parent b1bb6d0f73
commit 289076ee4c
1 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@
<body> <body>
<div id="content"> <div id="content">
<div id="header">{{ title }}</div> <div id="header">{{ title }}</div>
{% set id = namespace(value=0) %} {%- set id = namespace(value=0) %}
{% for question in content %} {%- for question in content %}
{% set id.value = id.value + 1 %} {%- set id.value = id.value + 1 %}
<div class="ab"> <div class="ab">
<input type="radio" id="a{{ id.value }}" class="a" name="group-{{ id.value }}"> <input type="radio" id="a{{ id.value }}" class="a" name="group-{{ id.value }}">
<label for="a{{ id.value }}" class="a"> A) {{ question['A'] }}</label> <label for="a{{ id.value }}" class="a"> A) {{ question['A'] }}</label>
@ -26,7 +26,7 @@
<input type="radio" id="b{{ id.value }}" class="b" name="group-{{ id.value }}"> <input type="radio" id="b{{ id.value }}" class="b" name="group-{{ id.value }}">
<label for="b{{ id.value }}" class="b">B) {{ question['B'] }}</label> <label for="b{{ id.value }}" class="b">B) {{ question['B'] }}</label>
</div> </div>
{% endfor %} {%- endfor %}
<div id="footer"> <div id="footer">
<div id="questions">Es gibt derzeit {{ num_lines }} Fragen.</div> <div id="questions">Es gibt derzeit {{ num_lines }} Fragen.</div>
<div class="separator">&nbsp;</div> <div class="separator">&nbsp;</div>