code4romania / code4romania/sunrise
[NGO Admin/ Retea organizatii VD] implement "Solicita sprijin" flow
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
### User story
As an organisation with access to the Sunrise Community, I want to contact other organisations to request services, collaborate on cases, or make referrals, so that we can coordinate support more effectively.
### Description
Add a "Solicită sprijin" action to the organisation's profile, enabling users to send a support request via email. The button, positioned in the top-right corner as shown in the design, opens a modal screen where users can enter a title, select requested services, and write a message. The message is sent to the organisation's email and allows for direct reply.
### Flow
1. User navigates to an organisation's profile in the "Rețea organizații violența domestică" section ([design](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=11650-52559&t=P5blXJBS6QxKxU27-4))
2. User clicks on the "Solicită sprijin" button
3. System displays the "Trimite un mesaj către [name of the organisation]" modal screen
4. User fills in the information and clicks on the "Trimite" button
5. System sends the message to the email address from the organisation's profile
6. System closes the modal screen and displays the following message in a confirmation modal screen
7. User clicks on the "OK" button
8. System closes the modal screen and redirects the user to the organisation's profile
### Business rules
1. The structure of the email will be the following:
**Subject**: Rețeaua SUNRISE - Solicitare sprijin: [text from "Titlul mesajului" field]
**Body**: _Start the email with the values selected in the "Servicii solicitate" field_: [X, Y, Z], _new paragraph:_ Solicitare: [Text from "Solicitarea" field]
2. Display in "Servicii solicitate" field only the values the organisation selected in the "Serviciile sociale oferite (licențiate)" field form the "Profilul meu în rețea" section
3. The email will be sent by the sunrise@heroesof.tech email.
4. The recipient will be able to reply to the email, and the reply will be sent to the email address from the "Andresă de email" field from the "Profilul meu în rețea" section of that organisation.
Contributor guide
Assessment
This issue has not been assessed yet.