From f1b57ebf40a6d3a072ce14cad0f247ace7a42cb3 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 16 Oct 2025 09:23:23 +0200 Subject: [PATCH] form styling (edit chapter) --- templates/chapter/_form.html.twig | 2 +- templates/chapter/edit.html.twig | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/chapter/_form.html.twig b/templates/chapter/_form.html.twig index 64312d1..c656365 100644 --- a/templates/chapter/_form.html.twig +++ b/templates/chapter/_form.html.twig @@ -1,4 +1,4 @@ -{{ form_start(form) }} +{{ form_start(form, {'attr' : {'class' : 'centerForm'}}) }} {{ form_widget(form) }} {{ form_end(form) }} diff --git a/templates/chapter/edit.html.twig b/templates/chapter/edit.html.twig index ce2aaeb..c4d3fe1 100644 --- a/templates/chapter/edit.html.twig +++ b/templates/chapter/edit.html.twig @@ -3,11 +3,13 @@ {% block title %}Éditer Chapitre{% endblock %} {% block main %} +

Éditer Chapitre

- {{ include('chapter/_form.html.twig', {'button_label': 'Modifier'}) }} + {{ include('chapter/_form.html.twig', {'button_label': 'Valider'}) }} + + Ajouter page + Retour - Retour à la liste - - {{ include('chapter/_delete_form.html.twig') }} +
{% endblock %}