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

69 lines
2.4 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<h2>Lenses</h2>
<div class="small primary callout">
<ul>
<li>
<a href="{{ path('lens_new') }}">Add a Lens</a>
</li>
</ul>
</div>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Brand</th>
<th>Description</th>
<th>Aperture Range</th>
<th>Focal Range</th>
<th>Serial</th>
<th>Purchase Price</th>
<th>Notes</th>
<th>Mount</th>
<th>Received</th>
<th>Formerly Owned</th>
<th>Front Filter Size</th>
<th>Rear Filter Size</th>
<th>Is Teleconverter?</th>
<th>Design Elements / Groups</th>
<th>Aperture Blades</th>
</tr>
</thead>
<tbody>
{% for lense in lenses %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('lens_edit', { 'id': lense.id }) }}">edit</a>
</li>
</ul>
</td>
<td><a href="{{ path('lens_show', { 'id': lense.id }) }}">{{ lense.id }}</a></td>
<td>{{ lense.brand }}</td>
<td>{{ lense.coatings }} {{ lense.productLine }} {{ lense.model }}</td>
<td>{{ lense.minFStop }} &mdash; {{ lense.maxFStop }}</td>
<td>{{ lense.minFocalLength }} &mdash; {{ lense.maxFocalLength }}</td>
<td>{{ lense.serial }}</td>
<td>${{ lense.purchasePrice }}</td>
<td>{{ lense.notes }}</td>
<td>{{ lense.mount }}</td>
<td>{% if lense.received %}Yes{% else %}No{% endif %}</td>
<td>{% if lense.formerlyOwned %}Yes{% else %}No{% endif %}</td>
<td>{{ lense.frontFilterSize }}</td>
<td>{{ lense.rearFilterSize }}</td>
<td>{% if lense.isTeleconverter %}Yes{% else %}No{% endif %}</td>
<td>{{ lense.designElements }} / {{ lense.designGroups }}</td>
<td>{{ lense.apertureBlades }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}