MDL-66560 import: Format course search UI elements.

This commit is contained in:
Luca Bösch
2019-09-05 00:41:53 +02:00
parent 2baf9a81d8
commit 3d348a4638
+6 -4
View File
@@ -375,8 +375,10 @@ class core_backup_renderer extends plugin_renderer_base {
$html .= $this->output->heading(get_string('importdatafrom'), 2, array('class' => 'header'));
$html .= $this->backup_detail_pair(get_string('selectacourse', 'backup'), $this->render($courses));
$attrs = array('type' => 'submit', 'value' => get_string('continue'), 'class' => 'btn btn-primary');
$html .= html_writer::start_tag('div', array('class' => 'mt-3'));
$html .= $this->backup_detail_pair('', html_writer::empty_tag('input', $attrs));
$html .= html_writer::end_tag('div');
$html .= html_writer::end_tag('div');
$html .= html_writer::end_tag('form');
$html .= html_writer::end_tag('div');
return $html;
@@ -704,7 +706,7 @@ class core_backup_renderer extends plugin_renderer_base {
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::start_tag('div', array('class' => 'ics-search form-inline'));
$attrs = array(
'type' => 'text',
'name' => restore_course_search::$VAR_SEARCH,
@@ -716,7 +718,7 @@ class core_backup_renderer extends plugin_renderer_base {
'type' => 'submit',
'name' => 'searchcourses',
'value' => get_string('search'),
'class' => 'btn btn-secondary'
'class' => 'btn btn-secondary ml-1'
);
$output .= html_writer::empty_tag('input', $attrs);
$output .= html_writer::end_tag('div');
@@ -762,7 +764,7 @@ class core_backup_renderer extends plugin_renderer_base {
$output .= html_writer::table($table);
$output .= html_writer::end_tag('div');
$output .= html_writer::start_tag('div', array('class' => 'ics-search'));
$output .= html_writer::start_tag('div', array('class' => 'ics-search form-inline'));
$attrs = array(
'type' => 'text',
'name' => restore_course_search::$VAR_SEARCH,
@@ -773,7 +775,7 @@ class core_backup_renderer extends plugin_renderer_base {
'type' => 'submit',
'name' => 'searchcourses',
'value' => get_string('search'),
'class' => 'btn btn-secondary'
'class' => 'btn btn-secondary ml-1'
);
$output .= html_writer::empty_tag('input', $attrs);
$output .= html_writer::end_tag('div');