Added shot overview with tasks.

javascript links to open or create tasks aren't implemented yet.
This commit is contained in:
2016-09-21 16:35:52 +02:00
parent 4b1a52f26e
commit d97d1183a5
6 changed files with 166 additions and 11 deletions

View File

@@ -3,19 +3,29 @@
| {% block body %}
#col_main
h1 Shots for <em>{{ project.name }}</em>
table
table.table
thead
tr
td Shot name
| {% for task_type in attract_props.task_types.attract_shot %}
td {{ task_type}}
| {% for task_type in task_types %}
td {{ task_type or '- other -' }}
| {% endfor %}
tbody
| {% for shot in shots %}
tr
td {{ shot.name }}
| {% for task_type in attract_props.task_types.attract_shot %}
td tasks of type {{ task_type }}
| {% for task_type in task_types %}
td
| {% for task in tasks_for_shots[shot._id][task_type] %}
a(
href="javascript:task_open('{{ task._id }}');",
class="status-{{ task.properties.status }}") {{ task.name }}
br
| {% endfor %}
a(
href="javascript:create_task('{{ shot._id }}', '{{ task_type }}');")
| Create task
br
| {% endfor %}
| {% endfor %}
#col_right