Add role adding page to guest profiles
Code for guest routes moved to their own folder so that we don't need multiple api calls. Serializer class for roles has been simplified with methods for validation of each field and a separate one used in invites without requiring the person field. Resolves: GREG-61
parent
3bb81315
No related branches found
No related tags found
Showing
- frontend/public/locales/en/common.json 13 additions, 4 deletionsfrontend/public/locales/en/common.json
- frontend/public/locales/nb/common.json 13 additions, 4 deletionsfrontend/public/locales/nb/common.json
- frontend/public/locales/nn/common.json 13 additions, 4 deletionsfrontend/public/locales/nn/common.json
- frontend/src/hooks/useRoleTypes/index.tsx 1 addition, 0 deletionsfrontend/src/hooks/useRoleTypes/index.tsx
- frontend/src/routes/components/sponsorInfoButtons.tsx 6 additions, 4 deletionsfrontend/src/routes/components/sponsorInfoButtons.tsx
- frontend/src/routes/sponsor/guest/guestInfo/index.tsx 27 additions, 58 deletionsfrontend/src/routes/sponsor/guest/guestInfo/index.tsx
- frontend/src/routes/sponsor/guest/guestRoleInfo/index.tsx 12 additions, 14 deletionsfrontend/src/routes/sponsor/guest/guestRoleInfo/index.tsx
- frontend/src/routes/sponsor/guest/index.tsx 73 additions, 0 deletionsfrontend/src/routes/sponsor/guest/index.tsx
- frontend/src/routes/sponsor/guest/newGuestRole/index.tsx 274 additions, 0 deletionsfrontend/src/routes/sponsor/guest/newGuestRole/index.tsx
- frontend/src/routes/sponsor/index.tsx 4 additions, 8 deletionsfrontend/src/routes/sponsor/index.tsx
- gregui/api/serializers/invitation.py 2 additions, 2 deletionsgregui/api/serializers/invitation.py
- gregui/api/serializers/role.py 83 additions, 28 deletionsgregui/api/serializers/role.py
- gregui/api/serializers/roletype.py 1 addition, 1 deletiongregui/api/serializers/roletype.py
- gregui/api/urls.py 2 additions, 0 deletionsgregui/api/urls.py
- gregui/api/views/person.py 3 additions, 0 deletionsgregui/api/views/person.py
- gregui/api/views/role.py 25 additions, 9 deletionsgregui/api/views/role.py
- gregui/tests/api/test_invite_guest.py 7 additions, 2 deletionsgregui/tests/api/test_invite_guest.py
- gregui/urls.py 0 additions, 2 deletionsgregui/urls.py
Loading
Please register or sign in to comment