mirror of
https://git.cant.at/Madeorsk/PollVerlaine
synced 2024-11-25 03:54:31 +01:00
14 lines
556 B
PHP
14 lines
556 B
PHP
<h1 class="poll"><?= $poll->title ?></h1>
|
|
<main>
|
|
<form action="/polls/<?= $poll->id ?>/vote" method="POST" id="poll">
|
|
<?php foreach ($poll->options as $id => $option): ?>
|
|
<div class="option">
|
|
<input type="radio" name="options" value="<?= $id ?>" id="option-<?= $id ?>" />
|
|
<label for="option-<?= $id ?>" class="check"></label>
|
|
<label for="option-<?= $id ?>"><?= $option->label ?></label>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<input type="submit" value="Vote" />
|
|
</form>
|
|
<a class="button margin">Jump to results</a>
|
|
</main>
|