diff --git a/assets/styles/app.css b/assets/styles/app.css index 371b876..dc9815a 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -134,7 +134,11 @@ article { margin-right: auto; max-width: 65ch; - h1 { + h1, .btn { + text-align: center; + } + + a { text-align: center; } } @@ -161,4 +165,8 @@ article { h1 a { text-decoration: none; +} + +.aBlock { + display: block; } \ No newline at end of file diff --git a/src/Form/SectionType.php b/src/Form/SectionType.php index 8adec85..e6094e1 100644 --- a/src/Form/SectionType.php +++ b/src/Form/SectionType.php @@ -7,13 +7,16 @@ use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\CallbackTransformer; +use Symfony\Component\Form\Extension\Core\Type\TextType; class SectionType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options): void { $builder - ->add('titleJson') + ->add('titleJson', TextType::class, [ + 'label_format' => 'Titre' + ]) ; $builder->get('titleJson') diff --git a/templates/section/_form.html.twig b/templates/section/_form.html.twig index 64312d1..8cf889e 100644 --- a/templates/section/_form.html.twig +++ b/templates/section/_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/section/edit.html.twig b/templates/section/edit.html.twig index 4353455..b19e0d3 100644 --- a/templates/section/edit.html.twig +++ b/templates/section/edit.html.twig @@ -3,11 +3,12 @@ {% block title %}Édition de section{% endblock %} {% block main %} -