some attempts at fixing the nil forms
This commit is contained in:
parent
e35c29d189
commit
5b988b14ae
2 changed files with 38 additions and 37 deletions
|
@ -374,7 +374,6 @@ with the image attached"
|
|||
(attachment nil))
|
||||
(loop :for d :in data
|
||||
:do (progn
|
||||
(uiop:println d)
|
||||
(if (string= "first-name" (car d))
|
||||
(progn
|
||||
(setf first-name (cdr d))))
|
||||
|
@ -397,21 +396,22 @@ with the image attached"
|
|||
(setf attachment path)
|
||||
(log:info attachment)))))
|
||||
(log:info data)
|
||||
(mail-health-form data attachment)
|
||||
(cond ((string= registration "now")
|
||||
(setf (hunchentoot:header-out :HX-Redirect) "https://secure.myvanco.com/L-Z772/campaign/C-13JPJ"))
|
||||
((string= registration "full")
|
||||
(setf (tbnl:header-out :HX-Redirect) "https://secure.myvanco.com/L-Z772/campaign/C-13JQE"))
|
||||
((string= registration "later")
|
||||
(with-html-string
|
||||
(:div
|
||||
:class "mt-8"
|
||||
(:h2 (format nil
|
||||
"Thank You ~A!"
|
||||
(concat
|
||||
first-name " " last-name)))
|
||||
(:p :class "text-md"
|
||||
"If you'd like to pay for your registration go to the donate tab in the top right when you are ready and find the camp registration option.")))))))
|
||||
(when data
|
||||
(mail-health-form data attachment)
|
||||
(cond ((string= registration "now")
|
||||
(setf (hunchentoot:header-out :HX-Redirect) "https://secure.myvanco.com/L-Z772/campaign/C-13JPJ"))
|
||||
((string= registration "full")
|
||||
(setf (tbnl:header-out :HX-Redirect) "https://secure.myvanco.com/L-Z772/campaign/C-13JQE"))
|
||||
((string= registration "later")
|
||||
(with-html-string
|
||||
(:div
|
||||
:class "mt-8"
|
||||
(:h2 (format nil
|
||||
"Thank You ~A!"
|
||||
(concat
|
||||
first-name " " last-name)))
|
||||
(:p :class "text-md"
|
||||
"If you'd like to pay for your registration go to the donate tab in the top right when you are ready and find the camp registration option."))))))))
|
||||
|
||||
(hunchentoot:define-easy-handler (camp-form :uri "/camp-form") ()
|
||||
(let* ((request-type (hunchentoot:request-method hunchentoot:*request*))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue