- #stage2(v-show="stage==1")
- .card
- .introduction(v-html="assessment.introduction")
- .card
- statements(:assessment="assessment" :student="student" :stage="stage" :inputs="inputs" @gameover="endAssessment" @warning="warning")
- .card
- .conclusion(v-html="assessment.conclusion")
+ #stage1(v-show="stage==1")
+ button.waves-effect.waves-light.btn(@click="endMonitoring()") Send feedback
+ h4.title(@click="toggleDisplay('answers')") Anwers
+ // TODO: aussi afficher stats, permettre tri par colonnes
+ .card(v-show="display=='answers'")
+ ul.tabs.tabs-fixed-width
+ li.tab
+ a(href="#group0") All
+ li.tab(v-for="group in groupList()")
+ a(:href="groupId(group,'#')") G.{{ group }}
+ 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) }}
+ 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'")
+ .card
+ .introduction(v-html="assessment.introduction")
+ .card
+ statements(:questions="assessment.questions" :answers="answers")
+ .card
+ .conclusion(v-html="assessment.conclusion")