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/>.
18 @template core_admin/header_search_input
20 Admin search input for page header.
22 Example context (json):
24 "action": "http://moodle.local/admin/search.php",
25 "query": "themedesigner"
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>
35 id="searchinput-{{uniqid}}"
37 placeholder="{{#str}} search, core {{/str}}"
38 aria-label="{{#str}} search, core {{/str}}"
42 {{#query}}value="{{.}}"{{/query}}
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>