X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fcourse.pug;h=9de3570d6423c5e37f51d85f1b7bb13c0f73fd19;hb=8a2b3260841fc5c2e0d24758bf94628ac52300d3;hp=aa412e2fc046112d0bc33acbde2dd2c119329477;hpb=71d1ca9c594b64d959c608a2abbff926480abad5;p=qomet.git diff --git a/views/course.pug b/views/course.pug index aa412e2..9de3570 100644 --- a/views/course.pug +++ b/views/course.pug @@ -89,12 +89,13 @@ block content tbody tr.grade(v-for="student in studentList(group)") td {{ student.number }} - td(v-for="(assessment,i) in assessmentArray" @click="togglePresence(student.number,i)") {{ grade(i,student.number) }} + td(v-for="(assessment,i) in assessmentArray" @click="togglePresence(student.number,i)") + | {{ grade(i,student.number) }} .modal-footer .center-align a.modal-action.modal-close.waves-effect.waves-light.btn-flat(href="#!") Close .row(v-show="mode=='view'") - .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3 + .col.s12.m10.offset-m1 if teacher h4.title(@click="toggleDisplay('students')") Students .card(v-show="display=='students'") @@ -105,13 +106,11 @@ block content thead tr th Number - th Forename th Name th Group tbody tr.student(v-for="student in studentList(0)") td {{ student.number }} - td {{ student.forename }} td {{ student.name }} td {{ student.group }} h4.title(@click="toggleDisplay('assessments')") Assessments @@ -119,7 +118,8 @@ block content if teacher .center-align a.on-left.waves-effect.waves-light.btn.modal-trigger(href="#newAssessment") New assessment - input#password(type="password" v-model="monitorPwd" @keyup.enter="setPassword" placeholder="Password" title="Monitoring password") + input#password(type="password" v-model="monitorPwd" @keyup.enter="setPassword" + placeholder="Password" title="Monitoring password") table thead tr @@ -128,7 +128,8 @@ block content th #Questions th Time tbody - tr.assessment(v-for="(assessment,i) in assessmentArray" @click.left="actionAssessment(i)" @contextmenu.prevent="deleteAssessment(assessment)") + tr.assessment(v-for="(assessment,i) in assessmentArray" :class="{idle:!assessment.active}" + @click.left="actionAssessment(i)" @contextmenu.prevent="deleteAssessment(assessment)") td {{ assessment.name }} td {{ assessment.mode }} td {{ assessment.questions.reduce( (a,b) => { return b.active ? a+1 : a; }, 0) }} @@ -149,13 +150,11 @@ block content thead tr th Number - th Forename th Name th Final tbody tr.grade(v-for="student in studentList(group)") td {{ student.number }} - td {{ student.forename }} td {{ student.name }} td grade... //td {{ grades[student.number].final }} @@ -163,7 +162,7 @@ block content td(colspan="4") Stats: range= stdev= mean= if teacher .row(v-show="mode=='edit'") - .col.s12.m10.offset-m1.l8.offset-l2.xl6.offset-xl3 + .col.s12.m10.offset-m1 h4 {{ assessment.name }} .card .center-align