3 block append stylesheets
4 link(rel="stylesheet" href="/stylesheets/assessment.css")
6 meta(http-equiv="Refresh" content="0; URL=/enablejs")
9 a#rightButton.btn-floating.btn-large.grey(href=assessment.name + "/monitor")
10 i.material-icons video_label
16 .modal-content {{ warnMsg }}
19 a.modal-action.modal-close.waves-effect.waves-light.btn-flat(href="#!") Ok
21 .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3
23 #stage0(v-show="stage==0")
25 .input-field.inline.on-left
26 label(for="number") Number
27 input#number(type="text" v-model="student.number" @keyup.enter="getStudent()")
28 button.waves-effect.waves-light.btn(@click="getStudent()") Send
29 #stage1(v-show="stage==1")
31 if assessment.mode != "open"
32 .input-field.inline.on-left
33 label(for="forename") Forename
34 input#forename(type="text" v-model="student.forename" disabled)
36 label(for="name") Name
37 input#name(type="text" v-model="student.name" disabled)
39 if assessment.mode != "open"
40 button.waves-effect.waves-light.btn.on-left(@click="cancelStudent") Cancel
41 button.waves-effect.waves-light.btn(@click="startAssessment") Start!
42 #stage0_1_4(v-show="[0,1,4].includes(stage)")
44 .introduction(v-html="assessment.introduction")
45 #stage2_4(v-if="[2,4].includes(stage)")
46 if assessment.time > 0
47 .card(v-show="stage==2")
48 .timer.center {{ countdown }}
50 button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
51 statements(:questions="assessment.questions" :answers="answers")
52 if assessment.display == "all"
53 button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
54 #stage3(v-show="stage==3")
56 .finish Exam completed ☺ ...don't close the window!
57 #stage3_4(v-show="[3,4].includes(stage)")
59 .conclusion(v-html="assessment.conclusion")
61 block append javascripts
63 let assessment = !{JSON.stringify(assessment)};
64 const monitoring = false;
65 script(src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js")
66 script(src="/javascripts/utils/libsRefresh.js")
67 script(src="/javascripts/components/statements.js")
68 script(src="/javascripts/assessment.js")