1
0
mirror of https://git.cant.at/Madeorsk/PollVerlaine synced 2024-11-22 12:54:31 +01:00
PollVerlaine/views/poll.php
Madeorsk 9c4add0217 Poll visualisation.
Finished poll visualisation. TODO: Buttons now need to do things.
2018-08-12 22:18:31 +02:00

14 lines
540 B
PHP

<h1 class="poll"><?= $poll->title ?></h1>
<main>
<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>
</main>