X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fmonitor.pug;h=c904f00ee66b26b100ff07d64457c7ff8b23e560;hb=a3080c337cfaca9d600911396cae5a9233d43554;hp=fa9daee2deeacfc67772b81e3fadab639d11951e;hpb=2bada710d28ffe9f45b150e5744b43af83e93d99;p=qomet.git diff --git a/views/monitor.pug b/views/monitor.pug index fa9daee..c904f00 100644 --- a/views/monitor.pug +++ b/views/monitor.pug @@ -1,6 +1,7 @@ extends withQuestions block append stylesheets + link(rel="stylesheet" href="/stylesheets/statements.css") link(rel="stylesheet" href="/stylesheets/monitor.css") block content @@ -15,7 +16,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'") @@ -28,19 +29,17 @@ block content thead tr 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(:class="{blur:!!s.blur,resize:!!s.resize,disconnect:!!s.disco}") {{ 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)" :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 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.