inline HTML, result viewer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
{{ message }}
|
||||
<div class=message>{{ message }}</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -9,17 +9,19 @@
|
||||
|
||||
|
||||
<div class=page>
|
||||
<div class=header>
|
||||
Read more about me at the <a href="#bottom">bottom!</a>
|
||||
</div>
|
||||
<div class=header>
|
||||
<a href="#bottom">About</a>
|
||||
</div>
|
||||
{% block body %}{% endblock %}
|
||||
<hr>
|
||||
</div>
|
||||
<div class=page>
|
||||
<div class=footer>
|
||||
About aBot
|
||||
<ul>
|
||||
<li>This voting machine does not store information about you.</li>
|
||||
<li>The token given to you is stored separately to the answers you give.</li>
|
||||
<li>If you were given the token via email or any other such means, this voting machine does not know the connection between your contact information and the vote token.</li>
|
||||
<li>Source code at <a href="https://bitbucket.org/MoonQ/aBot/">Bitbucket</a></li>
|
||||
<li>This voting machine does not store information about you.</li>
|
||||
<li>The token given to you is stored separately to the answers you give.</li>
|
||||
<li>If you were given the token via email or any other such means, this voting machine does not know the connection between your contact information and the vote token.</li>
|
||||
<li>Source code at <a href="https://bitbucket.org/MoonQ/aBot/">Bitbucket</a></li>
|
||||
</ul>
|
||||
<a id="bottom"></a>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<div id="questions">
|
||||
{% for question in form.questions %}
|
||||
<div class = "question">
|
||||
<h2>{{ question.name|safe }}</h2>
|
||||
|
||||
{% if question.autoformat %}
|
||||
<div class = "question autoformat">
|
||||
<h2>{{ question.name|safe }}</h2>
|
||||
{% else %}
|
||||
<div class = "question">
|
||||
{{ question.name|safe }}
|
||||
{% endif %}
|
||||
{% for choice in question.choices %}
|
||||
<div>
|
||||
<input type="radio" name="QC{{ question.index }}" value="{{ choice|safe }}" />
|
||||
|
||||
@@ -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