{% extends "layout.html" %}
{% block head %}
	{{ super() }}
	<title>{{ site_name }} - Poll #{{ poll_id }}</title>
	<script src="/static/addInput.js"></script>
{% endblock %}
{% block body %}
<body>
    <div id="container">
		<h1>{{ title }}</h1>
		<form action="/vote" method="post" id="vform">
			<input type="hidden" name="poll_id" value="{{ poll_id }}"/>
			{% for k, v in questions.items() %}
			<input type="radio" name="question" value="{{ k }}" required/>
			<label>{{ v }}</label>
			<br/>
			{% endfor %}
			<input type="submit" value="Submit (or die)"/>
		</form>
		<form action="/{{ poll_id }}/r" method="get">
			<input type="submit" value="Results"/>
		</form>
    </div>
</body>
{% endblock %}
