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

91 lines
2.4 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'form.html.twig' %}
{% block form %}
2017-11-10 15:50:05 -05:00
<h2>Camera</h2>
2017-11-09 11:53:01 -05:00
2017-11-10 15:50:05 -05:00
<div class="callout">
2017-11-09 11:53:01 -05:00
<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>
2017-11-10 15:50:05 -05:00
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Camera</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
2017-11-09 11:53:01 -05:00
<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 %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Crop Factor</th>
<td>{{ camera.cropFactor }}</td>
</tr>
<tr>
<th>Is Working?</th>
<td>{% if camera.isWorking %}Yes{% else %}No{% 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 %}Yes{% else %}No{% 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>
2017-11-10 15:50:05 -05:00
2017-11-09 11:53:01 -05:00
{% endblock %}