From c188ec80be38605d96cc8d6924d5611d302f36a3 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 26 Mar 2024 13:46:53 +0100 Subject: [PATCH] MDL-73975 course: Remove course_search_form template The template core_course/course_search_form has been removed following its cessation of use upon MDL-69454 in Moodle 3.11. --- course/templates/course_search_form.mustache | 46 ---------------------------- course/upgrade.txt | 1 + lang/en/deprecated.txt | 2 ++ lang/en/moodle.php | 12 ++++---- theme/boost/scss/moodle/course.scss | 5 --- theme/boost/scss/moodle/forms.scss | 4 --- theme/boost/style/moodle.css | 9 ------ theme/classic/style/moodle.css | 9 ------ 8 files changed, 9 insertions(+), 79 deletions(-) delete mode 100644 course/templates/course_search_form.mustache diff --git a/course/templates/course_search_form.mustache b/course/templates/course_search_form.mustache deleted file mode 100644 index a128979588d..00000000000 --- a/course/templates/course_search_form.mustache +++ /dev/null @@ -1,46 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_course/course_search_form - - This template renders the form for course search. - - Example context (json): - { - "searchurl": "https://moodlesite/course/search.php", - "id": "coursesearch", - "inputid": "coursesearchbox", - "inputsize": 30, - "value": "certificate", - "name" : "q", - "helpicon": [{ - "heading": "Search courses", - "text": "You can search for multiple words at once and can refine your search as follows:" - }] - } -}} -
-
- - - - - {{#helpicon}} - {{>core/help_icon}} - {{/helpicon}} -
-
diff --git a/course/upgrade.txt b/course/upgrade.txt index 77eff50c0dd..12b741b01b7 100644 --- a/course/upgrade.txt +++ b/course/upgrade.txt @@ -38,6 +38,7 @@ The colors for all these purposes and the filters applied to outline them are de * New behat step using the URL resolvers: - When I am on the "Course >
"course > section" page logged in as "". When utilizing 'Section x' it first searches by section name (Section x). If it's not found, then it searches by the section number (x). +* The template core_course/course_search_form has been removed following its cessation of use upon MDL-69454 in version 3.11. === 4.3 === * The `core_course_renderer::course_section_cm_completion` method has been removed, and can no longer be used diff --git a/lang/en/deprecated.txt b/lang/en/deprecated.txt index 42b5148ed5f..7a186215d14 100644 --- a/lang/en/deprecated.txt +++ b/lang/en/deprecated.txt @@ -125,3 +125,5 @@ from,core aria-toggledropdown,core_grades aria:dropdowngrades,core_grades viewresults,core +coursesearch,core +coursesearch_help,core diff --git a/lang/en/moodle.php b/lang/en/moodle.php index ceb8ba9be58..6e5bb1382f4 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -430,12 +430,6 @@ $string['coursesectiontitleediting'] = 'Edit {$a->sectionname}: {$a->sectiontitl $string['coursesettings'] = 'Course default settings'; $string['coursesmovedout'] = 'Courses moved out from {$a}'; $string['coursespending'] = 'Courses pending approval'; -$string['coursesearch'] = 'Search courses'; -$string['coursesearch_help'] = 'You can search for multiple words at once and can refine your search as follows: - -* word - find any match of this word within the text -* +word - only exact matching words will be found -* -word - don\'t include results containing this word.'; $string['coursestart'] = 'Course start'; $string['coursesummary'] = 'Course summary'; $string['coursesummary_help'] = 'A short description of your course. The content you add here is searchable.'; @@ -2504,3 +2498,9 @@ $string['summaryof'] = 'Summary of {$a}'; $string['from'] = 'From'; $string['to'] = 'To'; $string['viewresults'] = 'View results for {$a}'; +$string['coursesearch'] = 'Search courses'; +$string['coursesearch_help'] = 'You can search for multiple words at once and can refine your search as follows: + +* word - find any match of this word within the text +* +word - only exact matching words will be found +* -word - don\'t include results containing this word.'; diff --git a/theme/boost/scss/moodle/course.scss b/theme/boost/scss/moodle/course.scss index a0eeb56ec1d..f2b2464d611 100644 --- a/theme/boost/scss/moodle/course.scss +++ b/theme/boost/scss/moodle/course.scss @@ -556,11 +556,6 @@ span.editinstructions { vertical-align: text-bottom; } -#coursesearch { - margin-top: 1em; - text-align: left; -} - #page-course-pending .pendingcourserequests { margin-bottom: 1em; } diff --git a/theme/boost/scss/moodle/forms.scss b/theme/boost/scss/moodle/forms.scss index fc01d186902..86e06174d8a 100644 --- a/theme/boost/scss/moodle/forms.scss +++ b/theme/boost/scss/moodle/forms.scss @@ -197,10 +197,6 @@ div#dateselector-calendar-panel { z-index: 3100; /* Set higher than the z-index of the filemanager - see MDL-39047. */ } -fieldset.coursesearchbox label { - display: inline; -} - /** * Show the labels above text editors and file managers except on wide screens. */ diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 127b39d4fe1..f5b33365328 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -28485,11 +28485,6 @@ span.editinstructions .alert-link { vertical-align: text-bottom; } -#coursesearch { - margin-top: 1em; - text-align: left; -} - #page-course-pending .pendingcourserequests { margin-bottom: 1em; } @@ -33079,10 +33074,6 @@ div#dateselector-calendar-panel { z-index: 3100; /* Set higher than the z-index of the filemanager - see MDL-39047. */ } -fieldset.coursesearchbox label { - display: inline; -} - /** * Show the labels above text editors and file managers except on wide screens. */ diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index f120e6a6dda..5a75c81337b 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -28485,11 +28485,6 @@ span.editinstructions .alert-link { vertical-align: text-bottom; } -#coursesearch { - margin-top: 1em; - text-align: left; -} - #page-course-pending .pendingcourserequests { margin-bottom: 1em; } @@ -33079,10 +33074,6 @@ div#dateselector-calendar-panel { z-index: 3100; /* Set higher than the z-index of the filemanager - see MDL-39047. */ } -fieldset.coursesearchbox label { - display: inline; -} - /** * Show the labels above text editors and file managers except on wide screens. */ -- 2.11.4.GIT