From 5c625be3beb3829231d7203b1154fcdb57aa70cd Mon Sep 17 00:00:00 2001 From: Tony Levi Date: Fri, 6 Jan 2012 15:58:08 +1030 Subject: [PATCH] MDL-26037: import: display search box even when no courses are currently displayed --- backup/util/ui/renderer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backup/util/ui/renderer.php b/backup/util/ui/renderer.php index 08454409e31..d6e2ff2b5c3 100644 --- a/backup/util/ui/renderer.php +++ b/backup/util/ui/renderer.php @@ -568,6 +568,12 @@ class core_backup_renderer extends plugin_renderer_base { $output = html_writer::start_tag('div', array('class' => 'import-course-search')); if ($component->get_count() === 0) { $output .= $this->output->notification(get_string('nomatchingcourses', 'backup')); + + $output .= html_writer::start_tag('div', array('class'=>'ics-search')); + $output .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>restore_course_search::$VAR_SEARCH, 'value'=>$component->get_search())); + $output .= html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'searchcourses', 'value'=>get_string('search'))); + $output .= html_writer::end_tag('div'); + $output .= html_writer::end_tag('div'); return $output; } -- 2.11.4.GIT