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")
.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
#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)
.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.