X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fmonitor.pug;h=b3da2d65efa6eb605f71b8c0d8ef5f0aaba0fd73;hb=f87ac54a07e9cc63a28b8eae42fa6ab23ac626d0;hp=891dda230b937209b759843726e67fbbacedb9b1;hpb=b3540dbb5c169db3c7cf49a04e253ab3a6940916;p=qomet.git diff --git a/views/monitor.pug b/views/monitor.pug index 891dda2..b3da2d6 100644 --- a/views/monitor.pug +++ b/views/monitor.pug @@ -6,7 +6,7 @@ block append stylesheets 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 @@ -15,7 +15,7 @@ block content input#password(type="password" v-model="password" @keyup.enter="startMonitoring()") button.waves-effect.waves-light.btn(@click="startMonitoring()") Send #stage1(v-show="stage==1") - button.waves-effect.waves-light.btn(@click="endMonitoring()") Send feedback + button.waves-effect.waves-light.btn(@click="endMonitoring()" :disabled="!allFinished()") Send feedback h4.title(@click="toggleDisplay('answers')") Anwers // TODO: aussi afficher stats, permettre tri par colonnes .card(v-show="display=='answers'") @@ -30,8 +30,8 @@ block content th Name th(v-for="(q,i) in assessment.questions") Q.{{ (i+1) }} tbody - tr.assessment(v-for="s in studentList(group)") - td {{ s.name }} + tr.assessment(v-for="s in studentList(group)" :class="{absent:!s.present}") + td(:class="{blur:!!s.blur,resize:!!s.resize,disconnect:!!s.disco}" @click="togglePresence(s)") {{ 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'") @@ -39,8 +39,6 @@ block content .introduction(v-html="assessment.introduction") .card statements(:questions="assessment.questions" :answers="answers") - .card - .conclusion(v-html="assessment.conclusion") block append javascripts script.