Shot list: don't show task creation button when there is no task of that type
This commit is contained in:
@@ -27,9 +27,11 @@
|
|||||||
class="status-{{ task.properties.status }}") {{ task.name }}
|
class="status-{{ task.properties.status }}") {{ task.name }}
|
||||||
br
|
br
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
| {% if not tasks_for_shots[shot._id][task_type] %}
|
||||||
a(
|
a(
|
||||||
href="javascript:task_create('{{ shot._id }}', '{{ project.url }}', '{{ task_type }}');")
|
href="javascript:task_create('{{ shot._id }}', '{{ project.url }}', '{{ task_type }}');")
|
||||||
| + Task
|
| + Task
|
||||||
|
| {% endif %}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user