Commit 9760d8c
committed
feat: phone format (###) ###-#### + discard-draft UX on submission detail (v0.37.11)
Phone field:
- Enforce (###) ###-#### format with optional +## country-code prefix
- Updated HTML pattern, RegexValidator, placeholder, and error message
- Applied to both DynamicForm.add_field and ApprovalStepForm._create_field
Discard draft:
- submission_detail.html now shows Continue Editing + Discard Draft
action buttons when the viewing user owns a draft submission
- Links to existing form_submit and discard_draft views respectively
Bump version 0.37.10 → 0.37.111 parent c9a617a commit 9760d8c
File tree
4 files changed
+39
-9
lines changed- django_forms_workflows
- templates/django_forms_workflows
4 files changed
+39
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
349 | | - | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
| |||
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
359 | | - | |
360 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
361 | 368 | | |
362 | 369 | | |
363 | 370 | | |
| |||
1141 | 1148 | | |
1142 | 1149 | | |
1143 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
1144 | 1153 | | |
1145 | 1154 | | |
1146 | 1155 | | |
1147 | 1156 | | |
1148 | | - | |
| 1157 | + | |
| 1158 | + | |
1149 | 1159 | | |
1150 | 1160 | | |
1151 | 1161 | | |
| |||
1155 | 1165 | | |
1156 | 1166 | | |
1157 | 1167 | | |
1158 | | - | |
1159 | | - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1160 | 1173 | | |
1161 | 1174 | | |
1162 | 1175 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
490 | 502 | | |
491 | 503 | | |
492 | 504 | | |
| |||
501 | 513 | | |
502 | 514 | | |
503 | 515 | | |
504 | | - | |
505 | 516 | | |
506 | 517 | | |
507 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments