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-12 22:18:31 +02:00
|
|
|
<form action="#" id="poll">
|
|
|
|
<?php foreach ($poll->options as $option): ?>
|
|
|
|
<div class="option">
|
|
|
|
<input type="radio" name="options" value="<?= $option->id ?>" id="option-<?= $option->id ?>" />
|
|
|
|
<label for="option-<?= $option->id ?>" class="check"></label>
|
|
|
|
<label for="option-<?= $option->id ?>"><?= $option->label ?></label>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<input type="submit" value="Vote" />
|
|
|
|
</form>
|
|
|
|
<a class="button margin">Jump to results</a>
|
2018-08-12 14:30:38 +02:00
|
|
|
</main>
|