This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Feature requests » form framework - option to generate input inside label tag
form framework - option to generate input inside label tag [message #79314] Tue, 02 June 2009 23:57 Go to next message
daemon  is currently offline daemon
Messages: 8
Registered: February 2009
Location: Amsterdam, the Netherland...
Junior Member
I miss the option of rendering an input directly inside a label.

example:
<label>email: <input type="text" name="form[email]" /></label>


Re: form framework - option to generate input inside label tag [message #79322 is a reply to message #79314 ] Wed, 03 June 2009 08:45 Go to previous message
joshiausdemwald  is currently offline joshiausdemwald
Messages: 14
Registered: May 2009
Location: Germany, NRW, near Cologn...
Junior Member
Though this would be valid html (i think, you can prove this by looking at the dtd/schema you're using), it is semantically incorrect (Note that the <input> would be a label reference on itself at the same time) If you really want to achive such a structure, i think it will work fine if you'd write plain html and fill the lable's @for with your form's widget ids.
Previous Topic:Admin generator displaying trees
Next Topic:symfony 2.0: new schema for i18n - similar i18nTable
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software