Commit d45592d
authored
Enhance login link and refactor NewQuestionForm category choices (#77)
* Enhance login link and refactor NewQuestionForm category choices
- Updated the login link to retain the original request path for better user experience.
- Refactored the NewQuestionForm to dynamically populate category choices from the database, ensuring they are distinct and sorted alphabetically.
- Improved the tutorial retrieval process by ordering results based on level and order.
* Refactor NewQuestionForm to preserve minute/second values on validation errors
* Update login links in templates to retain original request path for improved user experience1 parent 9025210 commit d45592d
4 files changed
Lines changed: 53 additions & 16 deletions
File tree
- static
- forums/templates
- website/templates
- website
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
12 | 29 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
17 | 36 | | |
18 | 37 | | |
19 | 38 | | |
20 | 39 | | |
| 40 | + | |
21 | 41 | | |
22 | 42 | | |
23 | | - | |
24 | 43 | | |
25 | 44 | | |
| 45 | + | |
26 | 46 | | |
| 47 | + | |
27 | 48 | | |
28 | 49 | | |
29 | 50 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
33 | 65 | | |
34 | 66 | | |
35 | 67 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 68 | | |
40 | 69 | | |
41 | 70 | | |
42 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
43 | 78 | | |
44 | 79 | | |
45 | 80 | | |
| |||
48 | 83 | | |
49 | 84 | | |
50 | 85 | | |
51 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
52 | 89 | | |
53 | 90 | | |
54 | 91 | | |
| |||
0 commit comments