feat: create financial_page

This commit is contained in:
alphafetus committed 2026-03-02 13:48:29 -05:00
1 parent c035115126
commit e8b0ceeb7b
5 files changed
+26 -3

No files matched your search

+1
View File
@@ -148,6 +148,7 @@ fn StudentRoutes() -> impl MatchNestedRoutes + Clone {
/>
<Route path=path!("additional/university") view=student::StudentUniversityPage />
<Route path=path!("additional/family-info") view=student::StudentFamilyPage />
<Route path=path!("additional/financials") view=student::StudentFinancialPage />
</ParentRoute>
}
.into_inner()
-3
View File
@@ -1,4 +1,3 @@
use crate::components::FileDrop;
use leptos::prelude::*;
#[component]
@@ -9,8 +8,6 @@ pub fn AdditionalPage() -> impl IntoView {
<div class="text-lg">
"This is just a placeholder for now. We'll show redirect buttons to each form."
</div>
<div class="text-lg">"Here's a testing file input!"</div>
<FileDrop name="testing" form_id="student_additional" />
</div>
}
}
+22
View File
@@ -0,0 +1,22 @@
use crate::components::{FileDrop, Header};
use leptos::prelude::*;
#[component]
pub fn StudentFinancialPage() -> impl IntoView {
// This is where we'll get information about the files that have been uploaded.
// For now, we'll leave it blank.
view! {
<div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6">
// <ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action>
<Header
title="Financial Information"
description="Please upload your FAFSA SAR (Student Aid Report) here."
/>
<FileDrop name="fafsa" form_id="financial_info" />
// </ValidatedForm>
</div>
<div class="flex flex-1" />
}
}
+2
View File
@@ -5,6 +5,7 @@ mod demographics_page;
mod eligibility_page;
mod extracurriculars_page;
mod family_info_page;
mod financial_page;
mod form_setup;
mod home_page;
mod shell;
@@ -19,6 +20,7 @@ pub use demographics_page::*;
pub use eligibility_page::*;
pub use extracurriculars_page::*;
pub use family_info_page::*;
pub use financial_page::*;
pub use home_page::*;
pub use shell::*;
pub use test_display::*;
+1
View File
@@ -35,6 +35,7 @@ pub fn StudentShell() -> impl IntoView {
SubTabInfo::new("Extracurriculars", "extracurriculars"),
SubTabInfo::new("University Info", "university"),
SubTabInfo::new("Family Info", "family-info"),
SubTabInfo::new("Financials", "financials"),
],
),
),