From: tjhunt <tjhunt>
Date: Fri, 30 Nov 2007 11:00:48 +0000 (+0000)
Subject: MDL-12393 - Layout tweaks on question category editing page. Merged from MOODLE_19_ST... 
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6e4ca69ad7e5d5b585f5a22eec43ddfd5d5334e4;p=moodle.git

MDL-12393 - Layout tweaks on question category editing page. Merged from MOODLE_19_STABLE.
---

diff --git a/question/category_class.php b/question/category_class.php
index 04b995efd2..c4af0dbcf9 100644
--- a/question/category_class.php
+++ b/question/category_class.php
@@ -87,19 +87,16 @@ class question_category_list_item extends list_item {
         $questionbankurl = "{$CFG->wwwroot}/question/edit.php?".
                 $this->parentlist->pageurl->get_query_string(array('category'=>"$category->id,$category->contextid"));
         $catediturl = $this->parentlist->pageurl->out(false, array('edit'=>$this->id));
-        $item = "<a title=\"{$str->edit}\" href=\"$catediturl\">".$category->name ."</a> <a title=\"$editqestions\" href=\"$questionbankurl\">".'('.$category->questioncount.')</a>';
+        $item = "<b><a title=\"{$str->edit}\" href=\"$catediturl\">".$category->name ."</a></b> <a title=\"$editqestions\" href=\"$questionbankurl\">".'('.$category->questioncount.')</a>';
 
         $item .= '&nbsp;'. $category->info;
 
-
         if (count($this->parentlist->records)!=1){ // don't allow delete if this is the last category in this context.
             $item .=  '<a title="' . $str->delete . '" href="'.$this->parentlist->pageurl->out_action(array('delete'=>$this->id)).'">
-                    <img src="' . $pixpath . '/t/delete.gif" class="iconsmall" alt="' .$str->delete. '" /></a> ';
+                    <img src="' . $pixpath . '/t/delete.gif" class="iconsmall" alt="' .$str->delete. '" /></a>';
         }
 
         return $item;
-
-
     }
 
 }
@@ -234,8 +231,8 @@ class question_category_object {
         foreach ($this->editlists as $context => $list){
             $listhtml = $list->to_html(0, array('str'=>$this->str));
             if ($listhtml){
+                print_box_start('boxwidthwide boxaligncenter generalbox questioncatategories contextlevel' . $list->context->contextlevel);
                 print_heading(get_string('questioncatsfor', 'question', print_context_name(get_context_instance_by_id($context))), '', 3);
-                print_box_start('boxwidthwide boxaligncenter generalbox');
                 echo $listhtml;
                 print_box_end();
             }
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index 5b5ada4978..90a47c3ee6 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -2494,6 +2494,10 @@ body.notes .notesgroup {
   margin-top: 0;
 }
 
+.questioncatategories h3 {
+  margin-top: 0;
+}
+
 .que {
   text-align: left;
   margin: 0 auto 1.8em auto;