Formating CF Form

This commit is contained in:
Marc Ducobu 2014-11-11 12:53:14 +01:00
parent bd96f36463
commit cac299368a
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ class CustomFieldTitle implements CustomFieldInterface
$builder->add($customField->getSlug(), 'custom_field_title', array( $builder->add($customField->getSlug(), 'custom_field_title', array(
'label' => false, 'label' => false,
'attr' => array( 'attr' => array(
'class' => 'no-label',
'title' => $customField->getName()[$this->requestStack->getCurrentRequest()->getLocale()], 'title' => $customField->getName()[$this->requestStack->getCurrentRequest()->getLocale()],
self::TYPE => $customField->getOptions()[self::TYPE ] self::TYPE => $customField->getOptions()[self::TYPE ]
) )

View File

@ -1,5 +1,5 @@
{% block custom_field_title_widget %} {% block custom_field_title_widget %}
<span class="{{ form.vars.attr.type }}"> <span class="cf-{{ form.vars.attr.type }}">
{{ form.vars.attr.title }} {{ form.vars.attr.title }}
</span> </span>
{% endblock custom_field_title_widget %} {% endblock custom_field_title_widget %}