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 mod_bigbluebuttonbn/search_input_recordings
19
 
20
    Search input that auto searches. Inspired from the core/search_input_auto but
21
    does not use a unique id for the search input.
22
    Add a submit button and clear button.
23
 
24
    Example context (json):
25
    {
26
        "action": "https://moodle.local/admin/search.php",
27
        "extraclasses": "my-2",
28
        "inputname": "search",
29
        "searchstring": "Search settings",
30
        "sesskey": "sesskey",
31
        "value": "policy",
32
        "btnclass": "primary",
33
        "hiddenfields": [
34
            {
35
                "name": "course",
36
                "value": "11"
37
            }
38
        ]
39
    }
40
}}
41
<div id="searchform-auto-{{uniqid}}" class="d-flex flex-wrap align-items-center simplesearchform">
42
    <div class="input-group searchbar" role="search">
43
        <label for="mod_bigbluebutton_search-{{uniqid}}">
44
            <span class="sr-only">{{$label}}{{#str}} search, core {{/str}}{{/label}}</span>
45
        </label>
46
        <input
47
           type="text"
48
           id="mod_bigbluebutton_search-{{uniqid}}"
49
           data-region="input"
50
           data-action="search"
51
           class="form-control withclear"
52
           placeholder="{{$placeholder}}{{#str}} search, core {{/str}}{{/placeholder}}"
53
           name="search"
54
           value="{{$value}}{{/value}}"
55
           autocomplete="off"
56
        >
57
        <button type="submit" class="btn {{^btnclass}}btn-submit{{/btnclass}} {{ btnclass }} search-icon">
58
            {{#pix}} a/search, core {{/pix}}
59
            <span class="sr-only">{{ searchstring }}</span>
60
        </button>
61
    </div>
62
</div>