fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

Register new user form #56

Closed fnitu closed 2 years ago

fnitu commented 3 years ago

When clicking on the new user link, a register form should be displayed. It should contain the following fields:

  1. First name
  2. Last name
  3. E-mail (e-mail validation)
  4. Password
  5. Confirm password (can be reused from: https://edu-hospice.herokuapp.com/#/preview/recover-or-change-password, to be checked if a component can be created and reused)
  6. Phone: text
  7. Profession: multiple checkboxes (enum)
  8. Workplace: employer name - text
  9. Workplace: employer city -text
  10. Workplace: employer county - text
  11. Subscription (communication) type: multiple checkboxes (enum)
  12. communication via email: checkbox
  13. communication via phone/sms: checbox
  14. Agree to terms and conditions: checkbox
  15. status (not displayed, in the database the user should be created by default ACTIVE instead of INACTIVE, to allow for easier testing)

ALL are MANDATORY fields.

Resource: https://docs.google.com/forms/d/e/1FAIpQLSfGY06L8Ya2lbiLiU02rAVUnyZ6lHI46F9ryEVM1SRLhAY6Zg/viewform

Related issue: https://github.com/danutchindris/edu-hospice-api/issues/126

fnitu commented 3 years ago

Please split the form using the stepper: https://material.angular.io/components/stepper/overview.

The split will be done as following:

  1. Personal data
  2. Career 2.1 For the career control, for the Others option, an input should be displayed when the option is checked. For the implementation, Angular Material can be used instead of Formly. 2.2 For the employer control, Formly can be used.
  3. Contact data
  4. Finalization

In the finalization tab we will have two checkboxes:

  1. Terms and conditions + link
  2. GDPR + link
fnitu commented 3 years ago

Phone field should be text, validation will be done separately.

fnitu commented 3 years ago

When sending the information, for profession we will have the following: "profession": ["NURSE", "CARE_ASSISTANT", "CARETAKER"] // array of checked options "other_profession": "" // string

NURSE -> asistent medical CARE_ASSISTANT -> infirmier CARETAKER -> ingrijitor

In the UI, the controls(or at least, the first 3 options) should all belong to a profession multi checkbox.

fnitu commented 3 years ago

Contact checkboxes should be unchecked by default instead of indeterminate.

fnitu commented 3 years ago

The valid filled in steps should be enabled, so that the user can go back and check again the information.

fnitu commented 3 years ago

Contact and finalization step should be joined in one step with two sections, finalization.

fnitu commented 3 years ago

Open terms and conditions URLs in another tab.

fnitu commented 3 years ago

Related issue: edu-hospice-api#126

fnitu commented 3 years ago

Please add validation for phone (length 10 - 14). Please redirect to login page after successful registration.

fnitu commented 3 years ago

Please add a timeout before redirecting in order for the "User created" message to be displayed.

fnitu commented 3 years ago

Please update the response message: "User created" with translation key: "general.userCreated". Please also ask to be updated also on the server.

fnitu commented 2 years ago

Issue implemented.