Files
attract/src/templates/attract/shots/view_shot_embed.jade

51 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-09-22 15:29:18 +02:00
.attract-form
span.shot_id(title="Shot ID") {{ shot._id }}
2016-09-22 15:29:18 +02:00
form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')")
input(type='hidden',name='_etag',value='{{ shot._etag }}')
2016-09-22 15:29:18 +02:00
.input-transparent-group
2016-09-22 21:27:31 +02:00
input.input-transparent.item-name(
2016-09-22 15:29:18 +02:00
name="name",
2016-09-23 16:24:30 +02:00
type="text",
2016-09-22 15:29:18 +02:00
placeholder='Name',
value="{{ shot.name | hide_none }}")
2016-09-23 18:07:11 +02:00
input.copy-to-clipboard.btn.item-id(
name="Copy to Clipboard",
type="text",
title="{{ shot._id }}",
value="{{ shot._id }}")
.copy-to-clipboard-icon
i.pi-clipboard-copy
2016-09-22 15:29:18 +02:00
.input-transparent-group
textarea.input-transparent(
name="description",
2016-09-23 16:24:30 +02:00
type="text",
2016-09-22 15:29:18 +02:00
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",
2016-09-23 16:24:30 +02:00
type="text",
2016-09-22 15:29:18 +02:00
placeholder='Notes') {{ shot.properties.notes | hide_none }}
.input-group-separator
.input-transparent-group
| {% if 'PUT' in shot.allowed_methods %}
2016-09-23 18:07:20 +02:00
button.btn.btn-default.btn-block(type=submit)
i.pi-check
| Save Changes
| {% endif %}
#task-view-feed
| Updated {{ shot._updated | pretty_date }}
pre.
{{ shot.to_dict() | pprint }}