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

59 lines
1.2 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}FPU{% endblock %}
{% block form %}
<h2>FPU</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('fpu_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('fpu_edit', { 'id': fpu.id }) }}">Edit</a>
</li>
</ul>
<hr />
<form method="post" action="{{ path('fpu_delete', {'id': fpu.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ fpu.id) }}">
<button type="submit" class="alert button expanded">Delete</button>
</form>
</div>
<div class="large primary callout">
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ fpu.id }}</td>
</tr>
<tr>
<th>Series</th>
<td>{{ fpu.series }}</td>
</tr>
<tr>
<th>Model</th>
<td>{{ fpu.model }}</td>
</tr>
<tr>
<th>ClockSpeed</th>
<td>{{ fpu.clockSpeed }}</td>
</tr>
<tr>
<th>Count</th>
<td>{{ fpu.count }}</td>
</tr>
<tr>
<th>Notes</th>
<td>{{ fpu.notes }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}