'resortcategoriesby',
'name',
false,
- array('aria-label' => get_string('selectcategorysortby'))
+ array('aria-label' => get_string('selectcategorysortby'), 'class' => 'm-t-1')
)
);
$form .= html_writer::div(
'resortcoursesby',
'fullname',
false,
- array('aria-label' => get_string('selectcoursesortby'))
+ array('aria-label' => get_string('selectcoursesortby'), 'class' => 'm-t-1')
)
);
- $form .= html_writer::empty_tag('input', array('type' => 'submit', 'name' => 'bulksort', 'value' => get_string('sort')));
+ $form .= html_writer::empty_tag('input', array('type' => 'submit', 'name' => 'bulksort',
+ 'value' => get_string('sort'), 'class' => 'btn btn-secondary m-y-1'));
$form .= html_writer::end_div();
- $html .= html_writer::start_div('detail-pair row yui3-g');
- $html .= html_writer::div(html_writer::span(get_string('sorting')), 'pair-key span3 yui3-u-1-4');
- $html .= html_writer::div($form, 'pair-value span9 yui3-u-3-4');
+ $html .= html_writer::start_div('detail-pair row yui3-g m-y-1');
+ $html .= html_writer::div(html_writer::span(get_string('sorting')), 'pair-key span3 col-md-3 yui3-u-1-4');
+ $html .= html_writer::div($form, 'pair-value span9 col-md-9 yui3-u-3-4');
$html .= html_writer::end_div();
}
if (coursecat::can_change_parent_any()) {
'movecategoriesto',
'',
array('' => 'choosedots'),
- array('aria-labelledby' => 'moveselectedcategoriesto')
+ array('aria-labelledby' => 'moveselectedcategoriesto', 'class' => 'm-r-1')
);
- $submit = array('type' => 'submit', 'name' => 'bulkmovecategories', 'value' => get_string('move'));
+ $submit = array('type' => 'submit', 'name' => 'bulkmovecategories', 'value' => get_string('move'),
+ 'class' => 'btn btn-secondary');
$html .= $this->detail_pair(
html_writer::span(get_string('moveselectedcategoriesto'), '', array('id' => 'moveselectedcategoriesto')),
$select . html_writer::empty_tag('input', $submit)
'movecoursesto',
'',
array('' => 'choosedots'),
- array('aria-labelledby' => 'moveselectedcoursesto')
+ array('aria-labelledby' => 'moveselectedcoursesto', 'class' => 'm-r-1')
);
- $submit = array('type' => 'submit', 'name' => 'bulkmovecourses', 'value' => get_string('move'));
+ $submit = array('type' => 'submit', 'name' => 'bulkmovecourses', 'value' => get_string('move'),
+ 'class' => 'btn btn-secondary');
$html .= $this->detail_pair(
html_writer::span(get_string('moveselectedcoursesto'), '', array('id' => 'moveselectedcoursesto')),
$select . html_writer::empty_tag('input', $submit)
array('' => 'choosedots'),
array('aria-labelledby' => 'moveselectedcoursesto')
);
- $submit = array('type' => 'submit', 'name' => 'bulkmovecourses', 'value' => get_string('move'));
+ $submit = array('type' => 'submit', 'name' => 'bulkmovecourses', 'value' => get_string('move'),
+ 'class' => 'btn btn-secondary');
$html .= $this->detail_pair(
html_writer::span(get_string('moveselectedcoursesto'), '', array('id' => 'moveselectedcoursesto')),
$select . html_writer::empty_tag('input', $submit)
*/
protected function detail_pair($key, $value, $class ='') {
$html = html_writer::start_div('detail-pair row yui3-g '.preg_replace('#[^a-zA-Z0-9_\-]#', '-', $class));
- $html .= html_writer::div(html_writer::span($key), 'pair-key span3 yui3-u-1-4');
- $html .= html_writer::div(html_writer::span($value), 'pair-value span9 yui3-u-3-4');
+ $html .= html_writer::div(html_writer::span($key), 'pair-key span3 col-md-3 yui3-u-1-4');
+ $html .= html_writer::div(html_writer::span($value), 'pair-value span9 col-md-9 m-b-1 yui3-u-3-4');
$html .= html_writer::end_div();
return $html;
}
public function grid_column_start($size, $id = null, $class = null) {
// Calculate Bootstrap grid sizing.
- $bootstrapclass = 'span'.$size;
+ $bootstrapclass = 'span'.$size.' col-md-'.$size;
// Calculate YUI grid sizing.
if ($size === 12) {
$strsearchcourses = get_string("searchcourses");
$searchurl = new moodle_url('/course/management.php');
- $output = html_writer::start_tag('form', array('id' => $formid, 'action' => $searchurl, 'method' => 'get'));
- $output .= html_writer::start_tag('fieldset', array('class' => 'coursesearchbox invisiblefieldset'));
- $output .= html_writer::tag('label', $strsearchcourses.': ', array('for' => $inputid));
- $output .= html_writer::empty_tag('input', array('type' => 'text', 'id' => $inputid,
- 'size' => $inputsize, 'name' => 'search', 'value' => s($value)));
- $output .= html_writer::empty_tag('input', array('type' => 'submit',
- 'value' => get_string('go')));
+ $output = html_writer::start_tag('form', array('id' => $formid, 'action' => $searchurl, 'method' => 'get',
+ 'class' => 'form-inline'));
+ $output .= html_writer::start_tag('fieldset', array('class' => 'coursesearchbox invisiblefieldset m-y-1'));
+ $output .= html_writer::tag('label', $strsearchcourses, array('for' => $inputid));
+ $output .= html_writer::empty_tag('input', array('type' => 'text', 'id' => $inputid, 'size' => $inputsize,
+ 'name' => 'search', 'value' => s($value), 'class' => 'form-control m-x-1'));
+ $output .= html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('go'),
+ 'class' => 'btn btn-secondary'));
$output .= html_writer::end_tag('fieldset');
$output .= html_writer::end_tag('form');