2022-09-29 20:09:31 -04:00
|
|
|
{% extends 'form.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Brands - Edit{% endblock %}
|
|
|
|
|
|
|
|
{% block form %}
|
2022-10-27 11:55:16 -04:00
|
|
|
<h2>Edit Brand</h2>
|
2022-09-29 20:09:31 -04:00
|
|
|
|
|
|
|
<div class="small callout">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('brand_index') }}">Back to the list</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="large primary callout">
|
2022-10-28 08:46:35 -04:00
|
|
|
{{ form_start(form) }}
|
|
|
|
{{ form_widget(form) }}
|
2022-09-29 20:09:31 -04:00
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
class="success button expanded"
|
|
|
|
>Update</button>
|
2022-10-28 08:46:35 -04:00
|
|
|
{{ form_end(form) }}
|
2022-09-29 20:09:31 -04:00
|
|
|
|
2022-10-27 11:55:16 -04:00
|
|
|
|
2022-10-28 08:46:35 -04:00
|
|
|
<form method="post" action="{{ path('brand_delete', {'id': brand.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ brand.id) }}">
|
2022-09-29 20:09:31 -04:00
|
|
|
<button type="submit" class="alert button expanded">Delete</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|