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_question/qbank_action_menu
19
 
20
    Question bank tertiary navigtion.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Context variables required for this template:
26
    * see question/classes/output/qbank_actionbar.php
27
 
28
    Example context (json):
29
    {
30
        "questionbankselect": {
31
            "action": "http://localhost/moodle/course/jumpto.php",
32
            "classes": "urlselect",
33
            "formid": "questionbankaction",
34
            "id": "url_select61a85bc543dca7",
35
            "label": "Question bank tertiary navigation",
36
            "options": [{
37
                    "name": "Questions",
38
                    "selected": true,
39
                    "value": "/question/edit.php?courseid=7"
40
                },
41
                {
42
                    "name": "Categories",
43
                    "selected": false,
44
                    "value": "/question/bank/managecategories/category.php?courseid=7"
45
                },
46
                {
47
                    "name": "Import",
48
                    "selected": false,
49
                    "value": "/question/bank/importquestions/import.php?courseid=7"
50
                },
51
                {
52
                    "name": "Export",
53
                    "selected": false,
54
                    "value": "/question/bank/exportquestions/export.php?courseid=7"
55
                }
56
            ]
57
        },
58
        "actionbutton": {
59
            "url": "http://localhost/moodle/question/bank/managecategories/addcategory.php?cmid=71",
60
            "label": "Add category"
61
        }
62
    }
63
}}
64
<div class="container-fluid tertiary-navigation">
65
    <div class="row">
66
        {{#questionbankselect}}
67
            <div class="navitem">
68
                {{>core/url_select}}
69
            </div>
70
        {{/questionbankselect}}
71
        {{#actionbutton}}
72
            <div class="navitem">
73
                <a class="btn btn-primary ml-2" href="{{url}}">{{label}}</a>
74
            </div>
75
        {{/actionbutton}}
76
    </div>
77
</div>