1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-07 09:23:31 +02:00

Merge branch 'MDL-65561-master' of git://github.com/bmbrands/moodle

This commit is contained in:
Adrian Greeve 2019-08-20 09:36:11 +08:00
commit 6e6cfab790

@ -66,11 +66,18 @@ class user_filter_date extends user_filter_type {
public function setupForm(&$mform) {
$objs = array();
$objs[] = $mform->createElement('static', $this->_name.'_sck', null, get_string('isafter', 'filters'));
$objs[] = $mform->createElement('static', $this->_name.'_s1', null,
html_writer::start_tag('div', array('class' => 'w-100 d-flex align-items-center')));
$objs[] = $mform->createElement('static', $this->_name.'_s2', null,
html_writer::tag('div', get_string('isafter', 'filters'), array('class' => 'mr-2')));
$objs[] = $mform->createElement('date_selector', $this->_name.'_sdt', null, array('optional' => true));
$objs[] = $mform->createElement('static', $this->_name.'_break', null, '<br/>');
$objs[] = $mform->createElement('static', $this->_name.'_edk', null, get_string('isbefore', 'filters'));
$objs[] = $mform->createElement('static', $this->_name.'_s3', null, html_writer::end_tag('div'));
$objs[] = $mform->createElement('static', $this->_name.'_s4', null,
html_writer::start_tag('div', array('class' => 'w-100 d-flex align-items-center')));
$objs[] = $mform->createElement('static', $this->_name.'_s5', null,
html_writer::tag('div', get_string('isbefore', 'filters'), array('class' => 'mr-2')));
$objs[] = $mform->createElement('date_selector', $this->_name.'_edt', null, array('optional' => true));
$objs[] = $mform->createElement('static', $this->_name.'_s6', null, html_writer::end_tag('div'));
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);