quiz editing: MDL-17398 link to edit random question (configuration) in new UI
authorpilpi <pilpi>
Fri, 28 Nov 2008 15:43:10 +0000 (15:43 +0000)
committerpilpi <pilpi>
Fri, 28 Nov 2008 15:43:10 +0000 (15:43 +0000)
mod/quiz/editlib.php
theme/standard/styles_layout.css

index e7b300e60753cf7bbdfb4b849b613ea4907c171b..7b5aa07f8872b58b618fcf0fa12f50c5b7f8a9cc 100644 (file)
@@ -458,7 +458,11 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete=true,
             ?>
         <input type="submit" class="pointssubmitbutton" value="<?php echo $strsave; ?>" />
     </fieldset>
-
+<?php if(strcmp($question->qtype,'random')===0){
+    echo '<a href="'.$questionurl->out().'" class="configurerandomquestion">'.get_string("configurerandomquestion","quiz").'</a>';
+}
+            
+?>
 </div>
 </form>
 
@@ -958,9 +962,6 @@ function quiz_print_randomquestion_reordertool(&$question, &$pageurl, &$quiz){
 
     echo $reordercheckboxlabel;
     print_question_icon($question);
-    $editstring= "<a title=\"$stredit\" href=\"".$url.
-            "\"><img src=\"$CFG->pixpath/t/edit.gif\" alt=\"".
-            get_string("edit")."\" /> </a>";
     $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.'<!--</a>-->';
-    echo '<span class="questionpreview">'.$editstring;
+    echo '<span class="questionpreview">';
     echo quiz_question_preview_button($quiz, $question,false);
     
     echo '</span>';
index e638425a337e3548771e8b3f98df4469ade2211a..3e28096716bd26674f9591fb59954ec56f46163f 100644 (file)
@@ -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;
     
 }