From 60c163ae9d047fc9fd53daa4de4a91775c80ff23 Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 25 May 2022 17:30:26 +0200 Subject: [PATCH] storedObject: add title in form twig and in activity show --- .../Resources/views/Activity/show.html.twig | 2 +- src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php | 4 +++- .../Resources/views/Form/fields.html.twig | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig index ce4c22304..59ed0c841 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig @@ -152,7 +152,7 @@ {% if entity.documents|length > 0 %} {% else %} diff --git a/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php b/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php index ebe25b9e6..4a61cbebc 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php +++ b/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php @@ -68,7 +68,9 @@ class StoredObjectType extends AbstractType if ($options['has_title']) { $builder - ->add('title', TextType::class); + ->add('title', TextType::class, [ + 'label' => 'Title', + ]); } } diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/Form/fields.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/Form/fields.html.twig index 3ab0ff255..7e49863e0 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/Form/fields.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/Form/fields.html.twig @@ -1,9 +1,9 @@ {% block stored_object_widget %} -
{% endblock %}