2014-04-20 12:09:16 +02:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="col-md-9">
|
2014-04-20 22:55:36 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped" id="shots">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Shot Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Duration</th>
|
|
|
|
<th>Status</th>
|
|
|
|
<th>Tasks</th>
|
|
|
|
<th>Notes</th>
|
|
|
|
<th width="8%"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for shot in shots %}
|
|
|
|
<tr id="row_{{shot['id']}}">
|
|
|
|
<td><a href="{{url_for('shots.view', shot_id=shot['id'])}}">{{shot['name']}}</a></td>
|
2015-02-01 17:56:09 +00:00
|
|
|
<td>
|
|
|
|
{% if shot['description'] %}
|
|
|
|
{{shot['description']|truncate(25)}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{shot['duration']}}</td>
|
2015-02-02 17:33:47 +01:00
|
|
|
<td></td>
|
2014-04-20 22:55:36 +02:00
|
|
|
<td></td>
|
2015-02-01 17:56:09 +00:00
|
|
|
<td>
|
|
|
|
{% if shot['notes'] %}
|
|
|
|
{{shot['notes']|truncate(25)}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2014-04-20 22:55:36 +02:00
|
|
|
<td>
|
2015-02-02 20:42:48 +01:00
|
|
|
<a class="btn btn-default btn-xs" href="{{url_for('nodes.edit', node_id=shot['id'])}}"><i class="glyphicon glyphicon-edit"></i> Edit</a>
|
2014-04-20 22:55:36 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th>Shot Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Duration</th>
|
|
|
|
<th>Status</th>
|
|
|
|
<th>Tasks</th>
|
|
|
|
<th>Notes</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2015-02-02 20:42:48 +01:00
|
|
|
<a href="{{url_for('nodes.add', node_type='shot')}}" class="btn btn-default">Add</a>
|
2014-04-20 22:55:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-20 12:09:16 +02:00
|
|
|
</div>
|
2014-04-20 22:55:36 +02:00
|
|
|
{% endblock %}
|