[jifty-devel] Multiple-choice with checkbox

Ruslan Zakirov ruslan.zakirov at gmail.com
Fri Sep 4 17:11:59 EDT 2009


On Fri, Sep 4, 2009 at 11:54 PM, Stanislav Sinyagin<ssinyagin at yahoo.com> wrote:
> hi Ruslan,

[snip]

> Probably I have to end up with a subclass of Action and override attributes()
> so that it generates the needed number of checkboxes. However, then we don't
> have a way to group them (I actually extract 4 different groups of data elements,
> and was going to give the user four multiple-choice selections on one page).
>
> any suggestions?

Probably I miss something, but I see this as four different arguments
of an action, each argument rendered as a ::Checkbox widget, where one
widget != one checkbox input field, but many with the same name and
you get values in the action as array.

-- 
Best regards, Ruslan.


More information about the jifty-devel mailing list