{{!
    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/>.
}}
{{!
    @template mod_studentquiz/single_email_notification

    Template for rendering single_email_notification.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * none

    Context variables required for this template:
    * recipientname
    * questionname
    * modulename
    * coursename
    * eventname
    * actorname
    * timestamp
    * questionurl
    * isstudent

    Example context (json):
    {
        "recipientname": "John Doe",
        "questionname": "How many decimals has Pi?",
        "modulename": "StudentQuiz",
        "coursename": "Very hard course",
        "eventname": "approved",
        "actorname": "Nicole Brown",
        "timestamp": "14 May 2021, 4:17 PM",
        "questionurl": "/to/some/where",
        "isstudent": false,
        "courseshortname": "OU101-21J"
    }
}}
<div>
    <p>{{# str }} emailautomationnote, studentquiz {{/ str }}</p><br>
    <p>{{# str }} emailsalutation, studentquiz, {{ recipientname }} {{/ str }}</p>
    <p>
    {{#isstudent}}
        {{# str }} emailsinglebody, studentquiz, {
            "questionname": {{# quote }} {{ questionname }} {{/ quote }},
            "modulename": {{# quote }} {{ modulename }} {{/ quote }},
            "coursename": {{# quote }} {{ coursename }} {{/ quote }},
            "eventname": {{# quote }} {{ eventname }} {{/ quote }},
            "actorname": {{# quote }} {{ actorname }} {{/ quote }},
            "timestamp": {{# quote }} {{ timestamp }} {{/ quote }}
            }
        {{/ str }}
    {{/isstudent}}
    {{^isstudent}}
        {{# str }} emailnoityfyreviewablequestionsinglebody, studentquiz, {
            "questionname": {{# quote }} {{ questionname }} {{/ quote }},
            "modulename": {{# quote }} {{ modulename }} {{/ quote }},
            "courseshortname": {{# quote }} {{ courseshortname }} {{/ quote }},
            "actorname": {{# quote }} {{ actorname }} {{/ quote }},
            "timestamp": {{# quote }} {{ timestamp }} {{/ quote }}
            }
        {{/ str }}
    {{/isstudent}}
    </p>
    <p>{{# str }} emailsinglebody_reviewlink, studentquiz {{/ str }}<a href="{{ questionurl }}">{{ questionurl }}</a>.</p>
</div>
