Build out Positions CRUD and rework the Roles page
Positions had list/create/edit already stubbed as list-only; give it real forms, with a check mirroring the management_position_implies_staff_position constraint so a bad combination reads as a form error, not a 500. Roles now groups by role (excluding the MEMBER everyone holds automatically, which was just noise), grants via a modal instead of a separate page, and its member picker is a small typeahead combobox instead of a long native <select>.
This commit is contained in:
@@ -30,6 +30,8 @@ urlpatterns = [
|
||||
path("families/<uuid:family_pk>/members/<uuid:member_pk>/role/", views.FamilyMembershipRoleUpdateView.as_view(), name="family_membership_role_update"),
|
||||
# Club setup (admin only)
|
||||
path("positions/", views.PositionListView.as_view(), name="position_list"),
|
||||
path("positions/new/", views.PositionCreateView.as_view(), name="position_create"),
|
||||
path("positions/<uuid:pk>/edit/", views.PositionUpdateView.as_view(), name="position_update"),
|
||||
path("roles/", views.ClubRoleListView.as_view(), name="role_list"),
|
||||
path("roles/new/", views.ClubRoleCreateView.as_view(), name="role_create"),
|
||||
path("roles/<uuid:pk>/revoke/", views.ClubRoleRevokeView.as_view(), name="role_revoke"),
|
||||
|
||||
Reference in New Issue
Block a user