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

70 lines
1.6 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'base.html.twig' %}
{% block title %}
Camera 📷 CRUD - Cameras
{% endblock %}
2017-11-09 11:53:01 -05:00
{% block body %}
2018-02-14 15:08:03 -05:00
<h2>Cameras</h2>
2017-11-09 11:53:01 -05:00
2018-02-14 15:08:03 -05:00
<div class="small callout primary">
<ul>
2017-11-09 11:53:01 -05:00
<li>
2018-02-14 15:08:03 -05:00
<a href="{{ path('camera_new') }}">Add a Camera</a>
2017-11-09 11:53:01 -05:00
</li>
</ul>
2018-02-14 15:08:03 -05:00
</div>
2017-11-09 11:53:01 -05:00
2018-02-14 15:08:03 -05:00
<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>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>
<td>${{ camera.purchasePrice }}</td>
<td>{{ camera.batteryType }}</td>
<td>{{ camera.filmFormat }}</td>
<td>{% if camera.received %}Yes{% else %}No{% endif %}</td>
2017-11-09 11:53:01 -05:00
2018-02-14 15:08:03 -05:00
</tr>
{% endfor %}
</tbody>
</table>
2017-11-09 11:53:01 -05:00
{% endblock %}