collection-crud/templates/film/index.html.twig

67 lines
1.4 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}
Camera 📷 CRUD - Film
{% endblock %}
{% block body %}
<h2>Film</h2>
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('film_new') }}">Add a Film</a>
</li>
</ul>
</div>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Brand</th>
<th>Product Line</th>
<th>Film Name</th>
<th>Film Alias</th>
<th>Film Speed</th>
<th>Film Format</th>
<th>Film Base</th>
<th>Unused Rolls</th>
<th>Rolls in a Camera</th>
<th>Developed Rolls</th>
<th>Chemistry</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for film in films %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('film_edit', { 'id': film.id }) }}">edit</a>
</li>
</ul>
</td>
<td><a href="{{ path('film_show', { 'id': film.id }) }}">{{ film.id }}</a></td>
<td>{{ film.brand }}</td>
<td>{{ film.productLine }}</td>
<td>{{ film.filmName }}</td>
<td>{{ film.filmAlias }}</td>
<td>{{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}&deg;</td>
<td>{{ film.filmFormat }}</td>
<td>{{ film.filmBase }}</td>
<td>{{ film.unusedRolls }}</td>
<td>{{ film.rollsInCamera }}</td>
<td>{{ film.developedRolls }}</td>
<td>{{ film.chemistry }}</td>
<td>{{ film.notes }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}