X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fassessment.pug;h=531354dc998b4b37b80ad4d7a96076600b098e8d;hb=43828378be054cf3604b753e8d9ab24af911188f;hp=26221d8562780392d11693662dcf38d770e76d08;hpb=8d386418c699f0aef2b0ba0eeed984885f50ac40;p=qomet.git diff --git a/views/assessment.pug b/views/assessment.pug index 26221d8..531354d 100644 --- a/views/assessment.pug +++ b/views/assessment.pug @@ -1,6 +1,7 @@ extends withQuestions block append stylesheets + link(rel="stylesheet" href="/stylesheets/statements.css") link(rel="stylesheet" href="/stylesheets/assessment.css") noscript meta(http-equiv="Refresh" content="0; URL=/enablejs") @@ -18,7 +19,7 @@ block content .center-align a.modal-action.modal-close.waves-effect.waves-light.btn-flat(href="#!") Ok .row - .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3 + .col.s12.m10.offset-m1 h4= assessment.name #stage0(v-show="stage==0") .card @@ -29,9 +30,6 @@ block content #stage1(v-show="stage==1") .card if assessment.mode != "open" - .input-field.inline.on-left - label(for="forename") Forename - input#forename(type="text" v-model="student.forename" disabled) .input-field.inline label(for="name") Name input#name(type="text" v-model="student.name" disabled) @@ -44,17 +42,16 @@ block content .introduction(v-html="assessment.introduction") #stage2_4(v-if="[2,4].includes(stage)") if assessment.time > 0 - .card(v-if="stage==2") + .card(v-show="stage==2") .timer.center {{ countdown }} .card - button#sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send + button.sendAnswer.waves-effect.waves-light.btn(v-show="stage==2" @click="sendAnswer") Send statements(:questions="assessment.questions" :answers="answers") + if assessment.display == "all" + button.sendAnswer.waves-effect.waves-light.btn(v-show="stage==2" @click="sendAnswer") Send #stage3(v-show="stage==3") .card .finish Exam completed ☺ ...don't close the window! - #stage3_4(v-show="[3,4].includes(stage)") - .card - .conclusion(v-html="assessment.conclusion") block append javascripts script.