61 lines
1.7 KiB
Twig
61 lines
1.7 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}
|
|
Camera 📷 CRUD - Previously Owned Cameras
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<h2>Previously Owned Cameras</h2>
|
|
|
|
<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">✎</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 %}✗{% endif %}</td>
|
|
<td>{{ previouslyOwnedCamera.cropFactor }}</td>
|
|
<td class="text-center">{% if previouslyOwnedCamera.isWorking %}✔{% else %}✗{% 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>
|
|
{% endblock %}
|