Archived
Events can take a name (and optional email/phone) for each main-ticket place. Each named person gets their own quantity-1 ticket and attendee form; unnamed places share one ticket. Tickets go to the payer or to each person, attendees matching one existing account are linked to it, and the payer can edit names and send form links from My Events. Ticket generation is now planned per line (utils/attendees.js), free registrations use the same generator, and guest registration matches accounts by phone too, refusing conflicting email/phone pairs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
2.8 KiB
TypeScript
60 lines
2.8 KiB
TypeScript
import React from "react";
|
|
import { UserPlus, CreditCard, Info } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for /dashboard/supervisor/manual. */
|
|
export const supervisorManualHelpContent: HelpContent = {
|
|
title: "Manual registration",
|
|
subtitle: "Register someone and take payment on their behalf.",
|
|
tabs: [
|
|
{
|
|
key: "register",
|
|
label: "Register",
|
|
icon: UserPlus,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Pick an event, then either search for an existing user or enter guest details (name, and at least one of email or phone). Choose ticket options and quantities — early-bird and staff pricing are applied automatically, and a discount code can be added under "Have a code?" — then create the registration. On events that take names, tick "Registering for other people?" to name each person. A new guest account is created inactive, and an activation link is sent immediately (by email if provided, otherwise WhatsApp) so they can set their own password.</p>
|
|
<p className="text-xs text-gray-500">After creating a registration, the Record Payment tab is pre-filled with it — switch tabs to take payment right away.</p>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "payment",
|
|
label: "Record Payment",
|
|
icon: CreditCard,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Search for a user, pick one of their registrations with an outstanding balance, and enter the amount, method, and (optionally) a backdated payment time.</p>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|
|
|
|
/** Help content for /dashboard/supervisor/manual-registration — the older, simpler form. */
|
|
export const supervisorManualRegistrationLegacyHelpContent: HelpContent = {
|
|
title: "Manual registration (legacy)",
|
|
subtitle: "A basic form for creating a registration directly.",
|
|
quickLinks: [
|
|
{ label: "Manual registration & payment", href: "/dashboard/supervisor/manual", icon: UserPlus },
|
|
],
|
|
tabs: [
|
|
{
|
|
key: "overview",
|
|
label: "Overview",
|
|
icon: Info,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>This is an older, simplified registration form — it requires typing the exact Event ID and Option ID rather than picking from a list, and doesn't support payment or early-bird pricing.</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={UserPlus} title="Prefer the newer page" tone="brand">
|
|
The Manual Registration & Payment page (linked above) offers event/user search, live pricing, and lets you take payment in the same flow — use it unless you specifically need this one.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|