From 838a412376f1ab801e5db4b95a99ac2618f9720b Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Thu, 5 Feb 2026 12:15:46 -0500 Subject: [PATCH] feat: link student pages to database --- src/pages/student/demographics_page.rs | 22 +++++++++--------- src/pages/student/extracurriculars_page.rs | 12 +++++----- src/pages/student/family_info_page.rs | 26 +++++++++++----------- src/pages/student/university_page.rs | 18 +++++++-------- 4 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/pages/student/demographics_page.rs b/src/pages/student/demographics_page.rs index c06e91c..641f410 100644 --- a/src/pages/student/demographics_page.rs +++ b/src/pages/student/demographics_page.rs @@ -1,6 +1,6 @@ -use std::collections::HashMap; use leptos::prelude::*; use crate::components::{OutlinedTextField, Select, TextFieldType, ValidatedForm}; +use crate::pages::student::form_setup::use_student_form; #[component] pub fn StudentDemographicsPage() -> impl IntoView { @@ -8,17 +8,17 @@ pub fn StudentDemographicsPage() -> impl IntoView { // It's a simple form, really nothing more than a contact form. // I'm going to test out creating this form without using a panel - we'll just use the page as // it is with a specially spaced invisible div instead of a shaded container. - - let data_map = RwSignal::new(HashMap::new()); + + let controller = use_student_form("demographics"); view! {
- + // Inputs here. impl IntoView { /> impl IntoView { // There must be a date of birth selection field here. impl IntoView { /> impl IntoView { /> impl IntoView { /> impl IntoView { impl IntoView { // TODO Make this a select dropdown.