Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 13... Línea 13...
13
 
13
 
14
    You should have received a copy of the GNU General Public License
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/>.
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
16
}}
-
 
17
{{!
-
 
18
    @template tool_lp/manage_competency_frameworks_page
17
{{!
19
 
Línea 18... Línea 20...
18
    Manage competency frameworks template.
20
    Manage competency frameworks template.
19
 
21
 
20
    Classes required for JS:
22
    Classes required for JS:
Línea 30... Línea 32...
30
 
32
 
31
    Context variables required for this template:
33
    Context variables required for this template:
32
    * competencyframeworks - array of objects containing id, shortname, idnumber, visible
34
    * competencyframeworks - array of objects containing id, shortname, idnumber, visible
33
    * canmanage - true if this user has permission to manage the frameworks
35
    * canmanage - true if this user has permission to manage the frameworks
-
 
36
    * navigation - array of strings containing buttons for navigation
-
 
37
 
-
 
38
    Example context (json):
-
 
39
    {
-
 
40
        "competencyframeworks": {
-
 
41
            "id": 1,
-
 
42
            "shortname": "Framework1",
-
 
43
            "idnumber": "FRAME1",
-
 
44
            "visible": true,
-
 
45
            "contextnamenoprefix": "System",
-
 
46
            "competenciescount": 26,
-
 
47
            "pluginbaseurl": "https://example.com",
-
 
48
            "pagecontextid": 1
-
 
49
        },
-
 
50
        "canmanage": true
34
    * navigation - array of strings containing buttons for navigation
51
    }
35
}}
52
}}
36
<div data-region="managecompetencies">
53
<div data-region="managecompetencies">
37
<div class="float-left">
54
<div class="float-start">
38
    {{#navigation}}
55
    {{#navigation}}
39
    {{{.}}}
56
    {{{.}}}
40
    {{/navigation}}
57
    {{/navigation}}
41
</div>
58
</div>
Línea 61... Línea 78...
61
                <li>
78
                <li>
62
                    <a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
79
                    <a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
63
                    <ul class="dropdown dropdown-menu">
80
                    <ul class="dropdown dropdown-menu">
64
                        <li class="dropdown-item">
81
                        <li class="dropdown-item">
65
                            <a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{id}}&amp;pagecontextid={{pagecontextid}}">
82
                            <a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{id}}&amp;pagecontextid={{pagecontextid}}">
66
                                {{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
83
                                {{#pix}}i/settings{{/pix}} {{#str}}edit{{/str}}
67
                            </a>
84
                            </a>
68
                        </li>
85
                        </li>
69
                        <li class="dropdown-item">
86
                        <li class="dropdown-item">
70
                            <a data-action="duplicatecompetencyframework" href="#" data-frameworkid="{{id}}">
87
                            <a data-action="duplicatecompetencyframework" href="#" data-frameworkid="{{id}}">
71
                                {{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}
88
                                {{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}