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.