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

59 lines
1.2 KiB
Twig
Raw Permalink Normal View History

2022-10-25 14:52:58 -04:00
{% extends 'form.html.twig' %}
2022-10-27 11:55:16 -04:00
{% block title %}FPU{% endblock %}
2022-10-25 14:52:58 -04:00
{% block form %}
2022-10-27 11:55:16 -04:00
<h2>FPU</h2>
2022-10-25 14:52:58 -04:00
<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 %}