Block 65 of 297
Booking Request
Room or shelter reservation request with space, date and times, headcount, event type, setup needs and food and alcohol questions.
- Puck key
- BookingRequestBlock
- Export
- bookingRequestBlock
- React component
- <BookingRequest />
- Path
- components/puck/booking-request-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 reservation request form for rooms, shelters or fields, grouped into when and where, your event, and who's booking. It asks for space, date, start and end times, headcount, event type, setup needs and yes or no questions about food and alcohol. An optional callout sits above the form. On desktop each group's title sits in a left column.
- Park shelter and pavilion rentals
- Community center or library meeting room requests
- Gym or athletic field reservations for outside groups
Writing the content
- Use the Notice heading to say plainly this is a request, not a confirmed booking.
- Add a Capacity to each of your Spaces (up to sixteen); it shows in the menu.
- Remove every Event type or Setup need to hide that question, and turn off Ask about alcohol where it's never allowed.
- The food and alcohol hints (licensed caterers; permit and insurance) are written in code. Change them if your policies differ.
Accessibility
- Each group is a fieldset with a hidden legend matching its visible title, and nested questions such as Type of event have their own visible legends (WCAG 1.3.1).
- The food and alcohol questions are native radio pairs defaulting to No, with their policy hint linked by aria-describedby.
- Times use native time inputs in 15-minute steps, and hints remind people to include setup and cleanup time.
Customizing the code
- Field names such as space, date, start_time, attendance, event_type and setup are set in the markup.
- The callout uses bg-indigo-50 with ring-indigo-200; time steps are step={900} seconds.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Form action URLtext
- Spacesarray
- Event typesarray
- Setup needsarray
- Ask about alcoholradio
- Notice headingtext
- Notice texttextarea
- Button texttext
- Footnotetextarea