0

I have got a form with a collection of objects. My problem is that I need to custom the display of the collected objects. For now, I only have the basis template with , and so on. But I want to add some tags like <h3>, <tr><td>... Where can I configure the display of an imbricated form?

hakre
  • 193,403
  • 52
  • 435
  • 836
artragis
  • 3,677
  • 1
  • 18
  • 30

1 Answers1

1

Here is a complete chapter how to customize a form.

Symfony2 Customize form

René Höhle
  • 26,716
  • 22
  • 73
  • 82
  • I'm quite ashamed. I rounded on the doc site for hours searching "Form", "imbricated form", "template form"... but forgot "customize form"... – artragis Apr 10 '12 at 16:37
  • Its not so easy but when you understood the customization its very cool. – René Höhle Apr 10 '12 at 16:41
  • Yep, it is not easy. It makes me hate twig a little more. – artragis Apr 10 '12 at 16:43
  • It is so uneasy that I can't understand how does it work to handle the template of my own item collection. – artragis Apr 10 '12 at 16:47
  • I got more informations here : http://stackoverflow.com/questions/9159542/how-to-customize-data-prototype-in-symfony2-form-collections http://symfony.com/doc/current/cookbook/form/form_collections.html – artragis Apr 11 '12 at 06:42