{{! 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_view_activity_page The main page to view the custom certificate activity Classes required for JS: * None Data attibutes required for JS: * All data attributes are required Context variables required for this template: * certificate * cmid * groupselected * showgroups * groups * hasissues * issues * candownload * fileurl * showreport * numissuesinreport * currenttimestamp Example context (json): { "certificate": { "id": "1", "course": "2", "name": "A rad certificate name!", "intro": "A certificate", "requiredtime": "60" }, "cmid": "25", "groupselected": "5", "showgroups": "true", "groups": [ { "id": "2", "selected": "false", "name": "Group A" } ], "hasissues": "true", "issues": [ { "timecreated": "1528370177" } ], "candownload": "true", "fileurl": "http://yoursite.com/mod/customcert/mobile/pluginfile.php?id=4", "showreport": "true", "numissuesinreport": "5", "currenttimestamp": "1528370177" } }} {{=<% %>=}}
<%#showgroups%> {{ 'plugin.mod_customcert.selectagroup' | translate }} <%#groups%> selected<%/selected%>><% name %> <%/groups%> <%/showgroups%> <%#showreport%> {{ 'plugin.mod_customcert.viewcustomcertissues' | translate: {$a: <% numissuesinreport %>} }} <%/showreport%> <%#hasissues%> {{ 'plugin.mod_customcert.receiveddate' | translate }} <%#issues%> {{ <% timecreated %> | coreToLocaleString }} <%/issues%> <%/hasissues%> <%#candownload%> <%/candownload%> <%^candownload%>

{{ 'plugin.mod_customcert.requiredtimenotmet' | translate: {$a: { requiredtime: <% certificate.requiredtime %>} } }}

<%/candownload%>