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()
class InventoryForm(FlaskForm): item = fields.SelectField() item_upc = fields.StringField() expired_date = html5fields.DateTimeField( widget=html5widgets.DateTimeInput(), default=datetime.date.today() + datetime.timedelta(days=7)) # expired_date = html5fields.DateField() # expired_time = fields.TextField(widget=html5widgets.TimeInput()) quantity = fields.IntegerField(default=1, widget=html5widgets.NumberInput(min=1), validators=[validators.NumberRange(min=1)])