Added shot overview with tasks.
javascript links to open or create tasks aren't implemented yet.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user