# -*- coding: utf-8 -*-

from baseframe import __
import baseframe.forms as forms

__all__ = ['PriceForm']


class PriceForm(forms.Form):
    start_at = forms.DateTimeField(__("Start date & time"),
        validators=[forms.validators.DataRequired(__("Please specify a start date & time"))])
    end_at = forms.DateTimeField(__("End date & time"),
        validators=[forms.validators.DataRequired(__("Please specify an end date & time")),
        forms.validators.GreaterThan('start_at', __(u"The price can’t end before it starts"))])
    amount = forms.IntegerField(__("Amount"),
        validators=[forms.validators.DataRequired(__("Please specify an price amount"))])
    currency = forms.SelectField(__("Currency"), choices=[('INR', 'INR')], default='INR')

@@ -552,15 +552,15 @@
 rms.
-Integer
+Decimal
 Fiel
@@ -604,36 +604,37 @@
 orms.validators.
-Data
+Input
 Required(__(%22Ple
@@ -663,16 +663,53 @@
 mount%22))
+, forms.validators.NumberRange(min=0)
 %5D)%0A    c

Update price form to accept decimal & 0.