2018-08-12 19:29:13 +02:00
|
|
|
<h1 class="poll"><?= $poll->title ?></h1>
|
2018-08-12 14:30:38 +02:00
|
|
|
<main>
|
2018-08-13 14:51:21 +02:00
|
|
|
<form action="/polls/<?= $poll->id ?>/vote" method="POST" id="poll">
|
|
|
|
<?php foreach ($poll->options as $id => $option): ?>
|
2018-08-12 22:18:31 +02:00
|
|
|
<div class="option">
|
2018-08-16 14:09:37 +02:00
|
|
|
<input type="<?= $poll->settings->multiple_choices ? "checkbox" : "radio" ?>" name="options[]" value="<?= $id ?>" id="option-<?= $id ?>" />
|
2018-08-13 14:51:21 +02:00
|
|
|
<label for="option-<?= $id ?>" class="check"></label>
|
|
|
|
<label for="option-<?= $id ?>"><?= $option->label ?></label>
|
2018-08-12 22:18:31 +02:00
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<input type="submit" value="Vote" />
|
|
|
|
</form>
|
2018-08-13 17:08:09 +02:00
|
|
|
<a class="button margin" href="/polls/<?= $poll->id ?>/results">Jump to results</a>
|
2018-08-12 14:30:38 +02:00
|
|
|
</main>
|