Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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="search-input-group d-inline-flex justify-content-between w-100">
30
      <label for="searchinput-{{uniqid}}">
31
        <span class="sr-only">{{#str}} search, core {{/str}}</span>
32
      </label>
33
        <span class="search-input-icon">
34
            <svg width="22" height="22" fill="none" viewBox="0 0 24 24">
35
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 19.25L15.5 15.5M4.75 11C4.75 7.54822 7.54822 4.75 11 4.75C14.4518 4.75 17.25 7.54822 17.25 11C17.25 14.4518 14.4518 17.25 11 17.25C7.54822 17.25 4.75 14.4518 4.75 11Z"></path>
36
            </svg>
37
        </span>
38
        <input
39
             type="text"
40
             id="searchinput-{{uniqid}}"
41
             class="search-input"
42
             placeholder="{{#str}} search, core {{/str}}"
43
             aria-label="{{#str}} search, core {{/str}}"
44
             name="query"
45
             data-region="input"
46
             autocomplete="off"
47
             {{#query}}value="{{.}}"{{/query}}
48
        >
49
        <button
50
            class="search-input-btn d-none"
51
            data-action="clearsearch"
52
            type="button"
53
        >
54
            <svg width="24" height="24" fill="none" viewBox="0 0 24 24">
55
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 6.75L6.75 17.25"></path>
56
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.75 6.75L17.25 17.25"></path>
57
            </svg>
58
            <span class="sr-only">{{#str}} clearsearch, core {{/str}}</span>
59
        </button>
60
 
61
    </form>
62
</div>