Archived
- Internal links use next/link instead of <a> (no full page reload). - Remove dead code: RegisterForm's unreachable Yoco checkout branch, the unused AttendeeForms on the registration success page, unused Geist fonts, and assorted unused variables and catch bindings. - Escape quotes in JSX text; replace @ts-ignore in apiFetch with a cast. - Keep the intentional raw <img> elements (data URLs, runtime API host) with a documented lint exception; the event editor uses ApiImage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.7 KiB
TypeScript
41 lines
1.7 KiB
TypeScript
import React from "react";
|
|
import { Eye, Edit3, ListChecks } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for /dashboard/supervisor/forms and /dashboard/admin/forms (same page). */
|
|
export const supervisorFormsHelpContent: HelpContent = {
|
|
title: "Attendee forms",
|
|
subtitle: "View responses, fill them in for someone, or edit a form's structure.",
|
|
tabs: [
|
|
{
|
|
key: "view",
|
|
label: "View & fill responses",
|
|
icon: Eye,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<div className="space-y-4">
|
|
<GuideItem icon={Eye} title="View responses" tone="brand">
|
|
Filter by event, user, or registration ID to see submitted answers. Use "Print forms" for a printable per-registration answer sheet.
|
|
</GuideItem>
|
|
<GuideItem icon={Edit3} title="Fill / edit responses" tone="green">
|
|
Pick an event and registration to fill in or correct attendee answers on someone's behalf — one form block per main ticket held.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "structure",
|
|
label: "Edit form structure",
|
|
icon: ListChecks,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Pick any event (including past or inactive ones) to add, reorder, or remove its custom registration form fields — text, number, date, yes/no, statement, and heading types.</p>
|
|
<p className="text-xs text-gray-500">A field can be marked required, or required before tickets are generated for that registration.</p>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|