update form
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user