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_templates_page
17
{{!
19
 
Línea 18... Línea 20...
18
    Manage learning plan templates template.
20
    Manage learning plan templates template.
19
 
21
 
20
    Classes required for JS:
22
    Classes required for JS:
Línea 28... Línea 30...
28
    * data-action = deletetemplate
30
    * data-action = deletetemplate
Línea 29... Línea 31...
29
 
31
 
30
    Context variables required for this template:
32
    Context variables required for this template:
31
    * templates - array of objects containing id, shortname, visible, canmanage, contextname
33
    * templates - array of objects containing id, shortname, visible, canmanage, contextname
-
 
34
    * navigation - array of strings containing buttons for navigation
-
 
35
 
-
 
36
    Example context (json):
-
 
37
    {
-
 
38
        "templates": {
-
 
39
            "id": 1,
-
 
40
            "shortname": "Template1",
-
 
41
            "visible": true,
-
 
42
            "contextnamenoprefix": "System",
-
 
43
            "cohortscount": 12,
-
 
44
            "planscount": 6,
-
 
45
            "pluginbaseurl": "https://example.com",
-
 
46
            "pagecontextid": 1
-
 
47
        },
-
 
48
        "canmanage": true
32
    * navigation - array of strings containing buttons for navigation
49
    }
33
}}
50
}}
34
<div data-region="managetemplates">
51
<div data-region="managetemplates">
35
<div class="float-left">
52
<div class="float-start">
36
    {{#navigation}}
53
    {{#navigation}}
37
    {{{.}}}
54
    {{{.}}}
38
    {{/navigation}}
55
    {{/navigation}}
39
</div>
56
</div>
Línea 63... Línea 80...
63
                <li>
80
                <li>
64
                    <a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
81
                    <a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
65
                    <ul class="dropdown dropdown-menu">
82
                    <ul class="dropdown dropdown-menu">
66
                        <li class="dropdown-item">
83
                        <li class="dropdown-item">
67
                            <a href="{{pluginbaseurl}}/edittemplate.php?id={{id}}&amp;pagecontextid={{pagecontextid}}&amp;return=templates">
84
                            <a href="{{pluginbaseurl}}/edittemplate.php?id={{id}}&amp;pagecontextid={{pagecontextid}}&amp;return=templates">
68
                                {{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
85
                                {{#pix}}i/settings{{/pix}} {{#str}}edit{{/str}}
69
                            </a>
86
                            </a>
70
                        </li>
87
                        </li>
71
                        <li class="dropdown-item">
88
                        <li class="dropdown-item">
72
                            <a data-action="duplicatetemplate" data-templateid="{{id}}" href="#">
89
                            <a data-action="duplicatetemplate" data-templateid="{{id}}" href="#">
73
                                {{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}
90
                                {{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}