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

32 lines
766 B
Twig
Raw Normal View History

2022-10-25 14:52:58 -04:00
{% extends 'form.html.twig' %}
{% block title %}Edit Fpu{% endblock %}
{% block form %}
2022-10-27 11:55:16 -04:00
<h2>Edit FPU</h2>
2022-10-25 14:52:58 -04:00
<div class="small callout">
<ul>
<li>
<a href="{{ path('fpu_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-10-25 14:52:58 -04:00
<button
type="submit"
class="success button expanded"
>Update</button>
2022-10-28 08:46:35 -04:00
{{ form_end(form) }}
2022-10-25 14:52:58 -04:00
<form method="post" action="{{ path('fpu_delete', {'id': fpu.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ fpu.id) }}">
<button type="submit" class="alert button expanded">Delete</button>
</form>
</div>
{% endblock %}