From 3a2a649e17189b5553dc8aa1d22238af97e0b627 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Tue, 25 Nov 2014 15:52:51 +0100 Subject: [PATCH] class cf-title and cf-fields for form display parametrisation --- Resources/views/Form/fields.html.twig | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig index 6a7bd3f94..4cdfe4601 100644 --- a/Resources/views/Form/fields.html.twig +++ b/Resources/views/Form/fields.html.twig @@ -1,25 +1,25 @@ {% block form_row %} {% spaceless %}
- {{ form_label(form) }} + {% if attr.class is not defined or ('cf-title' not in attr.class and 'cf-fields' not in attr.class ) %} + {{ form_label(form) }} + {% endif %}