Correcting a couple of spelling errors. Thanks elesa, for finding them!
[mediagoblin.git] / extlib / flask-wtf / html5.py
1 from wtforms import TextField
2 from wtforms import IntegerField as _IntegerField
3 from wtforms import DecimalField as _DecimalField
4 from wtforms import DateField as _DateField
5 from wtforms.widgets import Input
6
7 class DateInput(Input):
8 """
9 Creates `<input type=date>` widget
10 """
11 input_type = "date"
12
13
14 class NumberInput(Input):
15 """
16 Creates `<input type=number>` widget
17 """
18 input_type="number"
19
20
21 class RangeInput(Input):
22 """
23 Creates `<input type=range>` widget
24 """
25 input_type="range"
26
27
28 class URLInput(Input):
29 """
30 Creates `<input type=url>` widget
31 """
32 input_type = "url"
33
34
35 class EmailInput(Input):
36 """
37 Creates `<input type=email>` widget
38 """
39
40 input_type = "email"
41
42
43 class SearchInput(Input):
44 """
45 Creates `<input type=search>` widget
46 """
47
48 input_type = "search"
49
50 class TelInput(Input):
51 """
52 Creates `<input type=tel>` widget
53 """
54
55 input_type = "tel"
56
57
58 class SearchField(TextField):
59 """
60 **TextField** using **SearchInput** by default
61 """
62 widget = SearchInput()
63
64
65 class DateField(_DateField):
66 """
67 **DateField** using **DateInput** by default
68 """
69
70 widget = DateInput()
71
72
73 class URLField(TextField):
74 """
75 **TextField** using **URLInput** by default
76 """
77
78 widget = URLInput()
79
80
81 class EmailField(TextField):
82 """
83 **TextField** using **EmailInput** by default
84 """
85
86 widget = EmailInput()
87
88 class TelField(TextField):
89 """
90 **TextField** using **TelInput** by default
91 """
92
93 widget = TelInput()
94
95
96 class IntegerField(_IntegerField):
97 """
98 **IntegerField** using **NumberInput** by default
99 """
100
101 widget = NumberInput()
102
103
104 class DecimalField(_DecimalField):
105 """
106 **DecimalField** using **NumberInput** by default
107 """
108
109 widget = NumberInput()
110
111
112 class IntegerRangeField(_IntegerField):
113 """
114 **IntegerField** using **RangeInput** by default
115 """
116
117 widget = RangeInput()
118
119
120 class DecimalRangeField(_DecimalField):
121 """
122 **DecimalField** using **RangeInput** by default
123 """
124
125 widget = RangeInput()