From efdc2521caff8d3d5a6b8e5a2f2d172753130ad8 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Thu, 23 Jul 2026 19:47:34 -0400 Subject: [PATCH] Collect first/last name on the course enroll form Co-Authored-By: Claude Sonnet 5 --- layouts/partials/course-enroll-form.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/layouts/partials/course-enroll-form.html b/layouts/partials/course-enroll-form.html index e0dcd76..642bac0 100644 --- a/layouts/partials/course-enroll-form.html +++ b/layouts/partials/course-enroll-form.html @@ -1,6 +1,12 @@ {{ $id := .id }} {{ $page := .page }}
+ + + + + + @@ -33,7 +39,11 @@ fetch("{{ $page.Site.Params.eec_base_url }}/courses/" + slug + "/enroll", { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ email: form.email.value }) + body: JSON.stringify({ + email: form.email.value, + first_name: form.first_name.value, + last_name: form.last_name.value + }) }).then(function (res) { if (res.ok) { form.reset();