test 01

14 views
Skip to first unread message

Carlos Domínguez

unread,
Jun 13, 2022, 6:07:16 PM6/13/22
to groups-t...@googlegroups.com

Esto es una prueba

@action("radio_widget_4", method=["GET", "POST"])
@action.uses("radio_widget.html", db)
def index(id=None):

    form_bool = Form(
        [
            Field('ff_bool', 'boolean', label='Accept conditions')
        ],
        form_name='form_bool',
        keep_values=True,
        formstyle=FormStyleDefault,
    )

    form_bool_2 = Form(
        [
            Field('ff_bool_2', 'boolean', label='Accept conditions 2')
        ],
        form_name='form_bool',
        keep_values=True,
        formstyle=FormStyleDefault,
    )

    FormStyleDefault.widgets['ff_colors'] = RadioWidget()
    form = Form(
        table=[
            Field('ff_name', 'string', length=30, label='Name'),
            Field('ff_colors', 'string', length=1, label='Color', requires=IS_IN_DB(db, db.t_colors.f_color)),
        ],
        form_name='form_colors',
        formstyle=FormStyleDefault,
    )

    return dict(form=form, form_bool=form_bool, rows={}, form_bool_2=form_bool_2)
Reply all
Reply to author
Forward
0 new messages