From c669c12311fa48df8909f68fa39232489c42751b Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 9 Jan 2024 14:20:35 -0600 Subject: [PATCH] switching forms back to dev mode in the repo --- layouts/shortcodes/health-form.html | 4 ++-- layouts/shortcodes/mt-church-form.html | 4 ++-- layouts/shortcodes/mt-form.html | 4 ++-- layouts/shortcodes/mt-parent-form.html | 4 ++-- layouts/shortcodes/mt-teacher-form.html | 4 ++-- src/main.lisp | 3 ++- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index 24b4c27..c9da5fd 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -72,8 +72,8 @@ // For use in dev // Can now start using this in production IF, // I get the server running on the server - let base = "https://api.tfcconnection.org/health-form"; - /* let base = "http://localhost:4242/health-form"; */ + /* let base = "https://api.tfcconnection.org/health-form"; */ + let base = "http://localhost:4242/health-form"; fetch(base, { method: "POST", body: data diff --git a/layouts/shortcodes/mt-church-form.html b/layouts/shortcodes/mt-church-form.html index d48e90e..96515d6 100644 --- a/layouts/shortcodes/mt-church-form.html +++ b/layouts/shortcodes/mt-church-form.html @@ -10,8 +10,8 @@ // For use in dev // Can now start using this in production IF, // I get the server running on the server - let base = "https://api.tfcconnection.org/health-form"; - /* let base = "http://localhost:4242/church-form"; */ + /* let base = "https://api.tfcconnection.org/health-form"; */ + let base = "http://localhost:4242/church-form"; fetch(base, { method: "POST", body: data diff --git a/layouts/shortcodes/mt-form.html b/layouts/shortcodes/mt-form.html index d9b9808..be49646 100644 --- a/layouts/shortcodes/mt-form.html +++ b/layouts/shortcodes/mt-form.html @@ -12,8 +12,8 @@ const age = calculate_age(birthdate); data.append("age", age); - let base = "https://api.tfcconnection.org/mt-form"; - /* let base = "http://localhost:4242/mt-form"; */ + /* let base = "https://api.tfcconnection.org/mt-form"; */ + let base = "http://localhost:4242/mt-form"; fetch(base, { method: "POST", diff --git a/layouts/shortcodes/mt-parent-form.html b/layouts/shortcodes/mt-parent-form.html index 47cb8f4..2c320cd 100644 --- a/layouts/shortcodes/mt-parent-form.html +++ b/layouts/shortcodes/mt-parent-form.html @@ -9,8 +9,8 @@ // For use in dev // Can now start using this in production IF, // I get the server running on the server - let base = "https://api.tfcconnection.org/health-form"; - /* let base = "http://localhost:4242/parent-form"; */ + /* let base = "https://api.tfcconnection.org/health-form"; */ + let base = "http://localhost:4242/parent-form"; fetch(base, { method: "POST", body: data diff --git a/layouts/shortcodes/mt-teacher-form.html b/layouts/shortcodes/mt-teacher-form.html index 1e4b452..2de54a3 100644 --- a/layouts/shortcodes/mt-teacher-form.html +++ b/layouts/shortcodes/mt-teacher-form.html @@ -9,8 +9,8 @@ // For use in dev // Can now start using this in production IF, // I get the server running on the server - let base = "https://api.tfcconnection.org/health-form"; - /* let base = "http://localhost:4242/teacher-form"; */ + /* let base = "https://api.tfcconnection.org/health-form"; */ + let base = "http://localhost:4242/teacher-form"; fetch(base, { method: "POST", body: data diff --git a/src/main.lisp b/src/main.lisp index 2f4d5de..e96b730 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -311,11 +311,12 @@ with the image attached to us" (cl-smtp:send-email "mail.tfcconnection.org" - "no-reply@mail.tfcconnection.org" + "TFC-ADMIN " "chris@cochrun.xyz" (format nil "~a ~a filled out a Mission Trip Form!" "Chris" "Ccohrun") "hi" :html-message + ;; (with-html-string (:h1 "hi")) (let ((form '(("age" . "150") ("registration" . "later") ("final-agreement" . "yes")