{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template mod_customcert/mobile_report_page The page that lists the custom certificates issued Classes required for JS: * None Data attibutes required for JS: * All data attributes are required Context variables required for this template: * certificate * cmid * showgroups * groups * canmanage * hasissues * issues * currenttimestamp Example context (json): { "certificate": { "id": "1", "course": "2", "name": "A rad certificate name!", "intro": "A certificate" }, "cmid": "25", "showgroups": "true", "groups": [ { "id": "2", "selected": "false", "name": "Group A" } ], "canmanage": "true", "hasissues": "true", "issues": [ { "id": "2", "issueid": "3", "displayname": "Michaelangelo (Mickey)", "fileurl": "http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4", "code": "Xyt78axR", "timecreated": "1528370177" } ], "currenttimestamp": "1528370177" } }} {{=<% %>=}}
<%#showgroups%> {{ 'plugin.mod_customcert.selectagroup' | translate }} <%#groups%> selected<%/selected%>><% name %> <%/groups%> <%/showgroups%>

{{ 'plugin.mod_customcert.modulenameplural' | translate }}

<%#hasissues%> <%#issues%> <% displayname %>
{{ <% timecreated %> | coreToLocaleString }}
<%#canmanage%> <%/canmanage%>
<%/issues%>
<%/hasissues%> <%^hasissues%> {{ 'plugin.mod_customcert.nothingtodisplay' | translate }} <%/hasissues%>