2022-09-29 20:09:31 -04:00
|
|
|
{% extends 'form.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Brand{% endblock %}
|
|
|
|
|
|
|
|
{% block form %}
|
2022-10-07 22:00:14 -04:00
|
|
|
<h2>Brand</h2>
|
2022-09-29 20:09:31 -04:00
|
|
|
|
|
|
|
<div class="callout">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('brand_index') }}">Back to the list</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('brand_edit', { 'id': brand.id }) }}">Edit</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2022-10-07 22:00:14 -04:00
|
|
|
<hr/>
|
2022-09-29 20:09:31 -04:00
|
|
|
|
|
|
|
|
2022-10-07 22:00:14 -04:00
|
|
|
<form method="post" action="{{ path('brand_delete', {'id': brand.id}) }}"
|
|
|
|
onsubmit="return confirm('Are you sure you want to delete this item?');">
|
2022-09-29 20:09:31 -04:00
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ brand.id) }}">
|
|
|
|
<button type="submit" class="alert button expanded">Delete</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="large primary callout">
|
2022-10-07 22:00:14 -04:00
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<td>{{ brand.id }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<td>{{ brand.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Categories</th>
|
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
{% for category in brand.categories %}
|
|
|
|
<li>{{ category }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-09-29 20:09:31 -04:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|