From 3814fb96fc1487f78618ef88e37bd2b05ee31759 Mon Sep 17 00:00:00 2001 From: pilpi Date: Fri, 28 Nov 2008 15:43:10 +0000 Subject: [PATCH] quiz editing: MDL-17398 link to edit random question (configuration) in new UI --- mod/quiz/editlib.php | 11 ++++++----- theme/standard/styles_layout.css | 9 +++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index e7b300e607..7b5aa07f88 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -458,7 +458,11 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, ?> - +qtype,'random')===0){ + echo ''.get_string("configurerandomquestion","quiz").''; +} + +?> @@ -958,9 +962,6 @@ function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){ echo $reordercheckboxlabel; print_question_icon($question); - $editstring= "pixpath/t/edit.gif\" alt=\"". - get_string("edit")."\" /> "; $questioncount=$DB->count_records_select('question', "category IN ($category->id) AND parent = '0' "); $randomquestionlistsize=3; @@ -980,7 +981,7 @@ function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){ $category->contextid)). '">-->'.$reordercheckboxlabel.$category->name. $reordercheckboxlabelclose.''; - echo ''.$editstring; + echo ''; echo quiz_question_preview_button($quiz, $question,false); echo ''; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index e638425a33..3e28096716 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -4652,15 +4652,10 @@ table.quizreviewsummary td.cell { #mod-quiz-edit div.question div.content .questionname, #categoryquestions .questionname{ white-space:nowrap; - text-overflow:ellipsis; overflow:hidden; zoom:1; position:relative; max-width:20%; - /*ie-only:*/ - text-overflow:ellipsis; - /*opera-only*/ - -o-text-overflow:ellipsis; } #mod-quiz-edit div.question div.content .singlequestion .questionname, #mod-quiz-edit div.question div.content .singlequestion .questiontext{ @@ -4819,6 +4814,7 @@ table.quizreviewsummary td.cell { padding-right:0.2em; clear:both; margin:0.5em; + margin-top:0.8em; } @@ -4850,7 +4846,8 @@ table.quizreviewsummary td.cell { } #mod-quiz-edit .editq div.question div.content .randomquestioncategory{ - position:relative; + margin-top:0.4em; + position:relative; display:inline-block; } -- 2.39.5