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

51 lines
1.0 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}Chipset{% endblock %}
{% block form %}
<h2>Chipset</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('chipset_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('chipset_edit', {'id': chipset.id}) }}">Edit</a>
</li>
</ul>
<hr/>
<form method="post" action="{{ path('chipset_delete', {'id': chipset.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ chipset.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>{{ chipset.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ chipset.brand.name }} {{ chipset.name }}</td>
</tr>
<tr>
<th>Parts</th>
<td>{{ chipset.parts }}</td>
</tr>
<tr>
<th>Link</th>
<td>{{ chipset.link }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}