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.
This commit is contained in:
Sara Arjona 2024-03-26 13:46:53 +01:00
parent 8efe31ee96
commit c188ec80be
No known key found for this signature in database
8 changed files with 9 additions and 79 deletions

View File

@ -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 <http://www.gnu.org/licenses/>.
}}
{{!
@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:"
}]
}
}}
<form action="{{searchurl}}" id="{{id}}" method="get" class="d-flex flex-wrap align-items-center">
<fieldset class="coursesearchbox invisiblefieldset">
<label for="{{inputid}}">{{#str}}searchcourses{{/str}}</label>
<input id="{{inputid}}" name="q" type="text" size="{{inputsize}}" value="{{value}}" class="form-control mb-1 mb-sm-0">
<input name="areaids" type="hidden" value="{{areaids}}">
<button class="btn btn-secondary" type="submit">{{#str}}go{{/str}}</button>
{{#helpicon}}
{{>core/help_icon}}
{{/helpicon}}
</fieldset>
</form>

View File

@ -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 > <section> "course > section" page logged in as "<username>". 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

View File

@ -125,3 +125,5 @@ from,core
aria-toggledropdown,core_grades
aria:dropdowngrades,core_grades
viewresults,core
coursesearch,core
coursesearch_help,core

View File

@ -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.';

View File

@ -556,11 +556,6 @@ span.editinstructions {
vertical-align: text-bottom;
}
#coursesearch {
margin-top: 1em;
text-align: left;
}
#page-course-pending .pendingcourserequests {
margin-bottom: 1em;
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/