Hide (only visually) field type if we're in shots view

This commit is contained in:
2016-09-22 21:27:59 +02:00
parent c90f40b645
commit 16d77b4c5c

View File

@@ -1,21 +1,20 @@
.attract-form
form#task_form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')")
.input-transparent-group
input.input-transparent.task-name(
input.input-transparent.item-name(
name="name",
type=text,
type="text",
placeholder='Name',
value="{{ task.name | hide_none }}")
.input-transparent-group
textarea.input-transparent(
name="description",
type=text,
type="text",
placeholder='Description') {{ task.description | hide_none }}
.row
.col-md-6
.input-transparent-group
.input-group-flex
.input-transparent-group.field-type
label#task-task_type Type:
select.input-transparent(name="task_type",aria-describedby="task-task_type")
| {% for task_type in attract_props.task_types.attract_shot %}
@@ -25,7 +24,6 @@
option(value="{{ task.properties.task_type }}",selected).invalid_task {{ task.properties.task_type | undertitle }}
| {% endif %}
.col-md-6
.input-transparent-group
label#task-status Status:
select.input-transparent(
@@ -61,3 +59,7 @@
script.
$("#assignees").select2();
if (ProjectUtils.context() == 'shot'){
$('.field-type').hide();
}