class TestForm(FormidableForm): name = fields.CharField(label=u'Your Name', accesses={ 'jedi': 'REQUIRED', })
class TestCharField(FormidableForm): """ Test charfield """ charfield = fields.CharField(accesses={'jedi': REQUIRED})
class TestParagraphField(FormidableForm): """ Test Paraprah """ paragraph = fields.CharField(widget=widgets.Textarea)
class FormWithValidations(FormidableForm): text = fields.CharField(validators=[MinLengthValidator(4)]) integer = fields.NumberField(validators=[GTEValidator(42.4)])
class TestCharField(FormidableForm): """ Test charfield """ charfield = fields.CharField()
class MyForm(FormidableForm): mytext = fields.CharField( label='text', validators=[validators.MinLengthValidator(5)] )
class EditForm(FormidableForm): first_name = fields.CharField() last_name = fields.CharField()
class CreationForm(FormidableForm): first_name = fields.CharField()
class MyForm(FormidableForm): mytext = fields.CharField(label='My Text')
class MyForm(FormidableForm): mytext = fields.CharField( label=u'text', validators=[validators.RegexValidator(regex=r'^[0-9]\w+')])