Commit 8a71b6d
authored
Admin volunteer slots: add Add slot button (#41)
Adds a primary CTA on /admin/volunteer_slots that opens the schedule
item form with kind pre-selected to volunteer and Cancel returning to
this page. Reuses the existing form (which already conditionally shows
volunteer-only fields), and mirrors the established Edit-button pattern
on this index.
The schedule_items#new action now honors a ?kind= URL param, with an
enum whitelist guard falling back to :talk for unknown values.1 parent 031d78e commit 8a71b6d
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments