feat: simplify tab code slightly
This commit is contained in:
1 parent
b21887f82b
commit
b4f7ff6382
6 files changed
+62
-38
No files matched your search
@@ -0,0 +1,13 @@
|
||||
use leptos::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn StudentAthleticsPage() -> impl IntoView {
|
||||
view! {
|
||||
<div class="flex flex-1 flex-col gap-4 items-center m-4">
|
||||
<div class="font-bold text-3xl">"Student Athletics Form"</div>
|
||||
<div class="text-lg">
|
||||
"This is just a placeholder for now. This will display the athletics form."
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,10 @@ mod shell;
|
||||
mod home_page;
|
||||
mod demographics_page;
|
||||
mod additional_page;
|
||||
mod athletics_page;
|
||||
|
||||
pub use shell::*;
|
||||
pub use home_page::*;
|
||||
pub use demographics_page::*;
|
||||
pub use additional_page::*;
|
||||
pub use additional_page::*;
|
||||
pub use athletics_page::*;
|
||||
+16
-13
@@ -13,19 +13,22 @@ pub fn StudentShell() -> impl IntoView {
|
||||
<Banner title="R15 Student Scholarship Application" logo="/PHS_Stacked_Acronym.png" />
|
||||
<AuthLoaded fallback=Loading>
|
||||
<Authenticated unauthenticated=UnauthenticatedPage>
|
||||
<TabSidebarList tabs=vec![
|
||||
TabInfo::new("Home", "/students/home", None),
|
||||
TabInfo::new("Demographics", "/students/demographics",
|
||||
Some(vec![
|
||||
SubTabInfo::new("Testing", "/students/testing"),
|
||||
SubTabInfo::new("Testing Again!", "/students/testing/again")
|
||||
])),
|
||||
TabInfo::new("Additional Info", "/students/additional",
|
||||
Some(vec![
|
||||
SubTabInfo::new("Testing", "/students/testing"),
|
||||
SubTabInfo::new("Testing Again!", "/students/testing/again")
|
||||
])),
|
||||
] />
|
||||
<TabSidebarList
|
||||
base_path="students"
|
||||
tabs=vec![
|
||||
TabInfo::new("Home", "home", None),
|
||||
TabInfo::new("Demographics", "demographics", None),
|
||||
TabInfo::new("Additional Info", "additional",
|
||||
Some(vec![
|
||||
SubTabInfo::new("Academics", "academics"),
|
||||
SubTabInfo::new("Athletics", "athletics"),
|
||||
SubTabInfo::new("Work Experience", "work-experience"),
|
||||
SubTabInfo::new("Extracurriculars", "extracurriculars"),
|
||||
SubTabInfo::new("University Info", "university"),
|
||||
SubTabInfo::new("Parent Info", "parent-info")
|
||||
])),
|
||||
]
|
||||
/>
|
||||
</Authenticated>
|
||||
</AuthLoaded>
|
||||
</StudentLoginContext>
|
||||
|
||||
Reference in new issue
Block a user