2009-12-24 14:23:52 +00:00
|
|
|
from django import template, forms
|
|
|
|
from django.forms.extras import SelectDateWidget
|
2009-12-30 22:11:48 +00:00
|
|
|
from models import Company
|
2009-12-24 14:23:52 +00: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()
|
2010-03-01 10:19:24 +00:00
|
|
|
integer_field = forms.IntegerField()
|
2009-12-24 14:23:52 +00:00
|
|
|
|
|
|
|
class SelectDateForm(forms.Form):
|
|
|
|
date_field = forms.DateField(widget=SelectDateWidget)
|
|
|
|
|
2009-12-30 22:11:48 +00:00
|
|
|
class CompanyForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Company
|