style: rustfmt run

This commit is contained in:
alphafetus committed 2026-03-06 07:39:28 -05:00
1 parent 1427c51bd3
commit 05ef850f82
9 files changed
+49 -30

No files matched your search

+5 -2
View File
@@ -1,11 +1,11 @@
use crate::components::ToastList; use crate::components::ToastList;
use crate::components::login::ProviderLoginContext; use crate::components::login::ProviderLoginContext;
use crate::pages::{student, FormClosedPage};
use crate::pages::{ use crate::pages::{
AdminHomePage, AdminProviderPage, AdminScholarshipPage, AdminShell, AdminUtilsPage, AdminHomePage, AdminProviderPage, AdminScholarshipPage, AdminShell, AdminUtilsPage,
ApplicantsPageFallback, AuthCallbackPage, LoanerBorrowForm, LoanerFallback, LoanerReturnForm, ApplicantsPageFallback, AuthCallbackPage, LoanerBorrowForm, LoanerFallback, LoanerReturnForm,
LoanerShell, ProviderContactPage, ProviderPortal, LoanerShell, ProviderContactPage, ProviderPortal,
}; };
use crate::pages::{FormClosedPage, student};
use leptos::prelude::*; use leptos::prelude::*;
use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context}; use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context};
use leptos_oidc::AuthSignal; use leptos_oidc::AuthSignal;
@@ -150,7 +150,10 @@ fn StudentRoutes() -> impl MatchNestedRoutes + Clone {
<Route path=path!("additional/university") view=student::StudentUniversityPage /> <Route path=path!("additional/university") view=student::StudentUniversityPage />
<Route path=path!("additional/family-info") view=student::StudentFamilyPage /> <Route path=path!("additional/family-info") view=student::StudentFamilyPage />
<Route path=path!("additional/financials") view=student::StudentFinancialPage /> <Route path=path!("additional/financials") view=student::StudentFinancialPage />
<Route path=path!("additional/specifics") view=student::StudentSpecificRequirementsPage /> <Route
path=path!("additional/specifics")
view=student::StudentSpecificRequirementsPage
/>
</ParentRoute> </ParentRoute>
} }
.into_inner() .into_inner()
+2 -1
View File
@@ -57,5 +57,6 @@ pub fn DashboardButton(
</div> </div>
</button> </button>
}.into_any() }
.into_any()
} }
+7 -8
View File
@@ -1,5 +1,5 @@
use leptos::prelude::*; use crate::components::Banner;
use crate::components::Banner; use leptos::prelude::*;
#[component] #[component]
pub fn FormClosedPage() -> impl IntoView { pub fn FormClosedPage() -> impl IntoView {
@@ -7,14 +7,13 @@ pub fn FormClosedPage() -> impl IntoView {
// about which form is closed right now. // about which form is closed right now.
view! { view! {
<Banner <Banner title="R15 Scholarships" logo="/PHS_Stacked_Acronym.png" path="/providers" />
title="R15 Scholarships"
logo="/PHS_Stacked_Acronym.png"
path="/providers"
/>
<div class="flex flex-1 flex-col gap-4 items-center m-4"> <div class="flex flex-1 flex-col gap-4 items-center m-4">
<div class="font-bold text-3xl">"This form has been closed!"</div> <div class="font-bold text-3xl">"This form has been closed!"</div>
<div class="text-lg">"If you believe this is an error, please contact Sara Smith at "<a href="mailto:ssmith@region15.org">"ssmith@region15.org"</a></div> <div class="text-lg">
"If you believe this is an error, please contact Sara Smith at "
<a href="mailto:ssmith@region15.org">"ssmith@region15.org"</a>
</div>
</div> </div>
} }
} }
+2 -2
View File
@@ -1,7 +1,7 @@
use leptos::prelude::*; use crate::components::{Loading, MultiEntry, ValidatedForm};
use crate::components::{Loading, MultiEntry, ValidatedForm};
use crate::input; use crate::input;
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
use leptos::prelude::*;
#[component] #[component]
pub fn StudentAthleticsPage() -> impl IntoView { pub fn StudentAthleticsPage() -> impl IntoView {
+6 -2
View File
@@ -1,6 +1,6 @@
use leptos::prelude::*;
use crate::components::{Loading, OutlinedTextField, Select, TextFieldType, ValidatedForm}; use crate::components::{Loading, OutlinedTextField, Select, TextFieldType, ValidatedForm};
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
use leptos::prelude::*;
#[component] #[component]
pub fn StudentDemographicsPage() -> impl IntoView { pub fn StudentDemographicsPage() -> impl IntoView {
@@ -49,7 +49,11 @@ pub fn StudentDemographicsPage() -> impl IntoView {
data_map=controller.data_map data_map=controller.data_map
data_member="dob" data_member="dob"
required=true required=true
value_list=vec!["Male".to_string(), "Female".to_string(), "Prefer not to answer/Other".to_string()] value_list=vec![
"Male".to_string(),
"Female".to_string(),
"Prefer not to answer/Other".to_string(),
]
/> />
<OutlinedTextField <OutlinedTextField
label="Student ID Number:" label="Student ID Number:"
+1 -2
View File
@@ -30,8 +30,7 @@ pub fn StudentFinancialPage() -> impl IntoView {
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<Header <Header
title="Financial Information" title="Financial Information"
description= description="Please upload your FAFSA SAR (Student Aid Report) here. This information is NOT required,
"Please upload your FAFSA SAR (Student Aid Report) here. This information is NOT required,
but some scholarships may recognize this as a requirement." but some scholarships may recognize this as a requirement."
/> />
<Suspense fallback=Loading> <Suspense fallback=Loading>
+4 -2
View File
@@ -1,5 +1,5 @@
use leptos::prelude::*;
use crate::components::DashboardButton; use crate::components::DashboardButton;
use leptos::prelude::*;
#[component] #[component]
pub fn StudentHomePage() -> impl IntoView { pub fn StudentHomePage() -> impl IntoView {
@@ -9,7 +9,9 @@ pub fn StudentHomePage() -> impl IntoView {
<div class="font-bold text-3xl">"Region 15 Scholarship Application"</div> <div class="font-bold text-3xl">"Region 15 Scholarship Application"</div>
<div class="text-lg"> <div class="text-lg">
"Welcome to the R15 general scholarship application! If you have any questions, please direct them to Sara Smith at " "Welcome to the R15 general scholarship application! If you have any questions, please direct them to Sara Smith at "
<a class="text-blue-500 underline" href="mailto:ssmith@region15.org">"ssmith@region15.org"</a>"." <a class="text-blue-500 underline" href="mailto:ssmith@region15.org">
"ssmith@region15.org"
</a>"."
</div> </div>
<div class="text-lg">"Here are some links to get you started:"</div> <div class="text-lg">"Here are some links to get you started:"</div>
<DashboardButton <DashboardButton
@@ -1,6 +1,6 @@
use leptos::prelude::*; use crate::components::{Loading, RadioList, ValidatedForm};
use crate::components::{Loading, RadioList, ValidatedForm};
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
use leptos::prelude::*;
#[component] #[component]
pub fn StudentSpecificRequirementsPage() -> impl IntoView { pub fn StudentSpecificRequirementsPage() -> impl IntoView {
@@ -8,7 +8,10 @@ pub fn StudentSpecificRequirementsPage() -> impl IntoView {
view! { view! {
<Suspense fallback=Loading> <Suspense fallback=Loading>
{move || controller.data_resource.get() {move || {
controller
.data_resource
.get()
.map(move |_| { .map(move |_| {
view! { view! {
<div class="flex-1" /> <div class="flex-1" />
@@ -33,7 +36,7 @@ pub fn StudentSpecificRequirementsPage() -> impl IntoView {
required=true required=true
/> />
<RadioList <RadioList
label="Do you have a family member that is or has served in the US military?" label="Do you have a family member that is or has served in the US military? (Note: you may be asked for proof of service)"
data_map=controller.data_map data_map=controller.data_map
data_member="family_military_service" data_member="family_military_service"
items=vec!["Yes".to_string(), "No".to_string()] items=vec!["Yes".to_string(), "No".to_string()]
@@ -70,9 +73,11 @@ pub fn StudentSpecificRequirementsPage() -> impl IntoView {
</ValidatedForm> </ValidatedForm>
</div> </div>
<div class="flex-1" /> <div class="flex-1" />
}.into_any()
}).collect_view()
} }
.into_any()
})
.collect_view()
}}
</Suspense> </Suspense>
} }
} }
+11 -5
View File
@@ -1,7 +1,7 @@
use leptos::prelude::*; use crate::components::{Loading, MultiEntry, ValidatedForm};
use crate::components::{Loading, MultiEntry, ValidatedForm};
use crate::input; use crate::input;
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
use leptos::prelude::*;
#[component] #[component]
pub fn StudentWorkExperiencePage() -> impl IntoView { pub fn StudentWorkExperiencePage() -> impl IntoView {
@@ -26,9 +26,15 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
Text, "job_title", "Job Title:", true, "Waiter, Cashier, etc..." Text, "job_title", "Job Title:", true, "Waiter, Cashier, etc..."
), ),
input!(Text, "employer", "Employer:", true, "Your employer's name..."), input!(Text, "employer", "Employer:", true, "Your employer's name..."),
input!(Text, "start_date", "Approximate start date:", true, "01/01/2000"), input!(
input!(Text, "end_date", "End date:", true, "01/01/2026, or current if not applicable"), Text, "start_date", "Approximate start date:", true, "01/01/2000"
input!(Number, "num_hours", "Approximate number of hours per week:", true, "25") ),
input!(
Text, "end_date", "End date:", true, "01/01/2026, or current if not applicable"
),
input!(
Number, "num_hours", "Approximate number of hours per week:", true, "25"
),
] ]
/> />
</ValidatedForm> </ValidatedForm>