Moodle release 4.3.3
[moodle.git] / admin / templates / header_search_input.mustache
blob51a6386f10508fe1e28b0a253ef1b06ee52d75e7
1 {{!
2     This file is part of Moodle - http://moodle.org/
4     Moodle is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
9     Moodle is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
14     You should have received a copy of the GNU General Public License
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17 {{!
18     @template core_admin/header_search_input
20     Admin search input for page header.
22     Example context (json):
23     {
24         "action": "http://moodle.local/admin/search.php",
25         "query": "themedesigner"
26     }
28 <div class="simplesearchform d-flex justify-content-end">
29   <form autocomplete="off" action="{{action}}" method="get" accept-charset="utf-8" class="mform form-inline simplesearchform">
30     <div class="input-group">
31       <label for="searchinput-{{uniqid}}">
32         <span class="sr-only">{{#str}} search, core {{/str}}</span>
33       </label>
34       <input type="text"
35              id="searchinput-{{uniqid}}"
36              class="form-control"
37              placeholder="{{#str}} search, core {{/str}}"
38              aria-label="{{#str}} search, core {{/str}}"
39              name="query"
40              data-region="input"
41              autocomplete="off"
42              {{#query}}value="{{.}}"{{/query}}
43       >
44       <div class="input-group-append">
45         <button type="submit" class="btn btn-primary search-icon">
46           {{#pix}} a/search, core {{/pix}}
47           <span class="sr-only">{{#str}} search, core {{/str}}</span>
48         </button>
49       </div>
50     </div>
51   </form>
52 </div>