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

31 lines
840 B
Twig
Raw Normal View History

2022-10-13 22:26:33 -04:00
{% extends 'form.html.twig' %}
{% block title %}Edit Brand Category{% endblock %}
{% block form %}
<h2>Edit Brand Category</h2>
<div class="small callout">
<ul>
<li>
<a href="{{ path('brand-category_index') }}">Back to the list</a>
</li>
</ul>
</div>
<div class="large primary callout">
{{ form_start(form) }}
{{ form_widget(form) }}
<button
type="submit"
class="success button expanded"
>Update</button>
{{ form_end(form) }}
<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>
{% endblock %}