From 6e4ca69ad7e5d5b585f5a22eec43ddfd5d5334e4 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 30 Nov 2007 11:00:48 +0000 Subject: [PATCH] MDL-12393 - Layout tweaks on question category editing page. Merged from MOODLE_19_STABLE. --- question/category_class.php | 9 +++------ theme/standard/styles_layout.css | 4 ++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/question/category_class.php b/question/category_class.php index 04b995efd22..c4af0dbcf92 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 = "edit}\" href=\"$catediturl\">".$category->name ." ".'('.$category->questioncount.')'; + $item = "edit}\" href=\"$catediturl\">".$category->name ." ".'('.$category->questioncount.')'; $item .= ' '. $category->info; - if (count($this->parentlist->records)!=1){ // don't allow delete if this is the last category in this context. $item .= ' - ' .$str->delete. ' '; + ' .$str->delete. ''; } 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 5b5ada49784..90a47c3ee6b 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;