Jason Huck Re: Some personal adjusting I ve made to the form type
May 07, 2008; 09:55
Jason Huck
Re: Some personal adjusting I ve made to the form type
I'd suggest using <fieldset> and <legend> to group and label sections of a form, for proper semantic markup.
- jason
On Wed, May 7, 2008 at 9:47 AM, Jolle Carlestam <jolle@carlestam.com> wrote: > Hi! > > In case anyone's interested. I added a way to insert dividers into a form > object. Needed for a solution where I use Knop to build dynamic forms for > registration. Using the divider an admin can create divisions within the > form to guide the user filling it in. > > Here's the code snippets I changed in the form type: > > This: > // config vars > local: 'validfieldtypes' = (map: 'text', 'password', 'checkbox', > 'radio', 'textarea', 'select', 'file', 'search', > 'submit', 'reset', 'image', 'hidden'), > 'exceptionfieldtypes' = (map: 'file', 'submit', 'reset', > 'image', 'addbutton', 'savebutton', 'deletebutton', 'cancelbutton'); > > is changed to this: > // config vars > local: 'validfieldtypes' = (map: 'text', 'password', 'checkbox', > 'radio', 'textarea', 'select', 'file', 'search', 'divider', > 'submit', 'reset', 'image', 'hidden'), > 'exceptionfieldtypes' = (map: 'file', 'submit', 'reset', > 'image','divider', 'addbutton', 'savebutton', 'deletebutton', > 'cancelbutton'); > > And this: > #renderfield +> '</select>\n'; > case: 'submit'; > #renderfield += '<input > type="submit"' > > is changed to this: > #renderfield +> '</select>\n'; > case: 'divider'; > iterate:#options, > local:'options_temp'; > #options_temp > #options_temp -> value; > /iterate; > #renderrow = '<span > class="formdivider"><h3>' + (#onefield -> (find: 'label')) + '</h3>\n<p>' + > (encode_html: #options -> join('<br' + #endslash + '>\n') ) + > '</p></span>\n'; > case: 'submit'; > #renderfield += '<input > type="submit"' > > I got reminded of it when I compared the latest version found on Google > code with my version. > > HDB > Jolle > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <knop@lists.montania.se>. > To unsubscribe, E-mail to: <knop-off@lists.montania.se> > Send administrative queries to <knop-request@lists.montania.se> > List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html > Project homepage http://montania.se/projects/knop/ > Google Code has the latest downloads at http://code.google.com/p/knop/ >
-- tagSwap.net :: Open Source Lasso Code <http://tagSwap.net/>
############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
May 07
Jolle Carlestam Some personal adjusting I ve made to the form type
May 07, 2008; 15:47
Jolle Carlestam
Some personal adjusting I ve made to the form type
May 07
Jolle Carlestam Re: Some personal adjusting I ve made to the form type
May 07, 2008; 16:03
Jolle Carlestam
Re: Some personal adjusting I ve made to the form type
May 07
Nikolaj de Fine Licht Re: Some personal adjusting I ve made to the form type
May 07, 2008; 16:14
Nikolaj de Fine Licht
Re: Some personal adjusting I ve made to the form type
May 07
Jolle Carlestam Re: Some personal adjusting I ve made to the form type
May 07, 2008; 16:46
Jolle Carlestam
Re: Some personal adjusting I ve made to the form type
May 07
Johan Solve Re: Some personal adjusting I ve made to the form type
May 07, 2008; 17:05
Johan Solve
Re: Some personal adjusting I ve made to the form type
May 07
Johan Solve Re: Some personal adjusting I ve made to the form type
May 07, 2008; 17:10
Johan Solve
Re: Some personal adjusting I ve made to the form type
May 07
Jolle Carlestam Re: Some personal adjusting I ve made to the form type
May 07, 2008; 17:16
Jolle Carlestam
Re: Some personal adjusting I ve made to the form type
May 07
Johan Solve Re: Some personal adjusting I ve made to the form type
May 07, 2008; 22:03
Johan Solve
Re: Some personal adjusting I ve made to the form type
May 12
Brian Loomis Re: Some personal adjusting I ve made to the form type
May 12, 2008; 07:27
Brian Loomis
Re: Some personal adjusting I ve made to the form type
May 12
Johan Solve Re: Some personal adjusting I ve made to the form type
May 12, 2008; 16:21
Johan Solve
Re: Some personal adjusting I ve made to the form type
May 12
Jolle Carlestam Re: Some personal adjusting I ve made to the form type
May 12, 2008; 16:49
Jolle Carlestam
Re: Some personal adjusting I ve made to the form type
May 13
Johan Solve Re: Some personal adjusting I ve made to the form type
May 13, 2008; 23:20
Johan Solve
Re: Some personal adjusting I ve made to the form type
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!