fix formatting of MulitpleChoice tasks (fixes #137)
This commit is contained in:
parent
16f85f1006
commit
880b91d5e6
4 changed files with 12 additions and 8 deletions
|
@ -5,12 +5,13 @@
|
|||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?=_('Answers')?></legend>
|
||||
<ul id="answers">
|
||||
<ol id="answers">
|
||||
<?php foreach($answers as $answerIndex => &$answer) : ?>
|
||||
<li>
|
||||
<?=_('Answer')?>:<br />
|
||||
<label>
|
||||
<input id="answer-<?=$answerIndex?>-tick" type="checkbox" name="answers[<?=$answerIndex?>][tick]" <?php if(array_key_exists('tick', $answer) && $answer['tick']) : ?>checked="checked"<?php endif ?> />
|
||||
<?=_('correct answer')?>
|
||||
<?=_('correct')?>
|
||||
</label>
|
||||
<textarea id="answer-<?=$answerIndex?>" name="answers[<?=$answerIndex?>][answer]" class="answer">
|
||||
<?=$answer['answer']?>
|
||||
|
@ -22,7 +23,7 @@
|
|||
<li>
|
||||
<button class="add-answer" type="button">+</button>
|
||||
</li>
|
||||
</ul>
|
||||
</ol>
|
||||
</fieldset>
|
||||
<input type="submit" name="save" value="<?=_('save')?>" />
|
||||
</form>
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
<a class="cta orange" href="<?=$linker->link(array('charactergroupsquests','quest',$seminary['url'],$groupsgroup['url'],$quest['url']))?>"><?=_('Back to overview')?></a>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
<div class="text">
|
||||
<div>
|
||||
<?=$t->t($station['task'])?>
|
||||
<?=$task?>
|
||||
</div>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<?php endif ?>
|
||||
|
||||
<?php if($queststatus != 'solved') : ?>
|
||||
<div class="text">
|
||||
<div>
|
||||
<?=$t->t($quest['task'])?>
|
||||
<?=$task?>
|
||||
</div>
|
||||
|
|
|
@ -349,12 +349,15 @@ input[type="submit"][disabled]{text-shadow:1px 2px #d48c4e;background:#f9ac69;bo
|
|||
|
||||
.solvdmsg{margin-top:20px}
|
||||
|
||||
.mchoice{list-style-type:lower-alpha;list-style-position:inside}
|
||||
.mchoice{list-style-type:none}
|
||||
.mchoice li{margin:0 0 10px 0}
|
||||
.mchoice input[type=checkbox]{display:inline-block;margin:-19px 10px 0 24px;vertical-align:top}
|
||||
.mchoice label{width:90%;display:inline-block;margin:-25px 0 0 0;vertical-align:top}
|
||||
.mchoice input[type=checkbox]{display:inline-block;margin:0 10px 0 24px;vertical-align:middle}
|
||||
.mchoice label{width:90%;display:inline-block;margin:0 0 0 0;vertical-align:middle}
|
||||
.mchoice p{padding:0;margin:0}
|
||||
#questions{list-style-type:numeric}
|
||||
#questions > li{margin-left:15px}
|
||||
#answers{list-style-type:numeric}
|
||||
#answers > li{margin-left:15px}
|
||||
|
||||
.submit{padding:15px;background:#eae8e4;border-radius:3px;margin-bottom:15px}
|
||||
.submit p{margin:15px 0 0 0;font-weight:bold}
|
||||
|
|
Loading…
Add table
Reference in a new issue