'update'
[qomet.git] / views / monitor.pug
index 339ca47..5875a98 100644 (file)
@@ -1,12 +1,13 @@
 extends withQuestions
 
 block append stylesheets
+       link(rel="stylesheet" href="/stylesheets/statements.css")
        link(rel="stylesheet" href="/stylesheets/monitor.css")
 
 block content
        .container#monitor
                .row
-                       .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3
+                       .col.s12.m10.offset-m1
                                h4= examName
                                #stage0(v-show="stage==0")
                                        .card
@@ -27,22 +28,18 @@ block content
                                                table(:id="groupId(group)" v-for="group in [0].concat(groupList())")
                                                        thead
                                                                tr
-                                                                       th Forename
                                                                        th Name
-                                                                       th(v-for="(q,i) in assessment.questions") Q.{{ (i+1) }}
+                                                                       th(v-for="(q,i) in evaluation.questions") Q.{{ (i+1) }}
                                                        tbody
-                                                               tr.assessment(v-for="s in studentList(group)")
-                                                                       td {{ s.forename }}
-                                                                       td {{ s.name }}
-                                                                       td(v-for="(q,i) in assessment.questions" :style="{backgroundColor: getColor(s.number,i)}" @click="seeDetails(s.number,i)")  
-                                       h4.title(@click="toggleDisplay('assessment')") Assessment
-                                       div(v-show="display=='assessment'")
+                                                               tr.evaluation(v-for="s in studentList(group)")
+                                                                       td(:class="{blur:!!s.blur,resize:!!s.resize,disconnect:!!s.disco}") {{ s.name }}
+                                                                       td(v-for="(q,i) in evaluation.questions" :style="{backgroundColor: getColor(s.number,i)}" @click="seeDetails(s.number,i)")  
+                                       h4.title(@click="toggleDisplay('evaluation')") evaluation
+                                       div(v-show="display=='evaluation'")
                                                .card
-                                                       .introduction(v-html="assessment.introduction")
+                                                       .introduction(v-html="evaluation.introduction")
                                                .card
-                                                       statements(:questions="assessment.questions" :answers="answers")
-                                               .card
-                                                       .conclusion(v-html="assessment.conclusion")
+                                                       statements(:questions="evaluation.questions" :answers="answers")
 
 block append javascripts
        script.