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

64 lines
1.8 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}
Camera 📷 CRUD - Previously Owned Flashes
{% endblock %}
{% block body %}
<h2>Previously Owned Flashes</h2>
<div class="small secondary callout">
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>Actions</th>
<th>Brand</th>
<th>Model</th>
<th>Is Auto Flash?</th>
<th>Is TTL</th>
<th>TTL Type</th>
<th>Is P-TTL</th>
<th>P-TTL Type</th>
<th>Guide Number</th>
<th>Purchase Price</th>
<th>Batteries</th>
<th>Serial</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for previouslyOwnedFlash in previouslyOwnedFlashes %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('previously-owned-flash_edit', { 'id': previouslyOwnedFlash.id }) }}">
Edit
<span class="edit-icon">&#9998;</span>
</a>
</li>
<li>
<a
href="{{ path('previously-owned-flash_show', { 'id': previouslyOwnedFlash.id }) }}">View 👁</a>
</li>
</ul>
</td>
<td>{{ previouslyOwnedFlash.brand }}</td>
<td>{{ previouslyOwnedFlash.model }}</td>
<td>{% if previouslyOwnedFlash.isAutoFlash %}{% else %}&#10007;{% endif %}</td>
<td>{% if previouslyOwnedFlash.isTtl %}{% else %}&#10007;{% endif %}</td>
<td>{{ previouslyOwnedFlash.ttlType }}</td>
<td>{% if previouslyOwnedFlash.isPTtl %}{% else %}&#10007;{% endif %}</td>
<td>{{ previouslyOwnedFlash.pTtlType }}</td>
<td>{{ previouslyOwnedFlash.guideNumber }}</td>
<td>${{ previouslyOwnedFlash.purchasePrice }}</td>
<td>{{ previouslyOwnedFlash.batteries }}</td>
<td>{{ previouslyOwnedFlash.serial }}</td>
<td>{{ previouslyOwnedFlash.notes }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}