# Family & Guardian Setup Workflows (`/members/{id}/edit`)

Both workflows below are supported by `users.payer_id` and `user_guardians` and will be implemented in **Step 5** on `/members/{id}/edit`:

## 1. Linking Two Existing Users
*(e.g., a training child + training parent, or husband + wife)*

- A searchable dropdown of existing users in the club on `/members/{id}/edit`.
- Pick the parent or spouse, tick **"Set as Payer"** and/or **"Can manage in portal"**, and click **Link**.
- Inserts a `user_guardians` row and/or sets `payer_id` in one action—no separate family setup required.

## 2. Creating a New Parent/Guardian from the "Contact Details" Tab
- A **"Create Parent/Guardian from Contact Details"** button on the Contact Details tab opens a pre-filled modal pulling directly from the member's existing fields:
  - **Name:** from `parent_guardian_name` *(or `emergency_contact_name`)*
  - **Telephone:** from `emergency_contact_telephone` *(or `telephone`)*
  - **Address:** from `address_1`, `address_2`, `town_city`, `county`, `postcode`
  - **Email:** entered by admin *(or moved over if the child currently has the parent's email—with a checkbox to **"Clear email from child"** in the same action)*
- Clicking **Create & Link** creates the `guardian` user (`is_training_member = false`), links them in `user_guardians`, and sets `payer_id` on the child in one go.

