Added shot editing.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#task-view
|
||||
.attract-form
|
||||
margin: 10px
|
||||
padding: 0 10px 10px
|
||||
+container-box
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
a#task-add(href="javascript:task_create('{{ project.url }}');") + Create Shot
|
||||
|
||||
.table
|
||||
.table#shot-list
|
||||
.table-head
|
||||
.table-row
|
||||
.table-cell.shot-thumbnail Thumbnail
|
||||
@@ -21,7 +21,12 @@
|
||||
.table-row
|
||||
.table-cell
|
||||
img(src="http://placehold.it/100x60")
|
||||
.table-cell.shot-name {{ shot.name }}
|
||||
.table-cell.shot-name
|
||||
a(
|
||||
id="shot-link-{{ shot._id }}"
|
||||
href="javascript:shot_open('{{ shot._id }}', '{{ project.url }}');",
|
||||
class="status-{{ shot.properties.status }}")
|
||||
span(class="shot-name-{{ shot._id }}") {{ shot.name }}
|
||||
| {% for task_type in task_types %}
|
||||
.table-cell.task-name
|
||||
| {% for task in tasks_for_shots[shot._id][task_type] %}
|
||||
|
@@ -2,7 +2,8 @@
|
||||
| {% block page_title %}Shot {{ shot.name }}{% endblock %}
|
||||
| {% block body %}
|
||||
#col_main
|
||||
h1 Shot {{ shot.name }}
|
||||
h1 Shot 
|
||||
span(class="shot-name-{{ shot._id }}") {{ shot.name }}
|
||||
#col_right
|
||||
h1 Right
|
||||
| {% include "attract/shots/shot_embed.html" %}
|
||||
| {% endblock %}
|
33
src/templates/attract/shots/view_shot_embed.jade
Normal file
33
src/templates/attract/shots/view_shot_embed.jade
Normal file
@@ -0,0 +1,33 @@
|
||||
.attract-form
|
||||
form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')")
|
||||
.input-transparent-group
|
||||
input.input-transparent.shot-name(
|
||||
name="name",
|
||||
type=text,
|
||||
placeholder='Name',
|
||||
value="{{ shot.name | hide_none }}")
|
||||
|
||||
.input-transparent-group
|
||||
textarea.input-transparent(
|
||||
name="description",
|
||||
type=text,
|
||||
placeholder='Description') {{ shot.description | hide_none }}
|
||||
|
||||
.input-transparent-group
|
||||
label(for="shot-status") Status:
|
||||
select.input-transparent#shot-status(
|
||||
name="status")
|
||||
| {% for status in shot_node_type.dyn_schema.status.allowed %}
|
||||
| <option value="{{ status }}" {% if status == shot.properties.status %}selected{% endif %}>{{ status | undertitle }}</option>
|
||||
| {% endfor %}
|
||||
|
||||
.input-transparent-group
|
||||
textarea.input-transparent(
|
||||
name="notes",
|
||||
type=text,
|
||||
placeholder='Notes') {{ shot.properties.notes | hide_none }}
|
||||
|
||||
.input-group-separator
|
||||
|
||||
.input-transparent-group
|
||||
button.btn.btn-default.btn-block(type=submit) Save Changes
|
@@ -1,5 +1,5 @@
|
||||
#task-view
|
||||
form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')")
|
||||
.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(
|
||||
name="name",
|
||||
|
Reference in New Issue
Block a user