Esempio n. 1
0
class FormTest(FormidableForm):

    title = fields.TitleField(label='Jedi Onboarding')
    helptext = fields.HelpTextField(text='youhou')
    mytext = fields.CharField(label='Name', accesses={
        'padawan': 'EDITABLE', 'jedi': 'REQUIRED', 'jedi-master': 'HIDDEN',
        'human': 'EDITABLE',
    })
    dropdown = fields.ChoiceField(
        choices=(('tutu', 'toto'), ('foo', 'bar')),
        accesses={'jedi': 'EDITABLE'}
    )
        class TestHelpTextField(FormidableForm):
            """
            Test help text

            """
            helptext = fields.HelpTextField(text='My Help Text')
Esempio n. 3
0
 class MockForm(BaseDynamicForm):
     """Mock Form"""
     title = fields.TitleField(label='Onboarding Form')
     helptext = fields.HelpTextField(text='Enter your **address**')
     sepa = fields.SeparatorField()
Esempio n. 4
0
        class MyForm(FormidableForm):

            helptext = fields.HelpTextField(text='My Help Text')