#4828 fixed a bunch of html validation errors in test question templates
authorgreg gay <ggay@ocad.ca>
Tue, 23 Aug 2011 19:07:56 +0000 (19:07 -0000)
committergreg gay <ggay@ocad.ca>
Tue, 23 Aug 2011 19:07:56 +0000 (19:07 -0000)
docs/themes/default/test_questions/header.tmpl.php
docs/themes/default/test_questions/multianswer.tmpl.php
docs/themes/default/test_questions/multichoice.tmpl.php

index ea4a6cc..bb2503d 100644 (file)
@@ -12,7 +12,5 @@
        <?php endif; ?>
 
        <h3 style="color: black"><?php echo _AT('question'); ?> <?php echo $this->number; ?>: <span style="padding-left: 10px"><?php echo $this->type; ?></span></h3>
-</span>
-       </strong>
 </div>
 <div class="row" style="padding-bottom: 20px">
\ No newline at end of file
index 01ce9af..06adb6e 100644 (file)
@@ -5,6 +5,6 @@
 <ul style="padding: 0px; margin: 0px; list-style-type: none">
        <?php for ($i=0; $i < $this->num_choices; $i++): ?>
                <li style="padding: 4px">
-                       <input type="checkbox" name="answers[<?php echo $this->row['question_id']; ?>][]" value="<?php echo $i; ?>" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" <?php if (in_array($i, $this->response)): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label>
+                       <input type="checkbox" name="answers[<?php echo $this->row['question_id']; ?>][]" value="<?php echo $i; ?>" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" <?php if (in_array($i, $this->response)): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label></li>
        <?php endfor; ?>
 </ul>
\ No newline at end of file
index 5caf4a8..ee73e10 100644 (file)
@@ -5,9 +5,9 @@
                <li style="padding: 4px">
                        <input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="<?php echo $i; ?>" id="choice_<?php echo $this->row['question_id'].'_'.$i; ?>" <?php 
                        //Multiple choice will always have just 1 choice, thus the response is always in the array of $this->response[0]
-                       if (is_numeric($this->response[0]) && $i == $this->response[0]): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label>
+                       if (is_numeric($this->response[0]) && $i == $this->response[0]): ?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id'].'_'.$i; ?>"><?php echo AT_print($this->row['choice_'.$i], 'tests_questions.choice_'.$i); ?></label></li>
        <?php endfor; ?>
        <li style="padding: 4px">
-               <input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="-1" id="choice_<?php echo $this->row['question_id']; ?>'_x" <?php if (is_numeric($this->response[0]) && -1 == $this->response[0]): ?>checked="checked"<?php endif; ?> /><label for="choice_<?php echo $this->row['question_id']; ?>'_x"><strong><?php echo _AT('leave_blank'); ?></strong></label>
+               <input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="-1" id="choice_<?php echo $this->row['question_id']; ?>_x" <?php if (is_numeric($this->response[0]) && -1 == $this->response[0]): ?>checked="checked"<?php endif; ?> /><label for="choice_<?php echo $this->row['question_id']; ?>_x"><strong><?php echo _AT('leave_blank'); ?></strong></label>
        </li>
 </ul>
\ No newline at end of file