support for delayed opening. css changes
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<head>
|
||||
<title>aBot // {{ g.title|safe }}</title>
|
||||
<meta name="viewport" content="width=440" />
|
||||
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}">
|
||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
|
||||
<script src="{{ url_for('static', filename='script.js') }}" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
<div id="preview_header">
|
||||
<div id="preview_header" class=autoformat>
|
||||
Preview for: {{ key|safe }}<br>
|
||||
Expires: {{ valid_for }}<br>
|
||||
Voting ends at: {{ valid_for }}<br>
|
||||
Voting starts at: {{ opens }}<br>
|
||||
Style (open/closed): {{ form.vote_style }}<br>
|
||||
Show results after voting: {{ form.show_results }}<br>
|
||||
Title: {{ form.title }}<br>
|
||||
</div>
|
||||
|
||||
{% include "questions.html" %}
|
||||
|
||||
@@ -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