making the camp form function goodly

This commit is contained in:
Chris Cochrun 2025-03-26 11:55:59 -05:00
parent b2d96c13a1
commit fdb6021683
6 changed files with 5 additions and 10 deletions

View file

@ -5498,10 +5498,6 @@ pre {
flex-basis: 75%; flex-basis: 75%;
} }
.md\:basis-1\/2 {
flex-basis: 50%;
}
.md\:basis-1\/4 { .md\:basis-1\/4 {
flex-basis: 25%; flex-basis: 25%;
} }

View file

@ -2,7 +2,7 @@ default:
just --list just --list
build: 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 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 cargo run
server: server:
hugo server --noHTTPCache --disableFastRender hugo server --noHTTPCache --disableFastRender

View file

@ -224,7 +224,7 @@
target="_parent" target="_parent"
class="w-full items-center flex flex-wrap"> 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"> <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> <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/> <br/>

View file

@ -192,7 +192,7 @@ impl CampForm {
} }
} }
#[post("/camp-form")] #[post("/api/camp-form")]
pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse { pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse {
let full_name = format!("{} {}", form.first_name.0, form.last_name.0); let full_name = format!("{} {}", form.first_name.0, form.last_name.0);
let map = (&form).into(); let map = (&form).into();
@ -222,7 +222,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
.insert_header(( .insert_header((
"HX-Redirect", "HX-Redirect",
format!( format!(
"https://tfcconnection.org/camp-health-form/?registration={}", "/camp-health-form/?registration={}",
form.registration.0.as_str() form.registration.0.as_str()
), ),
)) ))

View file

@ -70,7 +70,6 @@ impl ContactForm {
let mut json = HashMap::new(); let mut json = HashMap::new();
json.insert("data", map); json.insert("data", map);
let link = r#"https://staff.tfcconnection.org/apps/tables/#/table/140/row/757"#;
let res = client let res = client
.post("https://staff.tfcconnection.org/ocs/v2.php/apps/tables/api/2/tables/140/rows") .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")) .basic_auth("chris", Some("2VHeGxeC^Zf9KqFK^G@Pt!zu2q^6@b"))

View file

@ -380,7 +380,7 @@ pub async fn health_form(MultipartForm(mut form): MultipartForm<HealthForm>) ->
.insert_header(("Access-Control-Expose-Headers", "*")) .insert_header(("Access-Control-Expose-Headers", "*"))
.insert_header(( .insert_header((
"HX-Redirect", "HX-Redirect",
"https://secure.myvanco.com/L-Z772/campaign/C-13DM3", "https://secure.myvanco.com/L-Z772/campaign/C-13JPJ",
)) ))
.finish() .finish()
} }