8d0286332909c2a5289a5beb717cc10b2fe96eef
[moodle.git] / contentbank / templates / bankcontent / search.mustache
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/>.
16 }}
17 {{!
18     @template core_contentbank/bankcontent/search
20     Example context (json):
21     {}
23 }}
24 <div class="searchbar input-group" role="search">
25     <label for="searchinput">
26         <span class="sr-only">{{#str}} searchcontentbankbyname, contentbank {{/str}}</span>
27     </label>
28     <input type="text"
29            id="searchinput"
30            class="form-control searchinput border-right-0"
31            placeholder="{{#str}} search, core {{/str}}"
32            name="search"
33            autocomplete="off"
34     >
35     <div class="input-group-append">
36         <div class="input-group-text bg-transparent">
37             <div class="search-icon">
38                 <button class="btn p-0 align-baseline icon-no-margin" data-action="searchcontent"
39                     aria-label="{{#str}} search, core {{/str}}">
40                     <span class="d-flex" aria-hidden="true">{{#pix}} a/search, core {{/pix}}</span>
41                 </button>
42             </div>
43             <div class="clear-icon d-none">
44                 <button class="btn p-0 align-baseline icon-no-margin" data-action="clearsearchcontent"
45                     aria-label="{{#str}} clearsearch, core {{/str}}">
46                     <span class="d-flex" aria-hidden="true">{{#pix}} e/cancel_solid_circle, core {{/pix}}</span>
47                 </button>
48             </div>
49         </div>
50     </div>
51 </div>