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

31 lines
618 B
Twig

{% extends 'form.html.twig' %}
{% block title %}
Camera 📷 CRUD - Film - Edit
{% endblock %}
{% block form %}
<h1>Edit Film</h1>
<div class="small callout">
<ul>
<li>
<a href="{{ path('film_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) }}
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button expanded">Delete</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}