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

40 lines
921 B
Twig
Raw Normal View History

2022-10-13 22:26:33 -04:00
{% extends 'form.html.twig' %}
{% block title %}Brand Category{% endblock %}
{% block form %}
<h2>Brand Category</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('brand-category_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('brand-category_edit', { 'name': brand_category.name }) }}">Edit</a>
</li>
</ul>
<hr/>
<form method="post" action="{{ path('brand-category_delete', {'name': brand_category.name}) }}"
onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ brand_category.name) }}">
<button type="submit" class="alert button expanded">Delete</button>
</form>
</div>
<div class="large primary callout">
<table class="table">
<tbody>
<tr>
<th>Name</th>
<td>{{ brand_category.name }}</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}