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

46 lines
1.1 KiB
Twig
Raw Normal View History

2022-10-13 22:26:33 -04:00
{% extends 'form.html.twig' %}
{% block title %}Brand Categories{% endblock %}
{% block form %}
<h2>Brand Categories</h2>
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('brand-category_new') }}">Add a Brand Category</a>
</li>
</ul>
</div>
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>&nbsp;</th>
<th>Name</th>
</tr>
</thead>
<tbody>
{% for brand_category in brand_categories %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('brand-category_show', {'name': brand_category.name}) }}">View 👁</a>
</li>
<li>
<a href="{{ path('brand-category_edit', {'name': brand_category.name}) }}">Edit <span class="edit-icon">&#9998;</span></a>
</li>
</ul>
</td>
<td>{{ brand_category.name }}</td>
</tr>
{% else %}
<tr>
<td colspan="2">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}