Merge branch 'MDL-60916-master_replace_course_search_wth_global_search' of https...
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 14 Aug 2019 02:35:22 +0000 (10:35 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 14 Aug 2019 02:35:22 +0000 (10:35 +0800)
1  2 
course/templates/course_search_form.mustache

      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">