From 1427c51bd3595c1cd758532c0a924e87167c3286 Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Fri, 6 Mar 2026 01:55:58 -0500 Subject: [PATCH] feat: create "specifics" page --- src/app.rs | 1 + src/pages/student/additional_page.rs | 5 ++ src/pages/student/mod.rs | 2 + src/pages/student/shell.rs | 1 + .../student/specific_requirements_page.rs | 78 +++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 src/pages/student/specific_requirements_page.rs diff --git a/src/app.rs b/src/app.rs index fd163c2..65c9333 100644 --- a/src/app.rs +++ b/src/app.rs @@ -150,6 +150,7 @@ fn StudentRoutes() -> impl MatchNestedRoutes + Clone { + } .into_inner() diff --git a/src/pages/student/additional_page.rs b/src/pages/student/additional_page.rs index fcfb991..e79a374 100644 --- a/src/pages/student/additional_page.rs +++ b/src/pages/student/additional_page.rs @@ -49,6 +49,11 @@ pub fn AdditionalPage() -> impl IntoView { description="General parent and sibling information" path="/students/additional/family-info" /> + impl IntoView { SubTabInfo::new("Extracurriculars", "extracurriculars"), SubTabInfo::new("University Info", "university"), SubTabInfo::new("Family Info", "family-info"), + SubTabInfo::new("Specifics", "specifics"), SubTabInfo::new("Financials", "financials"), ], ), diff --git a/src/pages/student/specific_requirements_page.rs b/src/pages/student/specific_requirements_page.rs new file mode 100644 index 0000000..ce8a3df --- /dev/null +++ b/src/pages/student/specific_requirements_page.rs @@ -0,0 +1,78 @@ +use leptos::prelude::*; +use crate::components::{Loading, RadioList, ValidatedForm}; +use crate::pages::student::form_setup::use_student_form; + +#[component] +pub fn StudentSpecificRequirementsPage() -> impl IntoView { + let controller = use_student_form("specifics"); + + view! { + + {move || controller.data_resource.get() + .map(move |_| { + view! { +
+
+ + + + + + + + + +
+
+ }.into_any() + }).collect_view() + } + + } +} \ No newline at end of file