ajout edit post

This commit is contained in:
Hugo PRADIER
2024-06-07 15:24:29 +02:00
parent be057a316d
commit c806227de2
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}
{% block title %}Edit Post{% endblock %}
{% block body %}
<h1>Edit Post</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="btn btn-primary">Save changes</button>
{{ form_end(form) }}
<a href="{{ path('app_posts') }}" class="btn btn-secondary">Back to posts</a>
{% endblock %}