While on the topic of forms, how about a way to insert descriptions/
comments or titles between form items?
perhaps a form.Tag('p','insert this paragraph into the form', **attrs)
Also, maybe something that could be used for grouping items?
something to the effect of:
form.Fieldset('group 1',form.Textbox('a'),form.Textbox('b'))
Thinking out loud for now, but will post if I come up with any code I
think could work.
On Aug 4, 12:42 am, keizo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to make a radio button similar to:
>
> <label class="option"><input type="radio" name="format" value="1"
> checked="checked" class="form-radio" /> Filtered HTML</label>
> <label class="option"><input type="radio" name="format" value="2"
> class="form-radio" /> Markdown</label>
>
> I get close by:>>> a=form.Radio('format',[1,2])
> >>> a.render()
>
> '<span><input type="radio" name="format" value="1" id="format" /> 1
> <input type="radio" name="format" value="2" id="format" /> 2 </span>'
>
> But clearly I need to be able to label it something other than the
> value 1 or 2. Any ideas?
>
> I think this will require some changes to form.py, but then again I
> don't know much of anything.
>
> I also want to put each radio button on it's own row. Perhaps
> something that looks like this would be good? ie similar to
> checkboxes.
>
> a = form.Form(
> form.Radio('format',value=1,description='Filter
> HTML',checked=True,post='an explanation here'),
>
> form.Radio('format',value=2,description='Markdown',post='more info
> here')
> )
>
> Anyway, just wanted to see if anyone's run into this before. See also
> a bug I submitted about
> checkboxes:https://bugs.launchpad.net/webpy/+bug/128233
>
> Thanks for any assistance.
>
> Keizo
>
> ps. I have been rewriting my Drupal based site in python/webpy for
> the past few weeks. Any suggestions for how to go about making it an
> open source project?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---