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

58 lines
1.3 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}FPUs{% endblock %}
{% block body %}
<h2>FPUs</h2>
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('fpu_new') }}">Add an FPU</a>
</li>
</ul>
</div>
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>&nbsp;</th>
<th>Id</th>
<th>Socket</th>
<th>Brand Series</th>
<th>Model</th>
<th>Clock Speed</th>
<th>Count</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for fpu in fpus %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('fpu_show', {'id': fpu.id}) }}">View 👁</a>
</li>
<li>
<a href="{{ path('fpu_edit', {'id': fpu.id}) }}">Edit <span class="edit-icon">&#9998;</span></a>
</li>
</ul>
</td>
<td>{{ fpu.id }}</td>
<td>{{ fpu.socket }}</td>
<td>{{ fpu.brand.name }} {{ fpu.series }}</td>
<td>{{ fpu.model }}</td>
<td>{{ fpu.clockSpeed }} MHz</td>
<td>{{ fpu.count }}</td>
<td>{{ fpu.notes }}</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}