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_forum/forum_subscription_action
19
    Actions bar for the subscribers page UI.
20
    Classes required for JS:
21
    * none
22
    Data attributes required for JS:
23
    * data-region
24
    Context variables required for this template:
25
    * see mod/forum/classes/output/subscription_actionbar.php
26
    Example context (json):
27
    {
28
        "subscriptionoptions": {
29
            "formid": "selectsubscriptions",
30
            "classes": "urlselect float-right",
31
            "disabled": false,
32
            "sesskey": "abcdef",
33
            "action": "http://localhost/course/jumpto.php",
34
            "helpicon": false,
35
            "options": [
36
                {
37
                    "name": "Subscription disabled",
38
                    "value": ""
39
                },
40
                {
41
                    "name": "Optional subscrition",
42
                    "value": "/mod/forum/subscribe.php?id=3&mode=0&sesskey=abc123"
43
                }
44
            ]
45
        },
46
        "viewandmanageselect": {
47
            "formid": "selectviewandmanagesubscribers",
48
            "classes": "urlselect",
49
            "label": "Subscribers",
50
            "disabled": false,
51
            "sesskey": "abcdef",
52
            "action": "http://localhost/course/jumpto.php",
53
            "options": [
54
                {
55
                    "name": "View subscribers",
56
                    "value": "/mod/forum/subscribers.php?id=3&edit=off",
57
                    "selected": true
58
                 },
59
                {
60
                    "name": "Manage subscribers",
61
                    "value": "/mod/forum/subscribers.php?id=3&edit=on",
62
                    "selected": false
63
                }
64
            ]
65
        }
66
    }
67
}}
68
<div class="container-fluid tertiary-navigation">
69
    <div class="row">
70
        {{#viewandmanageselect}}
71
            <div class="navitem">
72
                {{>core/url_select}}
73
            </div>
74
        {{/viewandmanageselect}}
75
        {{#subscriptionoptions}}
76
            <div class="navitem ml-sm-auto">
77
                {{>core/url_select}}
78
            </div>
79
        {{/subscriptionoptions}}
80
    </div>
81
</div>
82
<br>