making the camp form function goodly
This commit is contained in:
parent
b2d96c13a1
commit
fdb6021683
|
@ -5498,10 +5498,6 @@ pre {
|
|||
flex-basis: 75%;
|
||||
}
|
||||
|
||||
.md\:basis-1\/2 {
|
||||
flex-basis: 50%;
|
||||
}
|
||||
|
||||
.md\:basis-1\/4 {
|
||||
flex-basis: 25%;
|
||||
}
|
||||
|
|
2
justfile
2
justfile
|
@ -2,7 +2,7 @@ default:
|
|||
just --list
|
||||
build:
|
||||
rm -rf public && NODE_ENV=production ./themes/blowfish/node_modules/tailwindcss/lib/cli.js -c ./themes/blowfish/tailwind.config.js -i ./themes/blowfish/assets/css/main.css -o ./assets/css/compiled/main.css --jit && hugo --gc --minify
|
||||
run:
|
||||
run: build
|
||||
cargo run
|
||||
server:
|
||||
hugo server --noHTTPCache --disableFastRender
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
target="_parent"
|
||||
class="w-full items-center flex flex-wrap">
|
||||
|
||||
<h3 class="basis-full">2024-2025 Health Form</h3>
|
||||
<h3 class="basis-full">2025-2026 Health Form</h3>
|
||||
<div class="basis-full flex flex-wrap my-4">
|
||||
<label for="first-name" class="basis-full">What is your first and last name? <span class='inline-block text-[#f39] text-sm'>* required</span></label>
|
||||
<br/>
|
||||
|
|
|
@ -192,7 +192,7 @@ impl CampForm {
|
|||
}
|
||||
}
|
||||
|
||||
#[post("/camp-form")]
|
||||
#[post("/api/camp-form")]
|
||||
pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse {
|
||||
let full_name = format!("{} {}", form.first_name.0, form.last_name.0);
|
||||
let map = (&form).into();
|
||||
|
@ -222,7 +222,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
|
|||
.insert_header((
|
||||
"HX-Redirect",
|
||||
format!(
|
||||
"https://tfcconnection.org/camp-health-form/?registration={}",
|
||||
"/camp-health-form/?registration={}",
|
||||
form.registration.0.as_str()
|
||||
),
|
||||
))
|
||||
|
|
|
@ -70,7 +70,6 @@ impl ContactForm {
|
|||
let mut json = HashMap::new();
|
||||
json.insert("data", map);
|
||||
|
||||
let link = r#"https://staff.tfcconnection.org/apps/tables/#/table/140/row/757"#;
|
||||
let res = client
|
||||
.post("https://staff.tfcconnection.org/ocs/v2.php/apps/tables/api/2/tables/140/rows")
|
||||
.basic_auth("chris", Some("2VHeGxeC^Zf9KqFK^G@Pt!zu2q^6@b"))
|
||||
|
|
|
@ -380,7 +380,7 @@ pub async fn health_form(MultipartForm(mut form): MultipartForm<HealthForm>) ->
|
|||
.insert_header(("Access-Control-Expose-Headers", "*"))
|
||||
.insert_header((
|
||||
"HX-Redirect",
|
||||
"https://secure.myvanco.com/L-Z772/campaign/C-13DM3",
|
||||
"https://secure.myvanco.com/L-Z772/campaign/C-13JPJ",
|
||||
))
|
||||
.finish()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue