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 tool_moodlenet/select_page
19
 
20
    This template renders the course selection page for the MoodleNet tool.
21
 
22
    Example context (json):
23
    {
24
        "name": "A cat picture",
25
        "cancellink": "https://moodlesite/my"
26
    }
27
}}
28
<div data-region="moodle-net-select">
29
    <div class="alert alert-primary" role="alert">
30
        {{#str}} notification, tool_moodlenet, {"name": {{#quote}}{{name}}{{/quote}}, "cancellink": {{#quote}}{{cancellink}}{{/quote}}, "type": {{#quote}}{{type}}{{/quote}}  } {{/str}}
31
    </div>
32
    <h3>{{#str}} selectacourse {{/str}}</h3>
33
    <div class="searchbar input-group w-50" role="search">
34
        <label for="searchinput">
35
            <span class="sr-only">{{#str}} searchcourses, tool_moodlenet {{/str}}</span>
36
        </label>
37
        <input type="text"
38
               data-region="search-input"
39
               id="searchinput"
40
               class="form-control form-control-lg searchinput border-right-0 px-3 py-2"
41
               placeholder="{{#str}} search, core {{/str}}"
42
               name="search"
43
               autocomplete="off"
44
        >
45
        <div class="searchbar-append d-flex border border-secondary border-left-0 px-3 py-2">
46
            <div data-region="search-icon">
47
                {{#pix}} a/search, core {{/pix}}
48
            </div>
49
            <div class="clear d-none">
50
                <button class="btn p-0" data-region="clear-icon">
51
                    <span class="d-flex" aria-hidden="true">{{#pix}} e/cancel, core {{/pix}}</span>
52
                    <span class="sr-only">{{#str}} clearsearch, tool_moodlenet {{/str}}</span>
53
                </button>
54
            </div>
55
        </div>
56
    </div>
57
    <div class="my-4" data-region="mnet-courses" aria-live="polite"></div>
58
</div>