87 lines
2.4 KiB
Twig
87 lines
2.4 KiB
Twig
|
{% extends 'form.html.twig' %}
|
||
|
|
||
|
{% block form %}
|
||
|
<h1>Camera</h1>
|
||
|
|
||
|
<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>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="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 %}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>
|
||
|
|
||
|
<div class="callout">
|
||
|
{{ form_start(delete_form) }}
|
||
|
<button type="submit" class="alert button">Delete Camera</button>
|
||
|
{{ form_end(delete_form) }}
|
||
|
</div>
|
||
|
{% endblock %}
|