Added total by course page
This commit is contained in:
@@ -43,4 +43,6 @@ block extracss
|
||||
}
|
||||
|
||||
block extrajs
|
||||
script.
|
||||
window.TABLE_URL = "#{tableUrl}";
|
||||
script(src="/static/js/totalTable.js")
|
||||
|
||||
27
controllers/total/templates/totalTableByCourse.pug
Normal file
27
controllers/total/templates/totalTableByCourse.pug
Normal file
@@ -0,0 +1,27 @@
|
||||
table.table.table-bordered.table-striped.table-hover
|
||||
thead
|
||||
tr
|
||||
th Course name
|
||||
each type in types
|
||||
th #{type}
|
||||
th Total TD equivalent
|
||||
tbody
|
||||
each course in courses
|
||||
tr
|
||||
td #{course.name}
|
||||
each type in types
|
||||
td #{course[type]}
|
||||
td #{course.totalTdEquivalent}
|
||||
tr.table-active
|
||||
td
|
||||
strong #{total.name}
|
||||
each type in types
|
||||
td
|
||||
strong #{total[type]}
|
||||
td
|
||||
strong #{total.totalTdEquivalent}
|
||||
|
||||
p.
|
||||
If you think there is a mistake in this table, feel free to
|
||||
<a href="https://github.com/tforgione/adejs/issues/new">open an issue</a>
|
||||
exaplaining what are the problem so we can fix it. Thanks!
|
||||
Reference in New Issue
Block a user