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

56 lines
989 B
Twig
Raw Permalink Normal View History

2022-11-17 15:32:57 -05:00
{% extends 'base.html.twig' %}
{% block title %}Chipset{% endblock %}
{% block body %}
<h2>Chipset</h2>
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('chipset_new') }}">Add Chipset</a>
</li>
</ul>
</div>
<table class="table">
<thead>
<tr>
<th>&nbsp;</th>
<th>Id</th>
<th>Name</th>
<th>Parts</th>
<th>Link</th>
</tr>
</thead>
<tbody>
{% for chipset in chipsets %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('chipset_show', {'id': chipset.id}) }}">
View 👁
</a>
</li>
<li>
<a href="{{ path('chipset_edit', {'id': chipset.id}) }}">
Edit <span class="edit-icon">&#9998;</span>
</a>
</li>
</ul>
</td>
<td>{{ chipset.id }}</td>
<td>{{ chipset.brand.name }} {{ chipset.name }}</td>
2022-11-17 15:32:57 -05:00
<td>{{ chipset.parts }}</td>
<td>{{ chipset.link }}</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}