On 3/11/07, Frédéric Roland <[EMAIL PROTECTED]> wrote: > I was discussing about layout of forms using CSS and heard that there > was some tags such as fieldset, label and legend that should allow us to > make the layout of forms without tables. Is there a reason these tags > aren't used to render forms in Django ? Does it is hard to add them ? > (Something like as_label() for example.)
If you have Django print out the entire form's HTML in one go, it will automatically add 'label' elements for each field. It will not (at the moment) add fieldsets and legends. It's also quite easy to output these yourself in a template, and only have Django print the various 'input'/'select'/'textarea' elements, allowing unlimited control over the organization and structure of the form. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---