25 lines
854 B
HTML
25 lines
854 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block head_extra %}
|
|
<title>{{ scale.title }}</title>
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<h1>{{ scale.title }}</h1>
|
|
<div>
|
|
{{ scale.instructions|safe }}
|
|
</div>
|
|
<form class="scale" action="/scales/{{ scale_id }}" method="post">
|
|
{% for id, question in scale.questions.items() %}
|
|
<label for="{{ id }}">{{ id }}. {{ question }}</label>
|
|
<div class="scale-button">
|
|
{% for option in range(scale.range[0], scale.range[1]+1) %}
|
|
<input type="radio" id="{{ id }}_{{ option }}" name="{{ id }}" value="{{ option }}" {% if not ( 'optional' in
|
|
question and question.optional) %}required{% endif %}>
|
|
<label for="{{ id }}_{{ option }}">{{ option }}</label>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
<input type="submit" value="提交">
|
|
</form>
|
|
{% endblock %} |