1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
Moodle is free software: you can redistribute it and/or modify
|
|
|
4 |
it under the terms of the GNU General Public License as published by
|
|
|
5 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
6 |
(at your option) any later version.
|
|
|
7 |
Moodle is distributed in the hope that it will be useful,
|
|
|
8 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
9 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
10 |
GNU General Public License for more details.
|
|
|
11 |
You should have received a copy of the GNU General Public License
|
|
|
12 |
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
13 |
}}
|
|
|
14 |
{{!
|
|
|
15 |
@template mod_quiz/attempt_summary_information
|
|
|
16 |
|
|
|
17 |
This template renders summary information about a single quiz attempt.
|
|
|
18 |
|
|
|
19 |
Example context (json):
|
|
|
20 |
{
|
|
|
21 |
"hasitems": true,
|
|
|
22 |
"items": [
|
|
|
23 |
{
|
|
|
24 |
"title": "<img src='https://qa.moodledemo.net/pluginfile.php/27/user/icon/boost/f2?rev=5522' class='userpicture' width='35' height='35' alt='It is me!'>",
|
|
|
25 |
"content": "<a href='https://qa.moodledemo.net/user/view.php?id=4&course=2'>Sam Student</a>"
|
|
|
26 |
},
|
|
|
27 |
{"title": "Status", "content": "Finished"},
|
|
|
28 |
{"title": "Started", "content": "Thursday, 23 November 2023, 9:29 AM"},
|
|
|
29 |
{"title": "Completed", "content": "Thursday, 23 November 2023, 9:32 AM"},
|
|
|
30 |
{"title": "Duration", "content": "3 minutes"},
|
|
|
31 |
{"title": "Grade", "content": "Not yet graded"}
|
|
|
32 |
]
|
|
|
33 |
}
|
|
|
34 |
}}
|
|
|
35 |
{{#hasitems}}
|
|
|
36 |
<table class="generaltable generalbox quizreviewsummary mb-0">
|
|
|
37 |
<tbody>
|
|
|
38 |
{{#items}}
|
|
|
39 |
<tr>
|
|
|
40 |
<th class="cell" scope="row">{{{title}}}</th>
|
|
|
41 |
<td class="cell">{{{content}}}</td>
|
|
|
42 |
</tr>
|
|
|
43 |
{{/items}}
|
|
|
44 |
</tbody>
|
|
|
45 |
</table>
|
|
|
46 |
{{/hasitems}}
|