Change who are you registering block to three checkboxes, "myself", "On behalf of one or more students", and "both"
Current behaviour
templates/frontend/register-page.php line 74 has a "Who are you registering?" fieldset with a single checkbox: "I'm registering as a parent or guardian, for one or more children". The parsed value is read in src/Auth/RegistrationPage.php around line 470 (Whether the "I'm registering as a parent or guardian" box was ticked), and assets/js/register.js (~line 109) disables/enables fields based on it.
Wanted
Three mutually exclusive options:
Myself
On behalf of one or more students
Both
Behaviour per option:
Myself — no student sub-forms; the account holder is the student.
On behalf of… — student sub-forms shown; the account holder is not booked for.
Both — student sub-forms shown and the account holder is registered as a student too.
Radio buttons are the right control for a mutually exclusive choice even though the feedback says "checkboxes" — confirm with the requester if "both" is meant to be selectable as two ticks instead.
Places to touch
templates/frontend/register-page.php
src/Auth/RegistrationPage.php — parse the three-way value instead of a boolean
Ties into the "capture registration questions when registering for yourself" issue and the copy change from "child" to "student".
## Feedback
> Change who are you registering block to three checkboxes, "myself", "On behalf of one or more students", and "both"
## Current behaviour
`templates/frontend/register-page.php` line 74 has a "Who are you registering?" fieldset with a single checkbox: "I'm registering as a parent or guardian, for one or more children". The parsed value is read in `src/Auth/RegistrationPage.php` around line 470 (`Whether the "I'm registering as a parent or guardian" box was ticked`), and `assets/js/register.js` (~line 109) disables/enables fields based on it.
## Wanted
Three mutually exclusive options:
1. **Myself**
2. **On behalf of one or more students**
3. **Both**
Behaviour per option:
- *Myself* — no student sub-forms; the account holder is the student.
- *On behalf of…* — student sub-forms shown; the account holder is not booked for.
- *Both* — student sub-forms shown **and** the account holder is registered as a student too.
Radio buttons are the right control for a mutually exclusive choice even though the feedback says "checkboxes" — confirm with the requester if "both" is meant to be selectable as two ticks instead.
## Places to touch
- `templates/frontend/register-page.php`
- `src/Auth/RegistrationPage.php` — parse the three-way value instead of a boolean
- `assets/js/register.js` — show/hide logic
- `src/BlockPreview.php` — editor preview
- `docs/features/account-registration.md`, `docs/features/parent-guardian-accounts.md`
- `tests/Unit/Auth/RegistrationPageTest.php`
## Related
Ties into the "capture registration questions when registering for yourself" issue and the copy change from "child" to "student".
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feedback
Current behaviour
templates/frontend/register-page.phpline 74 has a "Who are you registering?" fieldset with a single checkbox: "I'm registering as a parent or guardian, for one or more children". The parsed value is read insrc/Auth/RegistrationPage.phparound line 470 (Whether the "I'm registering as a parent or guardian" box was ticked), andassets/js/register.js(~line 109) disables/enables fields based on it.Wanted
Three mutually exclusive options:
Behaviour per option:
Radio buttons are the right control for a mutually exclusive choice even though the feedback says "checkboxes" — confirm with the requester if "both" is meant to be selectable as two ticks instead.
Places to touch
templates/frontend/register-page.phpsrc/Auth/RegistrationPage.php— parse the three-way value instead of a booleanassets/js/register.js— show/hide logicsrc/BlockPreview.php— editor previewdocs/features/account-registration.md,docs/features/parent-guardian-accounts.mdtests/Unit/Auth/RegistrationPageTest.phpRelated
Ties into the "capture registration questions when registering for yourself" issue and the copy change from "child" to "student".