From d0d62fd06c79fd43ab118b1c2fcf88700f162205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Wed, 13 Dec 2023 15:41:47 +0100 Subject: [PATCH] MDL-75670 theme: Refactor form-inline helper class dropped in BS5 - Replace .form-inline Bootstrap helper class with .d-flex.flex-wrap.align-items-center - Refactor .form-inline occurrences in SCSS files or remove when unneeded --- .../classes/define_role_table_advanced.php | 2 +- admin/roles/module.js | 2 +- admin/templates/header_search_input.mustache | 2 +- .../templates/setting_configduration.mustache | 2 +- admin/templates/setting_configfile.mustache | 2 +- .../templates/setting_configfilesize.mustache | 2 +- admin/templates/setting_configtime.mustache | 2 +- .../hugo/site/layouts/_default/docs.html | 2 +- .../lp/templates/competency_picker.mustache | 2 +- .../competency_picker_competencyform.mustache | 2 +- .../competency_picker_user_plans.mustache | 2 +- .../manage_competencies_page.mustache | 2 +- admin/tool/spamcleaner/index.php | 2 +- ...odle-availability_completion-form-debug.js | 2 +- ...moodle-availability_completion-form-min.js | 2 +- .../moodle-availability_completion-form.js | 2 +- .../completion/yui/src/form/js/form.js | 2 +- .../moodle-availability_grade-form-debug.js | 2 +- .../moodle-availability_grade-form-min.js | 2 +- .../moodle-availability_grade-form.js | 2 +- .../condition/grade/yui/src/form/js/form.js | 2 +- .../moodle-availability_group-form-debug.js | 2 +- .../moodle-availability_group-form-min.js | 2 +- .../moodle-availability_group-form.js | 2 +- .../condition/group/yui/src/form/js/form.js | 2 +- ...moodle-availability_grouping-form-debug.js | 2 +- .../moodle-availability_grouping-form-min.js | 2 +- .../moodle-availability_grouping-form.js | 2 +- .../grouping/yui/src/form/js/form.js | 2 +- .../moodle-availability_profile-form-debug.js | 2 +- .../moodle-availability_profile-form-min.js | 2 +- .../moodle-availability_profile-form.js | 2 +- .../condition/profile/yui/src/form/js/form.js | 2 +- backup/util/ui/renderer.php | 4 +- course/templates/course_search_form.mustache | 2 +- enrol/yui/rolemanager/rolemanager.js | 3 +- .../singleview/templates/bulk_insert.mustache | 2 +- .../templates/weight_override_field.mustache | 2 +- .../moodle-atto_image-button-debug.js | 4 +- .../moodle-atto_image-button-min.js | 4 +- .../moodle-atto_image-button.js | 4 +- .../plugins/image/yui/src/button/js/button.js | 4 +- .../moodle-atto_media-button-debug.js | 2 +- .../moodle-atto_media-button-min.js | 4 +- .../moodle-atto_media-button.js | 2 +- .../plugins/media/yui/src/button/js/button.js | 2 +- .../moodle-atto_table-button-debug.js | 8 +-- .../moodle-atto_table-button-min.js | 6 +- .../moodle-atto_table-button.js | 8 +-- .../plugins/table/yui/src/button/js/button.js | 8 +-- .../embed_media_modal_video.mustache | 2 +- .../templates/insert_image_modal.mustache | 4 +- lib/form/templates/element-template.mustache | 2 +- lib/templates/dataformat_selector.mustache | 2 +- lib/templates/filemanager_fileselect.mustache | 10 +-- lib/templates/filemanager_loginform.mustache | 2 +- lib/templates/search_input.mustache | 2 +- lib/templates/search_input_auto.mustache | 2 +- lib/templates/search_input_navbar.mustache | 2 +- lib/templates/single_select.mustache | 2 +- lib/templates/url_select.mustache | 2 +- .../moodle-core-notification-confirm-debug.js | 8 ++- .../moodle-core-notification-confirm-min.js | 2 +- .../moodle-core-notification-confirm.js | 8 ++- lib/yui/src/notification/js/confirm.js | 8 ++- .../search_input_recordings.mustache | 2 +- mod/chat/gui_ajax/index.php | 21 +++--- mod/data/field/date/field.class.php | 4 +- mod/data/field/latlong/field.class.php | 2 +- mod/data/field/url/field.class.php | 2 +- mod/data/lib.php | 2 +- mod/forum/deprecatedlib.php | 4 +- .../templates/bulk_action_menu.mustache | 2 +- mod/forum/templates/big_search_form.mustache | 6 +- mod/forum/templates/forum_discussion.mustache | 2 +- .../forum_discussion_nested_v2.mustache | 2 +- mod/glossary/editcategories.html | 6 +- mod/lti/templates/tool_configure.mustache | 2 +- mod/quiz/classes/output/edit_renderer.php | 2 +- question/type/multianswer/renderer.php | 2 +- question/type/numerical/renderer.php | 2 +- question/type/shortanswer/renderer.php | 2 +- report/courseoverview/index.php | 3 +- report/participation/locallib.php | 2 +- tag/templates/combine_tags.mustache | 2 +- theme/boost/scss/moodle/course.scss | 4 -- theme/boost/scss/moodle/forms.scss | 47 ++---------- theme/boost/scss/moodle/modules.scss | 16 ----- theme/boost/scss/moodle/search.scss | 2 +- theme/boost/style/moodle.css | 72 +++---------------- theme/boost/upgrade.txt | 1 + theme/classic/style/moodle.css | 72 +++---------------- user/index.php | 2 +- user/selector/lib.php | 2 +- 94 files changed, 165 insertions(+), 318 deletions(-) diff --git a/admin/roles/classes/define_role_table_advanced.php b/admin/roles/classes/define_role_table_advanced.php index 57b449f7aa2..632cb3e39a6 100644 --- a/admin/roles/classes/define_role_table_advanced.php +++ b/admin/roles/classes/define_role_table_advanced.php @@ -663,7 +663,7 @@ class core_role_define_role_table_advanced extends core_role_capability_table_wi } else { $extraclass = ''; } - echo '
'; + echo '
'; echo $field; if (isset($this->errors[$name])) { echo $OUTPUT->error_text($this->errors[$name]); diff --git a/admin/roles/module.js b/admin/roles/module.js index e161948c957..9a249176336 100644 --- a/admin/roles/module.js +++ b/admin/roles/module.js @@ -45,7 +45,7 @@ M.core_role.init_cap_table_filter = function(Y, tableid, contextid) { this.table = Y.one('#'+this.tableid); // Create a div to hold the search UI. - this.div = Y.Node.create('
').setStyles({ + this.div = Y.Node.create('
').setStyles({ width : this.table.get('offsetWidth'), marginLeft : 'auto', marginRight : 'auto' diff --git a/admin/templates/header_search_input.mustache b/admin/templates/header_search_input.mustache index 51a6386f105..eed7f6a2971 100644 --- a/admin/templates/header_search_input.mustache +++ b/admin/templates/header_search_input.mustache @@ -26,7 +26,7 @@ } }}
-
+