style: rustfmt run

This commit is contained in:
alphafetus committed 2026-02-09 12:12:38 -05:00
1 parent caec4fb017
commit 6a24c18d6f
7 files changed
+22 -39

No files matched your search

+2 -10
View File
@@ -42,21 +42,13 @@ pub fn Banner(
<div class="w-screen bg-red-900"> <div class="w-screen bg-red-900">
<div class="flex flex-row items-center gap-4 p-6 pb-2"> <div class="flex flex-row items-center gap-4 p-6 pb-2">
<div class="flex-shrink-0"> <div class="flex-shrink-0">
<img <img src=logo class="h-10 w-10 cursor-pointer" alt="icon" on:click=on_click />
src=logo
class="h-10 w-10 cursor-pointer"
alt="icon"
on:click=on_click
/>
</div> </div>
<div class="flex-1"> <div class="flex-1">
<h2 class="text-white text-2xl font-bold">{title.clone()}</h2> <h2 class="text-white text-2xl font-bold">{title.clone()}</h2>
</div> </div>
</div> </div>
<div <div class="flex flex-row items-center gap-4" class=("p-2", move || !show_back.get())>
class="flex flex-row items-center gap-4"
class=("p-2", move || !show_back.get())
>
<Show when=move || show_back.get()> <Show when=move || show_back.get()>
<a <a
href=path href=path
+1 -1
View File
@@ -157,7 +157,7 @@ pub fn MultiEntry(
update_entry_list(&mut list, &child_map); update_entry_list(&mut list, &child_map);
update_parent_list(list); update_parent_list(list);
}); });
view! { view! {
<Entry <Entry
data_map=map_signal data_map=map_signal
+1 -4
View File
@@ -12,10 +12,7 @@ pub fn StudentDemographicsPage() -> impl IntoView {
let controller = use_student_form("demographics"); let controller = use_student_form("demographics");
view! { view! {
<Show <Show when=move || controller.data_resource.get().is_some() fallback=Loading>
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action> <ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action>
+11 -7
View File
@@ -8,13 +8,13 @@ pub fn StudentExtracurricularsPage() -> impl IntoView {
let controller = use_student_form("demographics"); let controller = use_student_form("demographics");
view! { view! {
<Show <Show when=move || controller.data_resource.get().is_some() fallback=Loading>
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Extracurricular Information" on_submit=controller.submit_action> <ValidatedForm
title="Extracurricular Information"
on_submit=controller.submit_action
>
// Inputs here. // Inputs here.
<OutlinedTextField <OutlinedTextField
label="Total number of service hours:" label="Total number of service hours:"
@@ -30,10 +30,14 @@ pub fn StudentExtracurricularsPage() -> impl IntoView {
data_map=controller.data_map data_map=controller.data_map
data_member="extracurricular" data_member="extracurricular"
schema=vec![ schema=vec![
input!(Text, "activity_name", "Activity Name:", true, "Some activity..."), input!(
Text, "activity_name", "Activity Name:", true, "Some activity..."
),
input!(Number, "num_hours", "Number of hours completed:", true, "40"), input!(Number, "num_hours", "Number of hours completed:", true, "40"),
input!(Number, "num_weeks", "Number of weeks participated:", true, "3"), input!(Number, "num_weeks", "Number of weeks participated:", true, "3"),
input!(Text, "special_involvement", "Any special involvement:", false, ""), input!(
Text, "special_involvement", "Any special involvement:", false, ""
),
input!( input!(
Checkbox, "grades", "Grades Participated:", true, ["9th", "10th", "11th", "12th"] Checkbox, "grades", "Grades Participated:", true, ["9th", "10th", "11th", "12th"]
), ),
+1 -4
View File
@@ -7,10 +7,7 @@ pub fn StudentFamilyPage() -> impl IntoView {
let controller = use_student_form("family"); let controller = use_student_form("family");
view! { view! {
<Show <Show when=move || controller.data_resource.get().is_some() fallback=Loading>
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Family Information" on_submit=controller.submit_action> <ValidatedForm title="Family Information" on_submit=controller.submit_action>
+2 -8
View File
@@ -10,10 +10,7 @@ pub fn StudentUniversityPage() -> impl IntoView {
// major, study field, intended career, college_acceptance // major, study field, intended career, college_acceptance
view! { view! {
<Show <Show when=move || controller.data_resource.get().is_some() fallback=Loading>
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="University Information" on_submit=controller.submit_action> <ValidatedForm title="University Information" on_submit=controller.submit_action>
@@ -56,10 +53,7 @@ pub fn StudentUniversityPage() -> impl IntoView {
data_map=controller.data_map data_map=controller.data_map
data_member="college_acceptance" data_member="college_acceptance"
required=true required=true
value_list=vec![ value_list=vec!["Yes".to_string(), "No".to_string()]
"Yes".to_string(),
"No".to_string()
]
/> />
// TODO Make this a select dropdown. // TODO Make this a select dropdown.
<OutlinedTextField <OutlinedTextField
+4 -5
View File
@@ -9,10 +9,7 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
let controller = use_student_form("workexp"); let controller = use_student_form("workexp");
view! { view! {
<Show <Show when=move || controller.data_resource.get().is_some() fallback=Loading>
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Student Work Experience" on_submit=controller.submit_action> <ValidatedForm title="Student Work Experience" on_submit=controller.submit_action>
@@ -22,7 +19,9 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
data_map=controller.data_map data_map=controller.data_map
data_member="extracurricular" data_member="extracurricular"
schema=vec![ schema=vec![
input!(Text, "job_title", "Job Title:", true, "Waiter, Cashier, etc..."), input!(
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!(Number, "start_date", "Start date:", true, "40"), input!(Number, "start_date", "Start date:", true, "40"),
input!(Number, "end_date", "End date:", true, "3"), input!(Number, "end_date", "End date:", true, "3"),