2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core_h5p/h5plibraries
20 Example context (json):
31 "toggleenabledurl": "http://myserver.cat/h5p/libraries.php?id=26&action=disable"
40 "toggleenabledurl": "http://myserver.cat/h5p/libraries.php?id=37&action=disable"
43 "title": "FontAwesome",
50 "toggleenabledurl": "http://myserver.cat/h5p/libraries.php?id=54&action=enable"
56 <h3 class="mt-3">{{#str}} installedh5p, h5p {{/str}}</h3>
58 <ul class="nav nav-tabs mb-3" id="myTab" role="tablist">
60 <a class="nav-link active" id="contenttypes-tab" data-toggle="tab" href="#contenttypes" role="tab" aria-controls="contenttypes" aria-selected="true">
61 {{#str}} installedcontenttypes, h5p {{/str}}
65 <a class="nav-link" id="libraries-tab" data-toggle="tab" href="#libraries" role="tab" aria-controls="libraries" aria-selected="false">
66 {{#str}} installedcontentlibraries, h5p {{/str}}
70 <div class="tab-content" id="myTabContent">
71 <div class="tab-pane fade show active" id="contenttypes" role="tabpanel" aria-labelledby="contenttypes-tab">
72 <div class="overview px-3 mb-5">
73 <table class="admintable generaltable" id="h5pcontenttypes">
76 <th style="width: 5%">{{#str}}enable, core{{/str}}</th>
77 <th>{{#str}}description, core{{/str}}</th>
78 <th>{{#str}}version, core{{/str}}</th>
79 <th aria-label="{{#str}}actions, core_h5p{{/str}}"></th>
86 <td class="text-center">
88 <a href="{{{toggleenabledurl}}}" aria-label="{{#str}}disable, core{{/str}}">{{#pix}}t/hide, core,{{#str}}disable{{/str}}{{/pix}}</a>
91 <a href="{{{toggleenabledurl}}}" aria-label="{{#str}}enable, core{{/str}}">{{#pix}}t/show, core,{{#str}}enable{{/str}}{{/pix}}</a>
97 class="icon iconsize-big"
101 {{#pix}} b/h5p_library, core {{/pix}}
105 <td>{{{ major_version }}}.{{{ minor_version }}}.{{{ patch_version }}}</td>
108 {{>core/action_menu}}
118 <div class="tab-pane fade" id="libraries" role="tabpanel" aria-labelledby="libraries-tab">
119 <div class="overview px-3 mb-5">
120 <table class="admintable generaltable" id="h5plibraries">
123 <th>{{#str}}description, core{{/str}}</th>
124 <th>{{#str}}version, core{{/str}}</th>
125 <th aria-label="{{#str}}actions, core_h5p{{/str}}"></th>
135 <td>{{{ major_version }}}.{{{ minor_version }}}.{{{ patch_version }}}</td>
138 {{>core/action_menu}}