code4romania / code4romania/sunrise
[Super Admin/ Utilizatori institutionali] Update the "Adauga o institutie" flow to support the two types of organisations that can be added in the platform
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
**Context:**
Two types of organizations can be added to the Sunrise platform.
1. Organisation/institution with **full access** to functionalities (case management and Sunrise community) - [view design cleanup](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11045-23876&t=YFmfD1eSWgT8jqhl-4)
2. Organisation/institution with **access only to the Sunrise community** module - [view design cleanup](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11045-24115&t=YFmfD1eSWgT8jqhl-4)
**Flow:**
1. User goes to "Utilizatori institutionali" section
2. User clicks on "Adauga o institutie" button
3. System displays the "Selectează tipul de cont pentru utilizator" modal screen ([see design here](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10437-19764&t=Es86rj62R950hsME-4))
4. User chooses the type of user they want to add
5.1. If the user chooses to add a full access organization, the system displays the full form ([see design here](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=5718-7718&t=Es86rj62R950hsME-4))
5.2. If the user chooses to add an organization who has access only to Sunrise community module, the system displays the simplified form ([see design here](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10433-19946&t=Es86rj62R950hsME-4))
6. The user fills in all the information and clicks on the "Finalizeaza" button
7. The system will create the organization in db, will add the organization to the Sunrise community network and will send invitation emails to the admins configured
**Business rules:*
1. Add the "Tip" column in the "Toate instituțiile" table, after the "Specialisti" column, and display the organization type there (Toate funcționalitățile or Comunitatea Sunrise)
2. When a 'Comunitatea Sunrise' organization logs in, they will be redirected directly to the 'Rețea organizații violența domestică' page. (pending final design)
Contributor guide
Assessment
This issue has not been assessed yet.