2016-05-18 16:25:00 -04:00
|
|
|
// DNT
|
2016-04-04 14:03:07 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
#level-tasks-view
|
|
|
|
div
|
2016-05-13 18:32:59 -04:00
|
|
|
a(href='/artisans')
|
2016-05-16 14:45:06 -04:00
|
|
|
span.glyphicon.glyphicon-chevron-left
|
|
|
|
span Artisans Home
|
2016-05-13 18:32:59 -04:00
|
|
|
br
|
2016-05-16 14:45:06 -04:00
|
|
|
input.searchInput#nameSearch(placeholder='Filter: Level Name')
|
2016-04-04 14:03:07 -04:00
|
|
|
br
|
2016-05-16 14:45:06 -04:00
|
|
|
input.searchInput#descSearch(placeholder='Filter: Task Description')
|
2016-04-04 14:03:07 -04:00
|
|
|
hr
|
2016-05-16 14:45:06 -04:00
|
|
|
div#levelTable
|
|
|
|
if view.processedLevels
|
|
|
|
table.table.table-striped
|
|
|
|
tr
|
|
|
|
th Level Name
|
|
|
|
th Task List
|
|
|
|
for level in view.processedLevels
|
|
|
|
if view.hasIncompleteTasks(level)
|
|
|
|
+levelRow(level)
|
|
|
|
else
|
|
|
|
div No view.processedLevels
|
2016-04-04 14:03:07 -04:00
|
|
|
|
|
|
|
mixin levelRow(level)
|
|
|
|
tr
|
|
|
|
td.taskOwner
|
|
|
|
a(href= 'level/' + level.slug)= level.name
|
|
|
|
td.tasks
|
2016-05-13 18:32:59 -04:00
|
|
|
table.table-striped.table-hover.tasksTable
|
|
|
|
for task in (level.tasks || [])
|
2016-04-04 14:03:07 -04:00
|
|
|
if !task.complete
|
|
|
|
tr
|
|
|
|
td= task.name
|