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

111 lines
2.3 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}
Camera 📷 CRUD - Lens - Show
{% endblock %}
{% block form %}
<h2>Lens</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('lens_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('lens_edit', { 'id': lense.id }) }}">Edit</a>
</li>
</ul>
<hr>
{{ form_start(delete_form) }}
<button type="submit" class="alert button expanded">Delete Lens</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
<table>
<tbody>
<tr>
<th>Id</th>
<td>{{ lense.id }}</td>
</tr>
<tr>
<th>Brand</th>
<td>{{ lense.brand }}</td>
</tr>
<tr>
<th>Coatings</th>
<td>{{ lense.coatings }}</td>
</tr>
<tr>
<th>Product Line</th>
<td>{{ lense.productLine }}</td>
</tr>
<tr>
<th>Model</th>
<td>{{ lense.model }}</td>
</tr>
<tr>
<th>Aperture Range</th>
<td>ƒ {{ lense.minFStop }} &mdash; {{ lense.maxFStop }}</td>
</tr>
<tr>
<th>Focal Range</th>
<td>{{ lense.minFocalLength }} &mdash; {{ lense.maxFocalLength }}mm</td>
</tr>
<tr>
<th>Serial</th>
<td>{{ lense.serial }}</td>
</tr>
<tr>
<th>Purchase Price</th>
<td>{{ lense.purchasePrice }}</td>
</tr>
<tr>
<th>Notes</th>
<td>{{ lense.notes }}</td>
</tr>
<tr>
<th>Mount</th>
<td>{{ lense.mount }}</td>
</tr>
<tr>
<th>Image Size</th>
<td>{{ lense.imageSize }}</td>
</tr>
<tr>
<th>Received</th>
<td>{% if lense.received %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Formerly Owned?</th>
<td>{% if lense.formerlyOwned %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Front Filter Size</th>
<td>{{ lense.frontFilterSize }}mm</td>
</tr>
<tr>
<th>Rear Filter Size</th>
<td>{{ lense.rearFilterSize }}</td>
</tr>
<tr>
<th>Is Teleconverter?</th>
<td>{% if lense.isTeleconverter %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Design Elements / Groups</th>
<td>{{ lense.designElements }} / {{ lense.designGroups }}</td>
</tr>
<tr>
<th>Aperture Blades</th>
<td>{{ lense.apertureBlades }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}