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_grades/searchwidget/searchresults
19
 
20
    The wrapper in which our search results will be rendered
21
 
22
    Example context (json):
23
    {
24
        "searchresults": [
25
            {
26
                "id": "1",
27
                "name": "Quiz 1",
28
                "fullname": "Cameron Greeve",
29
                "sendmessage": "http://foo.bar/message/index.php?id=25",
30
                "addcontact": "http://foo.bar/message/index.php?user1=2&user2=14&addcontact=14&sesskey=XXXXX",
31
                "currentuser": "2"
32
            }
33
        ]
34
    }
35
}}
36
<div class="searchresultitemscontainer-wrapper dropdown">
37
    <ul class="searchresultitemscontainer d-flex flex-column mw-100 position-relative py-2 list-group rounded-0" role="none" data-region="search-result-items-container">
38
        {{#searchresults}}
39
            {{>core_grades/searchwidget/searchitem}}
40
        {{/searchresults}}
41
        {{^searchresults}}
42
            <p>{{#str}} resultsfound, core, 0 {{/str}}</p>
43
        {{/searchresults}}
44
    </ul>
45
</div>