예제 #1
0
 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()
예제 #6
0
        class MyForm(FormidableForm):

            mytext = fields.CharField(
                label='text', validators=[validators.MinLengthValidator(5)]
            )
예제 #7
0
 class EditForm(FormidableForm):
     first_name = fields.CharField()
     last_name = fields.CharField()
예제 #8
0
class CreationForm(FormidableForm):
    first_name = fields.CharField()
예제 #9
0
 class MyForm(FormidableForm):
     mytext = fields.CharField(label='My Text')
예제 #10
0
        class MyForm(FormidableForm):

            mytext = fields.CharField(
                label=u'text',
                validators=[validators.RegexValidator(regex=r'^[0-9]\w+')])