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

61 lines
1.7 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'base.html.twig' %}
{% block title %}
Camera 📷 CRUD - Previously Owned Cameras
{% endblock %}
2017-11-09 11:53:01 -05:00
{% block body %}
2018-02-14 15:08:03 -05:00
<h2>Previously Owned Cameras</h2>
2017-11-09 11:53:01 -05:00
2018-07-18 11:35:27 -04:00
<div class="small secondary callout">
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>Actions</th>
<th>Brand</th>
<th>Mount</th>
<th>Model</th>
<th>Digital?</th>
<th>Crop Factor</th>
<th>Working?</th>
<th>Serial</th>
<th>Purchase Price</th>
<th>Battery Type</th>
<th>Film Format</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for previouslyOwnedCamera in previouslyOwnedCameras %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('previously-owned-camera_edit', { 'id': previouslyOwnedCamera.id }) }}">
Edit
<span class="edit-icon">&#9998;</span>
</a>
</li>
<li>
<a href="{{ path('previously-owned-camera_show', { 'id': previouslyOwnedCamera.id }) }}">View 👁</a>
</li>
</ul>
</td>
<td>{{ previouslyOwnedCamera.brand }}</td>
<td>{{ previouslyOwnedCamera.mount }}</td>
<td>{{ previouslyOwnedCamera.model }}</td>
<td class="text-center">{% if previouslyOwnedCamera.isDigital %}{% else %}&#10007;{% endif %}</td>
<td>{{ previouslyOwnedCamera.cropFactor }}</td>
<td class="text-center">{% if previouslyOwnedCamera.isWorking %}{% else %}&#10007;{% endif %}</td>
<td>{{ previouslyOwnedCamera.serial }}</td>
<td>${{ previouslyOwnedCamera.purchasePrice }}</td>
<td>{{ previouslyOwnedCamera.batteryType }}</td>
<td>{{ previouslyOwnedCamera.filmFormat }}</td>
<td>{{ previouslyOwnedCamera.notes }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2017-11-09 11:53:01 -05:00
{% endblock %}