collection-crud/app/Resources/views/lenses/show.html.twig

103 lines
3.0 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'form.html.twig' %}
{% block form %}
<h1>Lens</h1>
<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>
</div>
<div class="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>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>
<div class="callout">
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Lens</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}