2017-11-09 11:53:01 -05:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
2017-11-10 15:50:05 -05:00
|
|
|
<h2>Cameras</h2>
|
2017-11-09 11:53:01 -05:00
|
|
|
|
2017-11-10 15:50:05 -05:00
|
|
|
<div class="small callout primary">
|
2017-11-09 11:53:01 -05:00
|
|
|
<ul>
|
|
|
|
<li>
|
2017-11-22 13:49:31 -05:00
|
|
|
<a href="{{ path('camera_new') }}">Add a Camera</a>
|
2017-11-09 11:53:01 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2017-11-10 15:50:05 -05:00
|
|
|
<table class="hover scroll stack">
|
2017-11-09 11:53:01 -05:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Actions</th>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Brand</th>
|
|
|
|
<th>Mount</th>
|
|
|
|
<th>Model</th>
|
|
|
|
<th>Is Digital?</th>
|
|
|
|
<th>Crop Factor</th>
|
|
|
|
<th>Is Working?</th>
|
|
|
|
<th>Notes</th>
|
|
|
|
<th>Serial</th>
|
|
|
|
<th>Formerly Owned?</th>
|
|
|
|
<th>Purchase Price</th>
|
|
|
|
<th>Battery Type</th>
|
|
|
|
<th>Film Format</th>
|
|
|
|
<th>Received</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for camera in cameras %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">edit</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
<td><a href="{{ path('camera_show', { 'id': camera.id }) }}">{{ camera.id }}</a></td>
|
|
|
|
<td>{{ camera.brand }}</td>
|
|
|
|
<td>{{ camera.mount }}</td>
|
|
|
|
<td>{{ camera.model }}</td>
|
|
|
|
<td>{% if camera.isDigital %}Yes{% else %}No{% endif %}</td>
|
|
|
|
<td>{{ camera.cropFactor }}</td>
|
|
|
|
<td>{% if camera.isWorking %}Yes{% else %}No{% endif %}</td>
|
|
|
|
<td>{{ camera.notes }}</td>
|
|
|
|
<td>{{ camera.serial }}</td>
|
|
|
|
<td>{% if camera.formerlyOwned %}Yes{% else %}No{% endif %}</td>
|
2017-11-10 15:50:05 -05:00
|
|
|
<td>${{ camera.purchasePrice }}</td>
|
2017-11-09 11:53:01 -05:00
|
|
|
<td>{{ camera.batteryType }}</td>
|
|
|
|
<td>{{ camera.filmFormat }}</td>
|
|
|
|
<td>{% if camera.received %}Yes{% else %}No{% endif %}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|