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

40 lines
1019 B
Twig

{% extends 'base.html.twig' %}
{% block body %}
<h2>Camera Types</h2>
<div class="small primary callout">
<ul>
<li>
<a href="{{ path('camera-type_new') }}">Add a Camera Type</a>
</li>
</ul>
</div>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Type</th>
</tr>
</thead>
<tbody>
{% for cameraType in cameraTypes %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('camera-type_edit', { 'id': cameraType.id }) }}">edit</a>
</li>
</ul>
</td>
<td><a href="{{ path('camera-type_show', { 'id': cameraType.id }) }}">{{ cameraType.id }}</a></td>
<td>{{ cameraType.type }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}