multiple choice design update

This commit is contained in:
Daniel 2014-04-18 22:20:15 +02:00
commit 4ab40a5a19
2 changed files with 9 additions and 5 deletions

View file

@ -1,10 +1,10 @@
<form method="post">
<fieldset>
<legend><?=sprintf(_('Question %d of %d'), $pos, $count)?></legend>
<p><?=\hhu\z\Utils::t($question['question'])?></p>
<ol>
<legend><?=sprintf(_('Question %d of %d'), $pos, $count)?>:</legend>
<p class="fwb"><?=\hhu\z\Utils::t($question['question'])?></p>
<ol class="mchoice">
<?php foreach($question['answers'] as $i => &$answer) : ?>
<li>
<li class="cf">
<input type="checkbox" id="answers[<?=$i?>]" name="answers[<?=$i?>]" value="true" <?=(array_key_exists('useranswer', $answer) && $answer['useranswer']) ? 'checked="checked"' : '' ?> />
<label for="answers[<?=$i?>]"><?=$t->t($answer['answer'])?></label>
</li>