Added begining of XHR way of doing stuff (#3)
This commit is contained in:
@@ -1,26 +1,8 @@
|
||||
extends ../../../templates/base.pug
|
||||
|
||||
block content
|
||||
table.table.table-bordered.table-striped.table-hover
|
||||
thead
|
||||
tr
|
||||
th Course name
|
||||
th Detected type
|
||||
th Count in hours
|
||||
th Count in TD equivalent
|
||||
tbody
|
||||
each course in courses
|
||||
tr
|
||||
td #{course.name}
|
||||
td #{course.type}
|
||||
td #{course.time}
|
||||
td #{course.tdEquivalent}
|
||||
tr.table-active
|
||||
td
|
||||
strong #{total.name}
|
||||
td
|
||||
strong #{total.type}
|
||||
td
|
||||
strong #{total.time}
|
||||
td
|
||||
strong #{total.tdEquivalent}
|
||||
#loading Loading... please wait
|
||||
#result
|
||||
|
||||
block extrajs
|
||||
script(src="/static/js/totalTable.js")
|
||||
|
||||
23
controllers/total/templates/totalTable.pug
Normal file
23
controllers/total/templates/totalTable.pug
Normal file
@@ -0,0 +1,23 @@
|
||||
table.table.table-bordered.table-striped.table-hover
|
||||
thead
|
||||
tr
|
||||
th Course name
|
||||
th Detected type
|
||||
th Count in hours
|
||||
th Count in TD equivalent
|
||||
tbody
|
||||
each course in courses
|
||||
tr
|
||||
td #{course.name}
|
||||
td #{course.type}
|
||||
td #{course.time}
|
||||
td #{course.tdEquivalent}
|
||||
tr.table-active
|
||||
td
|
||||
strong #{total.name}
|
||||
td
|
||||
strong #{total.type}
|
||||
td
|
||||
strong #{total.time}
|
||||
td
|
||||
strong #{total.tdEquivalent}
|
||||
Reference in New Issue
Block a user