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

113 lines
2.2 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}
Camera 📷 CRUD - Camera - Show
{% endblock %}
{% block form %}
<h2>Camera</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('camera_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">Edit</a>
</li>
</ul>
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button expanded">Delete Camera</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
<table>
<tbody>
<tr>
<th>Id</th>
<td>{{ camera.id }}</td>
</tr>
<tr>
<th>Brand</th>
<td>{{ camera.brand }}</td>
</tr>
<tr>
<th>Mount</th>
<td>{{ camera.mount }}</td>
</tr>
<tr>
<th>Model</th>
<td>{{ camera.model }}</td>
</tr>
<tr>
<th>Is Digital?</th>
<td>
{% if camera.isDigital %}
<span class='small callout success'>Yes</span>
{% else %}
<span class='small callout alert'>No</span>
{% endif %}
</td>
</tr>
<tr>
<th>Crop Factor</th>
<td>{{ camera.cropFactor }}</td>
</tr>
<tr>
<th>Is Working?</th>
<td>
{% if camera.isWorking %}
<span class='small callout success'>Yes</span>
{% else %}
<span class='small callout alert'>No</span>
{% endif %}
</td>
</tr>
<tr>
<th>Notes</th>
<td>{{ camera.notes }}</td>
</tr>
<tr>
<th>Serial</th>
<td>{{ camera.serial }}</td>
</tr>
<tr>
<th>Formerly Owned?</th>
<td>
{% if camera.formerlyOwned %}
<span class='small callout success'>Yes</span>
{% else %}
<span class='small callout alert'>No</span>
{% endif %}
</td>
</tr>
<tr>
<th>Purchase Price</th>
<td>{{ camera.purchasePrice }}</td>
</tr>
<tr>
<th>Battery Type</th>
<td>{{ camera.batteryType }}</td>
</tr>
<tr>
<th>Film Format</th>
<td>{{ camera.filmFormat }}</td>
</tr>
<tr>
<th>Received</th>
<td>{% if camera.received %}Yes{% else %}No{% endif %}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}