inline HTML, result viewer
This commit is contained in:
@@ -1,9 +1,35 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
<h1>aBot!</h1>
|
||||
|
||||
<div class=thankyou>
|
||||
Thank you for the vote!
|
||||
</div>
|
||||
{% if summary %}
|
||||
<h3>Current report</h3>
|
||||
|
||||
{{ summary|safe }}
|
||||
<div id="questions">
|
||||
{% for question in questions %}
|
||||
|
||||
<div class = "question autoformat">
|
||||
<h2>{{ question|safe }}</h2>
|
||||
<ul>
|
||||
{% for choice in answers[question].answers %}
|
||||
{% if answers[question].answer_type == "single" %}
|
||||
<li class = "summary_single">{{ choice }}: {{ answers[question].answers[choice] }}
|
||||
{% endif %}
|
||||
{% if answers[question].answer_type == "multiple" %}
|
||||
<li class = "summary_multiple">{{ choice }}: {{ answers[question].answers[choice] }}
|
||||
{% endif %}
|
||||
{% if answers[question].answer_type == "open" %}
|
||||
<li class = "summary_open">"{{ choice }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user