Task types are now determined by the page context, not hard-coded to shot task types

This commit is contained in:
2016-11-09 17:01:03 +01:00
parent 65facd8b07
commit 17dd73f474
3 changed files with 16 additions and 4 deletions

View File

@@ -57,10 +57,10 @@
.input-group.field-type
label#task-task_type Type:
select(name="task_type",aria-describedby="task-task_type")
| {% for task_type in attract_props.task_types.attract_shot %}
| {% for task_type in task_types %}
| <option value="{{ task_type }}" {% if task_type == task.properties.task_type %}selected{% endif %}>{{ task_type | undertitle }}</option>
| {% endfor %}
| {% if task.properties.task_type not in attract_props.task_types.attract_shot %}
| {% if task.properties.task_type not in task_types %}
option(value="{{ task.properties.task_type }}",selected).invalid_task {{ task.properties.task_type | undertitle }}
| {% endif %}