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/reportpage
19
 
20
    Template which defines a questionnaire completion 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
    * tabsarea - string: HTML of the tabs management area.
30
    * notifications - string: HTML of any notifications loaded.
31
    * myheaders - string: HTML of the page header.
32
    * navigationbar - string: HTML of the response navigation controls.
33
    * respondentinfo - string: HTML of any specific response/respondent information.
34
    * title - string: Text title of the questionnaire.
35
    * printblank - string: HTML of optional print blank questionnaire control.
36
    * subtitle - string: Optional text subtitle.
37
    * addinfo - string: Optional HTML additional information.
38
    * feedbackcharts - string: HTML of any chart displays.
39
    * feedbackscores - string: HTML of any feedback scores.
40
    * feedbackmessages - string: HTML of any feedback messages.
41
    * feedbacknotes - string: HTML of any feedback notes.
42
    * responses - array: Array of responses HTML.
43
    * bottomnavigationbar - string: HTML of the bottom response navigation controls.
44
 
45
    Example context (json):
46
    {
47
        "tabsarea": "<div>HTML of the tabs area.</div>",
48
        "notifications": "<div>Notification one</div>",
49
        "myheaders": "HTML of the page header.",
50
        "navigationbar": "<div>HTML of the navigation bar.</div>",
51
        "respondentinfo": "<div>This is respondent information HTML</div>",
52
        "title": "Test Questionnaire HTML",
53
        "subtitle": "This is a subtitle HTML",
54
        "addinfo": "<div>This is additional information HTML.</div>",
55
        "feedbackcharts": "<div>Feedback charts HTML.</div>",
56
        "feedbackscores": "<div>Feedback scores HTML.</div>",
57
        "feedbackmessages": "<div>Feedback messages HTML.</div>",
58
        "feedbacknotes": "<div>Feedback notes HTML.</div>",
59
        "responses": [
60
            "Response 1 HTML",
61
            "Response 2 HTML"
62
        ],
63
        "bottomnavigationbar": "Navigation bar HTML"
64
    }
65
    }}
66
<div class="mod_questionnaire_reportpage generalbox">
67
    {{#tabsarea}}{{{tabsarea}}}{{/tabsarea}}
68
    {{#notifications}}{{{notifications}}}{{/notifications}}
69
    <div class="box generalbox">
70
        {{#myheaders}}<h2>{{{.}}}</h2>{{/myheaders}}
71
        {{#navigationbar}}<div class="box respondentsnavbar">{{{.}}}</div>{{/navigationbar}}
72
        {{{respondentinfo}}}
73
        {{#title}}<h3 class="surveyTitle">{{{.}}}</h3>{{{printblank}}}{{/title}}
74
        {{#subtitle}}<h4 class="surveySubTitle">{{{.}}}</h4>{{/subtitle}}
75
        {{#addinfo}}<div class="addInfo">{{{.}}}</div>{{/addinfo}}
76
        {{#feedbackcharts}}{{{.}}}{{/feedbackcharts}}
77
        {{#feedbackscores}}{{{.}}}{{/feedbackscores}}
78
        {{#feedbackmessages}}
79
        <h3>{{# str }} feedbackreport, mod_questionnaire {{/ str }}</h3>
80
        {{{.}}}
81
        {{/feedbackmessages}}
82
        {{#feedbacknotes}}{{{.}}}{{/feedbacknotes}}
83
        {{#responses}}{{{.}}}{{/responses}}
84
        {{#bottomnavigationbar}}<div class="box respondentsnavbar">{{{.}}}</div>{{/bottomnavigationbar}}
85
    </div>
86
</div>