qtype description: MDL-16863 Put back edit icon next to descriptions for teachers.

This commit is contained in:
tjhunt
2008-10-21 06:34:14 +00:00
parent 934ff62cfe
commit 834f7c4a5a
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -59,8 +59,9 @@ class description_qtype extends default_questiontype {
if (question_has_capability_on($question, 'edit')) {
$stredit = get_string('edit');
$linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.$stredit.'" />';
$editlink = link_to_popup_window('/question/question.php?id='.$question->id.$cmorcourseid,
'editquestion', $linktext, 450, 550, $stredit, '', true);
$editlink = link_to_popup_window('/question/question.php?inpopup=1&amp;id=' .
$question->id . $cmorcourseid, 'editquestion',
$linktext, false, false, $stredit, '', true);
}
$questiontext = $this->format_text($question->questiontext, $question->questiontextformat, $cmoptions);
+3 -2
View File
@@ -2686,11 +2686,12 @@ body.notes .notesgroup {
}
.que .content {
float: left;
margin: 0;
margin: 0.5em 0;
width: 88%;
}
.que.description .info {
display: none;
margin: 0.5em 0 0.5em 0.2em;
width: 1em;
}
.que.description .content,
.que.description .generalfeedback {