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 {
diff --git a/src/pages/student/extracurriculars_page.rs b/src/pages/student/extracurriculars_page.rs
index 37f93e1..7f16a2f 100644
--- a/src/pages/student/extracurriculars_page.rs
+++ b/src/pages/student/extracurriculars_page.rs
@@ -1,20 +1,20 @@
-use std::collections::HashMap;
-use leptos::prelude::*;
+use leptos::prelude::*;
use crate::components::{MultiEntry, OutlinedTextField, TextFieldType, ValidatedForm};
use crate::input;
+use crate::pages::student::form_setup::use_student_form;
#[component]
pub fn StudentExtracurricularsPage() -> impl IntoView {
- let data_map = RwSignal::new(HashMap::new());
+ let controller = use_student_form("demographics");
view! {
-
+
// Inputs here.
impl IntoView {
/>
impl IntoView {
/>
impl IntoView {
// TODO Could this be a select dropdown?
impl IntoView {
// TODO Get a better example
impl IntoView {
/>
impl IntoView {
impl IntoView {
// TODO Could this be a select dropdown?
impl IntoView {
// TODO Get a better example
impl IntoView {
/>
impl IntoView {
- let data_map = RwSignal::new(HashMap::new());
+ let controller = use_student_form("university");
// college name, state, city, zip
// major, study field, intended career, college_acceptance
@@ -12,11 +12,11 @@ pub fn StudentUniversityPage() -> impl IntoView {
view! {
-
+
// Inputs here.
impl IntoView {
/>
impl IntoView {
// TODO Make this a select dropdown.
impl IntoView {
/>
impl IntoView {
/>