diff --git a/mod/forum/classes/output/big_search_form.php b/mod/forum/classes/output/big_search_form.php index b4ae556b065..919e46a1800 100644 --- a/mod/forum/classes/output/big_search_form.php +++ b/mod/forum/classes/output/big_search_form.php @@ -214,17 +214,19 @@ class big_search_form implements renderable, templatable { $dateto = time() + HOURSECS; } - $data->datefromfields = html_writer::select_time('days', 'fromday', $datefrom) - . html_writer::select_time('months', 'frommonth', $datefrom) - . html_writer::select_time('years', 'fromyear', $datefrom) - . html_writer::select_time('hours', 'fromhour', $datefrom) - . html_writer::select_time('minutes', 'fromminute', $datefrom); + $data->datefromfields = html_writer::div(html_writer::select_time('days', 'fromday', $datefrom), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('months', 'frommonth', $datefrom), + 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('years', 'fromyear', $datefrom), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('hours', 'fromhour', $datefrom), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('minutes', 'fromminute', $datefrom), + 'form-group fitem ml-2'); - $data->datetofields = html_writer::select_time('days', 'today', $dateto) - . html_writer::select_time('months', 'tomonth', $dateto) - . html_writer::select_time('years', 'toyear', $dateto) - . html_writer::select_time('hours', 'tohour', $dateto) - . html_writer::select_time('minutes', 'tominute', $dateto); + $data->datetofields = html_writer::div(html_writer::select_time('days', 'today', $dateto), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('months', 'tomonth', $dateto), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('years', 'toyear', $dateto), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('hours', 'tohour', $dateto), 'form-group fitem ml-2') + . html_writer::div(html_writer::select_time('minutes', 'tominute', $dateto), 'form-group fitem ml-2'); if ($this->forumid && !empty($this->forumoptions)) { foreach ($this->forumoptions as $index => $option) { diff --git a/mod/forum/templates/big_search_form.mustache b/mod/forum/templates/big_search_form.mustache index 4d26e5c24cb..2f10c16e3f2 100644 --- a/mod/forum/templates/big_search_form.mustache +++ b/mod/forum/templates/big_search_form.mustache @@ -93,8 +93,10 @@ {{#str}}searchdatefrom, forum{{/str}} +
- {{{datefromfields}}} + {{{datefromfields}}} +
@@ -107,8 +109,10 @@ {{#str}}searchdateto, forum{{/str}} +
- {{{datetofields}}} + {{{datetofields}}} +
diff --git a/theme/boost/templates/core/select_time.mustache b/theme/boost/templates/core/select_time.mustache index f2c9029613e..df48117bd2c 100644 --- a/theme/boost/templates/core/select_time.mustache +++ b/theme/boost/templates/core/select_time.mustache @@ -31,7 +31,7 @@ } }} - {{#options}} {{/options}} diff --git a/theme/boost/templates/mod_forum/big_search_form.mustache b/theme/boost/templates/mod_forum/big_search_form.mustache index 5c05e5c7edc..dc5c6066b1c 100644 --- a/theme/boost/templates/mod_forum/big_search_form.mustache +++ b/theme/boost/templates/mod_forum/big_search_form.mustache @@ -51,10 +51,10 @@ {{#str}}searchforumintro, forum{{/str}}
-
+ - @@ -63,7 +63,7 @@ - - {{#showfullwords}} - {{/showfullwords}} - - - - -