From 5fdbffdd7e946e967ab4f98435e5bac882b26e51 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 18 Apr 2022 15:52:11 +0000 Subject: [PATCH] Added edit markup to testResult partial --- views/partials/testResult.hbs | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/views/partials/testResult.hbs b/views/partials/testResult.hbs index 0bfe371..81971bb 100644 --- a/views/partials/testResult.hbs +++ b/views/partials/testResult.hbs @@ -1,4 +1,4 @@ -
+
{{#eq userType 'account'}}
@@ -28,4 +28,36 @@ {{result.percentage}}%
+ + {{#if edit}} +
+ {{>button style='full' colour='primary' addClasses='resultEdit' content='Edit result'}} + +
+ + +
+
+ {{/if}}
+ +{{#if edit}} + +{{/if}}