Commit ac628d0
feat: AsFormField for Date, Time, DateTime (#342)
* AsFormField for Date, Time, DateTime
* add some tests and basic docs
* more fixes
* remove wrapped types
* add more docs and attributes
* add form support for DateTime<FixedOffset>
* fix error message
* minor fixes
* turn on alloc feature for chrono
* some more minor improvs
* more improvs
* move steps into attrs
* refactor
* rebase
* use chrono_tz for Timezone field
* make clippy happy
* remove unnecessary test name demarcation
* add basic form example
* fix CI
* more unnecessary code removal
* Update examples/forms/templates/index.html
Co-authored-by: Mateusz Maćkowski <mateusz@mackowski.org>
* address comments
* rebase
* fix tests
* remove lingering code as a result of the rebase
* chore(pre-commit.ci): auto fixes from pre-commit hooks
* add more variants
* minor formatting
---------
Co-authored-by: Mateusz Maćkowski <mateusz@mackowski.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 2366503 commit ac628d0
File tree
13 files changed
+1809
-142
lines changed- cot
- src
- form
- fields
- examples/forms
- src
- migrations
- static/css
- templates
13 files changed
+1809
-142
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
155 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
156 | 171 | | |
157 | 172 | | |
158 | 173 | | |
| |||
207 | 222 | | |
208 | 223 | | |
209 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
210 | 238 | | |
211 | 239 | | |
212 | 240 | | |
| |||
0 commit comments