You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the Resident page, there should be a modal to allow admins to invite an employee to the system. Here are the inputs required in the form:
First Name
Last Name
Show Email- Some validation should exist to verify that this is in correct email format
Role- Should be a radio component with two choices: a) Admin b) Non Admin
Role (continued)- After the radio component, there should be a checkbox for 2FA
This ticket should also cover the front-end/back-end integration, meaning that once the form is submitted, the employee is correctly invited and a user is created in the DB. A similar task is being worked on for creating logs- #81. You can also refer to how the endpoints are called in the InviteUsers since a demo was created for inviting users, and a lot of the code can be reused from there.
Note: the designs for this modal aren't fully complete yet, but there is enough to use to begin working on this task. For any uncertainties, either sync with me or the designers.
Goals
Create a new form called InviteEmployees
Add all the inputs mentioned above
Ensure form validation is present
When the form is submitted and all inputs are valid, create a user invite in the db
Implementation
To test the modal, I'd recommend just adding a separate page (maybe something like testInviteEmployee) then adding a button that opens the modal
A lot of the code can be reused from CreateLog
Also please reuse the API calls and integration written in InviteUsers, it will save a lot of time :D
The text was updated successfully, but these errors were encountered:
Summary
On the Resident page, there should be a modal to allow admins to invite an employee to the system. Here are the inputs required in the form:
This ticket should also cover the front-end/back-end integration, meaning that once the form is submitted, the employee is correctly invited and a user is created in the DB. A similar task is being worked on for creating logs- #81. You can also refer to how the endpoints are called in the
InviteUsers
since a demo was created for inviting users, and a lot of the code can be reused from there.Note: the designs for this modal aren't fully complete yet, but there is enough to use to begin working on this task. For any uncertainties, either sync with me or the designers.
Goals
InviteEmployees
Implementation
CreateLog
InviteUsers
, it will save a lot of time :DThe text was updated successfully, but these errors were encountered: