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 search form.
+ This template renders the form for course search.
Example context (json):
{
- "searchurl": "https://domain.example/course/search.php",
+ "searchurl": "https://moodlesite/course/search.php",
"id": "coursesearch",
- "inputid": "coursesearchbox",
+ "inputid": "coursesearchbox",
- "inputsize": "30",
- "value": "Find in course",
- "helpicon": "<a class='btn'><i class='icon fa fa-question-circle'></i></a>"
+ "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="form-inline">