Hello everyone,
First of all, sorry if there are any mistakes, I am French.
I am working on a social network project in a reduced format.
I do not know how to proceed for the registration of an account…
In my head the roles are the following:
- Administrator
- Profile (both a single person and a couple of two people)
- Establishment
Let me explain, so I have an account registration page with the following form (for a single person and a couple of two people):
Organization of the final form
Here is an overview (organization) of all the fields in the form, describing their layout and associated behaviors.
Registration Form
-
Username
- Type: Text field (
input type="text"
) - ID:
username
- Required: Yes
- Type: Text field (
-
Email Address
- Type: Email field (
input type="email"
) - ID:
email
- Required: Yes
- Type: Email field (
-
Password
- Type: Password field (
input type="password"
) - ID:
password
- Required: Yes
- Type: Password field (
-
City
- Type: Text field (
input type="text"
) - ID:
city
- Required: Yes
- Type: Text field (
-
Status
- Type: Radio buttons (
input type="radio"
) - Options:
Single
,Couple
- IDs:
single
(Single)couple
(Couple)
- Behavior: Displays different fields based on the selected status.
- Type: Radio buttons (
If “Single” is selected
-
Date of Birth
- Type: Date field (
input type="date"
) - ID:
dob_single
- Type: Date field (
-
Gender
- Type: Dropdown list (
select
) - ID:
gender_single
- Options:
- Male
- Female
- Transgender
- Transvestite
- Non-binary
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom gender.
- Associated text field:
- ID:
other_gender_single
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
-
Sexual Orientation
- Type: Dropdown list (
select
) - ID:
orientation_single
- Options:
- Heterosexual
- Homosexual
- Bisexual
- Pansexual
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom sexual orientation.
- Associated text field:
- ID:
other_orientation_single
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
If “Couple” is selected
-
Partner 1
- Date of Birth
- Type: Date field (
input type="date"
) - ID:
dob_couple_1
- Type: Date field (
- Gender
- Type: Dropdown list (
select
) - ID:
gender_couple_1
- Options:
- Male
- Female
- Transgender
- Transvestite
- Non-binary
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom gender.
- Associated text field:
- ID:
other_gender_couple_1
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
- Sexual Orientation
- Type: Dropdown list (
select
) - ID:
orientation_couple_1
- Options:
- Heterosexual
- Homosexual
- Bisexual
- Pansexual
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom sexual orientation.
- Associated text field:
- ID:
other_orientation_couple_1
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
- Date of Birth
-
Partner 2
- Date of Birth
- Type: Date field (
input type="date"
) - ID:
dob_couple_2
- Type: Date field (
- Gender
- Type: Dropdown list (
select
) - ID:
gender_couple_2
- Options:
- Male
- Female
- Transgender
- Transvestite
- Non-binary
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom gender.
- Associated text field:
- ID:
other_gender_couple_2
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
- Sexual Orientation
- Type: Dropdown list (
select
) - ID:
orientation_couple_2
- Options:
- Heterosexual
- Homosexual
- Bisexual
- Pansexual
- Other
- Behavior: If “Other” is selected, an additional text field appears to enter a custom sexual orientation.
- Associated text field:
- ID:
other_orientation_couple_2
- Only displayed if “Other” is selected.
- ID:
- Type: Dropdown list (
- Date of Birth
Terms and Conditions (T&C)
- Accept T&C
- Type: Checkbox (
input type="checkbox"
) - ID:
cgu
- Required: Yes
- Behavior: The “Sign Up” button only becomes clickable if this checkbox is checked.
- Type: Checkbox (
Submit Button
- Sign Up
- Type: Button (
button type="submit"
) - ID:
submitBtn
- Behavior: Disabled until the T&C checkbox is checked.
- Type: Button (
Conditional Behaviors:
- Dynamic Display: Additional fields for “Other” appear only when “Other” is selected in the gender or sexual orientation dropdowns.
- Validation: Fields specific to either a single person or a couple are disabled and not submitted based on the selected status.
I cannot project myself and imagine the structure of the “profile.yml” file
So I would like to know how you would imagine such a structure.