Skip to content

Commit

Permalink
MDL-26037: import: display search box even when no courses are curren…
Browse files Browse the repository at this point in the history
…tly displayed
  • Loading branch information
Tony Levi authored and stronk7 committed Mar 1, 2012
1 parent d0c94a1 commit a4df856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backup/util/ui/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,12 @@ public function render_import_course_search(import_course_search $component) {
$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;
}
Expand Down

0 comments on commit a4df856

Please sign in to comment.