Block 77 of 297
Program Enrollment
Camp or youth program sign-up in labelled sections: weeks, guardian, camper, health, pickup, financial aid and photo release.
- Puck key
- ProgramEnrollmentBlock
- Export
- programEnrollmentBlock
- React component
- <ProgramEnrollment />
- Path
- components/puck/program-enrollment-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A long registration form for camps and youth programs, grouped into Weeks, Parent or guardian, Camper, Health and pickup, and Permissions. On wide screens each section's title sits in a left column beside its fields; on phones everything stacks. It posts to your own endpoint as plain HTML, with no JavaScript.
- Summer day camp registration with several weekly sessions
- Afterschool or clinic sign-ups that need pickup and health details
- Park district youth programs that ask about financial aid up front
Writing the content
- Add 1 to 12 entries under Weeks or sessions. The Name is what gets sent with the form, so make each one unique, such as "Week 3: Pond Explorers".
- Use the Note on a week for short facts like spots left.
- Leave T-shirt sizes, Grade options or Have these ready blank to drop that question or the checklist card.
- Write the Consent statement in plain terms. It labels a required checkbox, so a parent can't submit without agreeing to it.
Accessibility
- Each group is a fieldset with a legend, and the photo release radios sit in their own fieldset, so screen readers announce which section a field belongs to (WCAG 1.3.1).
- Every input has a visible label tied by id, hints are linked with aria-describedby, and optional fields say "(optional)" in text.
- Week cards and checkboxes show a focus outline, and inputs keep a 44px minimum height.
Customizing the code
- Swap indigo- for your brand color family in inputClass, checkboxClass and the submit button.
- The two-column section layout comes from lg:w-1/3 on the legend and lg:w-2/3 on the fields in the Section helper.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Have these readytextarea
- Form action URLtext
- Weeks or sessionsarray
- Weeks hinttext
- Grade optionstextarea
- T-shirt sizestextarea
- Ask about financial aidradio
- Financial aid notetext
- Consent statementtextarea
- Button texttext
- Footnotetextarea