collection-crud/templates/previouslyownedcamera/index.html.twig

53 lines
1.6 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<h2>Previously Owned Cameras</h2>
<table class="hover scroll stack">
<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>Purchase Price</th>
<th>Battery Type</th>
<th>Film Format</th>
<th>Received</th>
</tr>
</thead>
<tbody>
{% for previouslyOwnedCamera in previouslyOwnedCameras %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('previously-owned-camera_edit', { 'id': previouslyOwnedCamera.id }) }}">edit</a>
</li>
</ul>
</td>
<td><a href="{{ path('previously-owned-camera_show', { 'id': previouslyOwnedCamera.id }) }}">{{ previouslyOwnedCamera.id }}</a></td>
<td>{{ previouslyOwnedCamera.brand }}</td>
<td>{{ previouslyOwnedCamera.mount }}</td>
<td>{{ previouslyOwnedCamera.model }}</td>
<td>{% if previouslyOwnedCamera.isDigital %}Yes{% else %}No{% endif %}</td>
<td>{{ previouslyOwnedCamera.cropFactor }}</td>
<td>{% if previouslyOwnedCamera.isWorking %}Yes{% else %}No{% endif %}</td>
<td>{{ previouslyOwnedCamera.notes }}</td>
<td>{{ previouslyOwnedCamera.serial }}</td>
<td>${{ previouslyOwnedCamera.purchasePrice }}</td>
<td>{{ previouslyOwnedCamera.batteryType }}</td>
<td>{{ previouslyOwnedCamera.filmFormat }}</td>
<td>{% if previouslyOwnedCamera.received %}Yes{% else %}No{% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}