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_questionnaire/navbaralpha
19
 
20
    Template which defines a questionnaire all responses navigation bar for the report page.
21
 
22
    Classes required for JS:
23
    * /mod/questionnaire/module.js
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Context variables required for this template:
29
    * firstrespondent - object: "url" and "title" strings for first respondent link.
30
    * previous - object: "url" and "title" strings for previous link.
31
    * respnumber - object: Current positio ("currpos") and "total" number of responses.
32
    * next - object: "url" and "title" strings for next link.
33
    * lastrespondent - object: "url" and "title" strings for last respondent link.
34
    * listlink - string: Url of the link back to the response list.
35
    * printaction - string: HTML to launch the print function.
36
 
37
    Example context (json):
38
    {
39
        "firstrespondent": {
40
            "url": "http://somelink.com",
41
            "title": "Link title"
42
        },
43
        "previous": {
44
            "url": "http://somelink.com",
45
            "title": "Link title"
46
        },
47
        "respnumber": {
48
            "currpos": 1,
49
            "total": 22
50
        },
51
        "next": {
52
            "url": "http://somelink.com",
53
            "title": "Link title"
54
        },
55
        "lastrespondent": {
56
            "url": "http://somelink.com",
57
            "title": "Link title"
58
        },
59
        "listlink": "http://somelink.com",
60
        "printaction": "<div>HTML of the printaction.</div>"
61
    }
62
    }}
63
<div class="box respondentsnavbar">
64
    {{#firstrespondent}}<b>&lt;&lt;</b> <a href="{{url}}" title="{{title}}">{{# str }}firstrespondent, mod_questionnaire{{/ str }}</a> |{{/firstrespondent}}
65
    {{#previous}}<b>&lt;</b> <a href="{{url}}" title="{{title}}">{{# str }}previous, moodle{{/ str }}</a> | {{/previous}}
66
    {{#respnumber}}<b>{{currpos}} / {{total}}</b>{{/respnumber}}
67
    {{#next}} | <a href="{{url}}" title="{{title}}">{{# str}}next, moodle{{/ str }}</a> <b>&gt;</b>{{/next}}
68
    {{#lastrespondent}} | <a href="{{url}}" title="{{title}}">{{# str }}lastrespondent, mod_questionnaire{{/ str }}</a> <b>&gt;&gt;</b>
69
    {{/lastrespondent}}
70
    <br /><b>&lt;&lt;&lt; <a href="{{listlink}}">{{# str }}viewbyresponse, mod_questionnaire{{/ str }}</a></b> | {{{printaction}}}
71
</div>