6 .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3
8 h4.title(@click="toggleDisplay('grading')") Grading
9 // TODO: Allow grading per student, per question or sub-question
10 .card(v-show="display=='grading'")
11 ul.tabs.tabs-fixed-width
14 li.tab(v-for="group in groupList()")
15 a(:href="groupId(group,'#')") G.{{ group }}
16 table(:id="groupId(group)" v-for="group in [0].concat(groupList())")
20 th(v-for="(q,i) in assessment.questions") Q.{{ (i+1) }}
22 tr.assessment(v-for="s in studentList(group)")
24 td(v-for="(q,i) in assessment.questions" :style="{background-color: getColor(number,i)}" @click="seeDetails(number,i)")
25 h4.title(@click="toggleDisplay('assessment')") Assessment
26 div(v-show="display=='assessment'")
28 .introduction(v-html="assessment.introduction")
30 statements(:questions="assessment.questions" :answers:"answers")
32 block append javascripts
34 const examName = "#{examName}";
35 const courseCode = "#{courseName}";
36 const initials = "#{initials}";
37 script(src="/javascripts/components/statements.js")
38 script(src="/javascripts/utils/sha1.js")
39 script(src="/javascripts/grading.js")