2009-12-24 22:23:52 +08:00
|
|
|
from django import template, forms
|
|
|
|
from django.forms.extras import SelectDateWidget
|
2009-12-31 06:11:48 +08:00
|
|
|
from models import Company
|
2009-12-24 22:23:52 +08:00
|
|
|
|
|
|
|
class I18nForm(forms.Form):
|
|
|
|
decimal_field = forms.DecimalField()
|
|
|
|
float_field = forms.FloatField()
|
|
|
|
date_field = forms.DateField()
|
|
|
|
datetime_field = forms.DateTimeField()
|
|
|
|
time_field = forms.TimeField()
|
|
|
|
|
|
|
|
class SelectDateForm(forms.Form):
|
|
|
|
date_field = forms.DateField(widget=SelectDateWidget)
|
|
|
|
|
2009-12-31 06:11:48 +08:00
|
|
|
class CompanyForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Company
|