0

In Symfony2, I have an own type ProvinceType that is a choice_widget.

I have overridden the form_div_layout.html.twig to make some widgets look like the rest of the site.

But I don't know how to difference between a normal choice_widget (for the general choice selects that come within Symfony2) and my ProvinceType choice widget, which I would like to be a little wider.

Any clue on this?

1 Answer 1

1

Set a specific label attr / class (label_attr) on this field in your FormType and then use css to render it your way, different than other fields

1
  • Your welcome :) You can add help fields and much more this way, all gathered in your FOrmType. Quite powerfull ^^ Aug 11, 2012 at 11:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.