collection-crud/templates/film/show.html.twig
2018-02-15 09:48:57 -05:00

78 lines
1.4 KiB
Twig

{% extends 'form.html.twig' %}
{% block form %}
<h2>Film</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('film_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('film_edit', { 'id': film.id }) }}">Edit</a>
</li>
</ul>
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Film</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
<table>
<tbody>
<tr>
<th>Id</th>
<td>{{ film.id }}</td>
</tr>
<tr>
<th>Brand</th>
<td>{{ film.brand }}</td>
</tr>
<tr>
<th>Product Line</th>
<td>{{ film.productLine }}</td>
</tr>
<tr>
<th>Film Name</th>
<td>{{ film.filmName }}</td>
</tr>
<tr>
<th>Film Speed</th>
<td>{{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}&deg;</td>
</tr>
<tr>
<th>Film Format</th>
<td>{{ film.filmFormat }}</td>
</tr>
<tr>
<th>Film Base</th>
<td>{{ film.filmBase }}</td>
</tr>
<tr>
<th># of Unused Rolls</th>
<td>{{ film.unusedRolls }}</td>
</tr>
<tr>
<th># of Developed Rolls</th>
<td>{{ film.developedRolls }}</td>
</tr>
<tr>
<th>Chemistry</th>
<td>{{ film.chemistry }}</td>
</tr>
<tr>
<th>Notes</th>
<td>{{ film.notes }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}