Hi, I'm sorry for replying so late to this thread, I've been on
vacation.

On 12 Jul, 08:28, Bernhard Schussek <bschus...@gmail.com> wrote:
> 2010/7/11 Tarjei <tar...@scanmine.com>:
>
> > 8. Forms
> > One thing I see the form framework has addressed is grouping of
> > fields. What I still miss is simple widgets for adding html around a
> > set of elements or just at a point in the form.
>
> The purpose of the form framework is not to generate the HTML for the
> whole form, but just for single fields. You write the HTML in your
> template.

Yes, but there is a space between using the framework to render the
fields in one go (i.e  $form->render() ) and rendering each field
separately using $form['fieldName]->render(). Having the ability to
inject html stubs between fields makes it possible to keep the
template simple and keep the whole form setup in one file - the one
creating the file.

As an example I've been working on a project with a fairly complex
form, in reality it is one master form with 4 embedded forms and ca 20
fields backed by a doctrine model. On top of this the form is a
multipage wizard. If I had been able to insert some HTML snippets into
the form instead of expanding it into "designer mode" it would have
saved me a lot of time as my clients request variations of the form as
well as move fields back and forth.

I guess I'll just create my own HTMLField widgets and get on with it,
but IMHO this would be a very simple but useful feature to have in the
framework.

Kind regards
Tarjei Huse

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to