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 block_dash/widget_groups
19
 
20
    Example context (json):
21
    {
22
        "sitefullname": "Moodle - 311",
23
		"courseurl": "https://localhost/moodle/course/view.php?id=2"
24
    }
25
}}
26
 
27
{{#headermenu}}
28
<!--Group heading block -->
29
<div class="heading-block">
30
    <!--Groups Edit block -->
31
    <div class="edit-block">
32
        {{#creategroup}}
33
        <div class="dropdown">
34
            <!--Groups Edit button block -->
35
            <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
36
                <i class="icon fa fa-ellipsis-h fa-fw "></i>
37
            </button>
38
            <!--Groups dropdown block -->
39
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
40
                <a class="dropdown-item create-group" href="javascript::void(0);" > {{#str}} widget:groups:creategroup, block_dash {{/str}} </a>
41
            </div>
42
        </div>
43
        {{/creategroup}}
44
    </div>
45
</div>
46
{{/headermenu}}
47
{{^headermenu}}
48
<div class="block_dash-community-block">
49
    <div class="group-block">
50
        {{{#data.viewgroups}}}
51
        <div class="group-element">
52
            {{#data.groups}}
53
            <div class="list-block">
54
                <div class="left-block">
55
                    <h6>{{{course}}}</h6>
56
                    <h3>{{name}}</h3>
57
                </div>
58
                <div class="right-block">
59
                    <div class="img-element">
60
                        {{#data.viewmembers}}
61
                        {{#members}}
62
                        <div class="img-block">
63
                            <a href="{{{profileurl}}}">
64
                                <img src="{{{profileimage}}}" alt="{{{fullname}}}" title="{{{fullname}}}" role="presentation">
65
                            </a>
66
                        </div>
67
                        {{/members}}
68
                        {{#membercount}}
69
                        <div class="img-block">
70
                            <a href="javascript::void(0);">
71
                                <span class="group-members-count">{{{membercount}}}</span>
72
                            </a>
73
                        </div>
74
                        {{/membercount}}
75
                        {{/data.viewmembers}}
76
                    </div>
77
 
78
                    <div class="edit-block">
79
                        <div class="dropdown">
80
                            <button class="btn btn-secondary dropdown-toggle" type="button" id="group-action-{{id}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
81
                                <i class="icon fa fa-ellipsis-h fa-fw "></i>
82
                            </button>
83
                            <div class="dropdown-menu" aria-labelledby="group-action-{{id}}">
84
                                {{#chaturl}}
85
                                <a class="dropdown-item" href="{{{chaturl}}}"> {{#str}} widget:groups:chat, block_dash {{/str}} </a>
86
                                {{/chaturl}}
87
                                {{#data.adduser}}
88
                                <a class="dropdown-item add-group-users" data-group="{{id}}" href="#"> {{#str}} widget:groups:adduser, block_dash {{/str}} </a>
89
                                {{/data.adduser}}
90
                                {{#data.viewmembers}}
91
                                <a class="dropdown-item group-widget-viewmembers" data-group="{{id}}" href="javascript::void(0);">
92
                                    {{#str}} widget:groups:groupmembers, block_dash {{/str}}
93
                                </a>
94
                                {{/data.viewmembers}}
95
                                {{#data.leavegroup}}
96
                                <a class="dropdown-item group-widget-leavegroup" data-groupname="{{{name}}}" data-group="{{id}}" href="#">
97
                                    {{#str}} widget:groups:leavegroup, block_dash {{/str}}
98
                                </a>
99
                                {{/data.leavegroup}}
100
                            </div>
101
                        </div>
102
                    </div>
103
                </div>
104
                <div class="clearfix"></div>
105
            </div>
106
            {{/data.groups}}
107
            {{^data.groups}}
108
                {{#noresult}} {{{noresult}}} {{/noresult}}
109
            {{/data.groups}}
110
        </div>
111
        {{{/data.viewgroups}}}
112
    </div>
113
</div>
114
{{/headermenu}}