projects
/
qomet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Harmonize with web version, better style, fix for Firefox 45.9.0 ESR
[qomet.git]
/
views
/
course.pug
diff --git
a/views/course.pug
b/views/course.pug
index
17bad0d
..
9de3570
100644
(file)
--- 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 }}
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'")
.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'")
if teacher
h4.title(@click="toggleDisplay('students')") Students
.card(v-show="display=='students'")
@@
-105,13
+106,11
@@
block content
thead
tr
th Number
thead
tr
th Number
- th Forename
th Name
th Group
tbody
tr.student(v-for="student in studentList(0)")
td {{ student.number }}
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
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
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
table
thead
tr
@@
-128,7
+128,8
@@
block content
th #Questions
th Time
tbody
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) }}
td {{ assessment.name }}
td {{ assessment.mode }}
td {{ assessment.questions.reduce( (a,b) => { return b.active ? a+1 : a; }, 0) }}
@@
-144,18
+145,16
@@
block content
li.tab
a(href="#group0") All
li.tab(v-for="group in groupList()")
li.tab
a(href="#group0") All
li.tab(v-for="group in groupList()")
- a(:href="groupId(group,'
hash
')") G.{{ group }}
+ a(:href="groupId(group,'
#
')") G.{{ group }}
table.result(:id="groupId(group)" v-for="group in [0].concat(groupList())" @click="showDetails(group)")
thead
tr
th Number
table.result(:id="groupId(group)" v-for="group in [0].concat(groupList())" @click="showDetails(group)")
thead
tr
th Number
- th Forename
th Name
th Final
tbody
tr.grade(v-for="student in studentList(group)")
td {{ student.number }}
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 }}
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'")
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
h4 {{ assessment.name }}
.card
.center-align