From a32a8062f8569b4c0df0bad4e66ff0b8c96c4425 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 6 Mar 2022 20:42:22 +0000 Subject: [PATCH] Add test page view --- views/test.hbs | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 views/test.hbs diff --git a/views/test.hbs b/views/test.hbs new file mode 100644 index 0000000..888dc1d --- /dev/null +++ b/views/test.hbs @@ -0,0 +1,74 @@ +
+
+
+

Test Overview - {{ testName }}

+
+ {{#with class}} +
Class: {{name}}
+ {{/with}} +
+ Subject: {{subject}} +
+
+ Maximum mark: {{maxMark}} +
+
+
+
+
+
+

Result

+
+ {{#if testResults.length}} + {{#each testResults as |result|}} +
+
+
+ Submitted by: {{result.author}} +
+
+ Submitted at: {{result.time}} +
+
+
+
+ {{result.grade}} +
+
+ {{result.mark}} + --- + {{../maxMark}} +
+
+ = +
+
+ {{result.percentage}}% +
+
+
+ {{/each}} + {{else}} + Your test result has not been submitted yet + {{/if}} +
+
+
+
+
+
+

Statistics and Reports

+ {{> button style='full' colour='primary' to=reportsLink content='View All'}} +
+
+ {{#each stats}} + {{> adminStat value=value text=text }} + {{/each}} +
+
+ {{> graph }} + {{> graph }} +
+
+
+