support for delayed opening. css changes
This commit is contained in:
@@ -1,21 +1,33 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
{% if not form.can_submit %}
|
||||
<div class=message>{{ form.message }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if valid_for != 'Never' %}
|
||||
<div id="vote_header">Voting ends at: {{ valid_for }}</div>
|
||||
{% endif %}
|
||||
<form id="vote_form" action="{{ url_for('save_vote') }}" method=post >
|
||||
<input type=hidden value="{{ key|safe }}" name=key />
|
||||
<input type=hidden value="{{ token|safe }}" name=token />
|
||||
|
||||
{% include "questions.html" %}
|
||||
<p>
|
||||
<input type=submit name=submit value="Submit"/><br>
|
||||
{% if form.vote_style == 'closed' %}
|
||||
<div class = "warning">
|
||||
You can only vote once!
|
||||
<ul>
|
||||
<li>Votes can not be edited later</li>
|
||||
<li>Empty choices counts as empty, used vote</li>
|
||||
</ul>
|
||||
</div>
|
||||
{% if form.can_submit %}
|
||||
<div class=submit>
|
||||
<input type=submit name=submit value="Submit"/>
|
||||
</div>
|
||||
{% if form.vote_style == 'closed' %}
|
||||
<div class = "warning">
|
||||
You can only vote once!
|
||||
<ul>
|
||||
<li>Votes can not be edited later</li>
|
||||
<li>Empty choices counts as empty, used vote</li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class=message>{{ form.message }}</div>
|
||||
{% endif %}
|
||||
</p>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user