1b8a7434e2
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
<?php
|
|
/* This template determines the overall layout of a question. It is included by the
|
|
* print_question() method.
|
|
*/
|
|
?>
|
|
<div id="q<?php echo $question->id; ?>" class="que <?php echo $question->qtype; ?> clearfix">
|
|
<div class="info">
|
|
<span class="no"><?php echo $number; ?></span>
|
|
<?php if ($editlink) { ?>
|
|
<span class="edit"><?php echo $editlink; ?></span>
|
|
<?php }
|
|
if ($grade) { ?>
|
|
<div class="grade">
|
|
<?php echo get_string('marks', 'quiz').': '.$grade; ?>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
<div class="content">
|
|
<?php $this->print_question_formulation_and_controls($question, $state, $cmoptions, $options); ?>
|
|
</div>
|
|
<div class="grading">
|
|
<?php $this->print_question_grading_details($question, $state, $cmoptions, $options); ?>
|
|
</div>
|
|
<?php if ($comment) { ?>
|
|
<div class="comment">
|
|
<?php
|
|
echo get_string('comment', 'quiz').': ';
|
|
echo $comment;
|
|
?>
|
|
</div>
|
|
<?php }
|
|
echo $commentlink;
|
|
if ($commentary) { ?>
|
|
<div class="commentary">
|
|
<?php echo $commentary ?>
|
|
</div>
|
|
<?php }
|
|
if ($history) { ?>
|
|
<div class="history">
|
|
<?php
|
|
print_string('history', 'quiz');
|
|
echo $history;
|
|
?>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|