Commit | Line | Data |
---|---|---|
e99c53fb BA |
1 | extends withQuestions |
2 | ||
71d1ca9c | 3 | block append stylesheets |
43828378 | 4 | link(rel="stylesheet" href="/stylesheets/statements.css") |
71d1ca9c | 5 | link(rel="stylesheet" href="/stylesheets/monitor.css") |
e5ec7dea BA |
6 | |
7 | block content | |
71d1ca9c | 8 | .container#monitor |
e5ec7dea | 9 | .row |
2bada710 | 10 | .col.s12.m10.offset-m1 |
e5ec7dea BA |
11 | h4= examName |
12 | #stage0(v-show="stage==0") | |
13 | .card | |
14 | .input-field.inline.on-left | |
15 | label(for="password") Password | |
16 | input#password(type="password" v-model="password" @keyup.enter="startMonitoring()") | |
17 | button.waves-effect.waves-light.btn(@click="startMonitoring()") Send | |
f6648c37 | 18 | #stage1(v-show="stage==1") |
25cb8d53 | 19 | button.waves-effect.waves-light.btn(@click="endMonitoring()" :disabled="!allFinished()") Send feedback |
71d1ca9c BA |
20 | h4.title(@click="toggleDisplay('answers')") Anwers |
21 | // TODO: aussi afficher stats, permettre tri par colonnes | |
22 | .card(v-show="display=='answers'") | |
23 | ul.tabs.tabs-fixed-width | |
24 | li.tab | |
25 | a(href="#group0") All | |
26 | li.tab(v-for="group in groupList()") | |
27 | a(:href="groupId(group,'#')") G.{{ group }} | |
28 | table(:id="groupId(group)" v-for="group in [0].concat(groupList())") | |
29 | thead | |
30 | tr | |
71d1ca9c BA |
31 | th Name |
32 | th(v-for="(q,i) in assessment.questions") Q.{{ (i+1) }} | |
33 | tbody | |
f87ac54a | 34 | tr.assessment(v-for="s in studentList(group)" :class="{absent:!s.present}") |
25cb8d53 | 35 | td(:class="{blur:!!s.blur,resize:!!s.resize,disconnect:!!s.disco}" @click="togglePresence(s)") {{ s.name }} |
71d1ca9c BA |
36 | td(v-for="(q,i) in assessment.questions" :style="{backgroundColor: getColor(s.number,i)}" @click="seeDetails(s.number,i)") |
37 | h4.title(@click="toggleDisplay('assessment')") Assessment | |
38 | div(v-show="display=='assessment'") | |
39 | .card | |
40 | .introduction(v-html="assessment.introduction") | |
41 | .card | |
42 | statements(:questions="assessment.questions" :answers="answers") | |
e99c53fb BA |
43 | |
44 | block append javascripts | |
435371c7 | 45 | script. |
71d1ca9c BA |
46 | const examName = "#{examName}"; |
47 | const courseCode = "#{courseCode}"; | |
48 | const initials = "#{initials}"; | |
435371c7 | 49 | const monitoring = true; |
71d1ca9c | 50 | script(src="/javascripts/utils/libsRefresh.js") |
435371c7 | 51 | script(src="/javascripts/components/statements.js") |
71d1ca9c BA |
52 | script(src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js") |
53 | script(src="/javascripts/utils/sha1.js") | |
e5ec7dea | 54 | script(src="/javascripts/monitor.js") |