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')
class MockForm(BaseDynamicForm): """Mock Form""" title = fields.TitleField(label='Onboarding Form') helptext = fields.HelpTextField(text='Enter your **address**') sepa = fields.SeparatorField()
class MyForm(FormidableForm): helptext = fields.HelpTextField(text='My Help Text')