From 1440f31fba98712ae19c0ba8a15e4a7b8e174b3d Mon Sep 17 00:00:00 2001 From: Jennifer Aube <62511019+jaube05@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:59:50 -0400 Subject: [PATCH] updating forms --- src/pages/adoption/adoption-application.en.js | 50 +++++--- src/pages/adoption/adoption-application.fr.js | 44 ++++--- src/pages/contact.en.js | 2 +- src/pages/contact.fr.js | 8 +- src/pages/fosters/become-a-foster.en.js | 3 +- src/pages/fosters/become-a-foster.fr.js | 5 +- src/pages/fosters/foster-application.en.js | 108 ++++++++++++----- src/pages/fosters/foster-application.fr.js | 110 +++++++++++++----- src/sass/pages/adoptions.scss | 7 ++ src/sass/pages/forms.scss | 4 +- src/templates/adoptions.js | 4 + src/templates/fr/adoptions.js | 4 + 12 files changed, 253 insertions(+), 96 deletions(-) diff --git a/src/pages/adoption/adoption-application.en.js b/src/pages/adoption/adoption-application.en.js index 7722959..c5688d2 100644 --- a/src/pages/adoption/adoption-application.en.js +++ b/src/pages/adoption/adoption-application.en.js @@ -35,7 +35,7 @@ const AdoptionApplication = () => { e.preventDefault() const myForm = e.target; const formData = new FormData(myForm); - fetch("/", { + fetch("/adoption-application.en.js", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams(formData).toString(), @@ -75,8 +75,8 @@ const AdoptionApplication = () => {