Task types are now determined by the page context, not hard-coded to shot task types
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user