1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template core_admin/header_search_input
|
|
|
19 |
|
|
|
20 |
Admin search input for page header.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"action": "http://moodle.local/admin/search.php",
|
|
|
25 |
"query": "themedesigner"
|
|
|
26 |
}
|
|
|
27 |
}}
|
|
|
28 |
<div class="simplesearchform d-flex justify-content-end">
|
|
|
29 |
<form autocomplete="off" action="{{action}}" method="get" accept-charset="utf-8" class="mform d-flex flex-wrap align-items-center 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>
|