form.php
Admin User Form - scaffold for the client-rendered create/edit form.
Values come from GET /api/v1/admin/users/{id} when editing; saving goes
through POST /api/v1/admin/users or PUT /api/v1/admin/users/{id}.
See user_management.ts.
Variables expected:
- $isEdit: bool
- $user: User|null (only its ID is read; the values come from the API)
PHP version 8.1