moodle-mod_htmlcert/templates/email_certificate_text.mustache

45 lines
1.4 KiB
Text
Raw Permalink Normal View History

{{!
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 <http://www.gnu.org/licenses/>.
}}
{{!
2021-11-24 07:29:43 +00:00
@template mod_htmlcert/email_certificate_text
The certificate verification result
Classes required for JS:
* None
Data attibutes required for JS:
* All data attributes are required
Context variables required for this template:
* emailgreeting
* emailbodyplaintext
* emailcertificatelink
* emailcertificatelinktext
Example context (json):
{
"emailgreeting": "Dear Angus MacGyver",
"emailbodyplaintext": "Attached is your certificate 'The basics' for the course 'Survival as an '80s action hero'",
2021-11-24 07:29:43 +00:00
"emailcertificatelink": "http://yoursite.com/mod/htmlcert/view.php?id=4",
"emailcertificatelinktext": "Certificate report"
}
}}
{{{emailgreeting}}}
{{{emailbodyplaintext}}}