Esempio n. 1
0
def q(label, kink):
    return f5.IntegerRangeField(
        link.render(label=label, kink=kink),
        [v.NumberRange(1, 10, 'Must be between 1 and 10')],
        render_kw={
            'min': '1',
            'max': '10'
        },
        default=5)
Esempio n. 2
0
 class F(Form):
     search = html5.SearchField()
     telephone = html5.TelField()
     url = html5.URLField()
     email = html5.EmailField()
     datetime = html5.DateTimeField()
     date = html5.DateField()
     dt_local = html5.DateTimeLocalField()
     integer = html5.IntegerField()
     decimal = html5.DecimalField()
     int_range = html5.IntegerRangeField()
     decimal_range = html5.DecimalRangeField()