update form

This commit is contained in:
bastien ollier
2024-06-07 15:54:49 +02:00
parent 541ec566d1
commit b7a750604a
20 changed files with 582 additions and 57 deletions

View File

@@ -5,11 +5,9 @@
{% block body %}
<h1>Edit Post</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
{{ include('post/_form.html.twig', {'button_label': 'Update'}) }}
<button type="submit" class="btn btn-primary">Save changes</button>
{{ form_end(form) }}
<a href="{{ path('app_post_index') }}">back to list</a>
<a href="{{ path('app_posts') }}" class="btn btn-secondary">Back to posts</a>
{% endblock %}
{{ include('post/_delete_form.html.twig') }}
{% endblock %}