style: rustfmt run
This commit is contained in:
1 parent
caec4fb017
commit
6a24c18d6f
7 files changed
+22
-39
No files matched your search
@@ -42,21 +42,13 @@ pub fn Banner(
|
||||
<div class="w-screen bg-red-900">
|
||||
<div class="flex flex-row items-center gap-4 p-6 pb-2">
|
||||
<div class="flex-shrink-0">
|
||||
<img
|
||||
src=logo
|
||||
class="h-10 w-10 cursor-pointer"
|
||||
alt="icon"
|
||||
on:click=on_click
|
||||
/>
|
||||
<img src=logo class="h-10 w-10 cursor-pointer" alt="icon" on:click=on_click />
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h2 class="text-white text-2xl font-bold">{title.clone()}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-row items-center gap-4"
|
||||
class=("p-2", move || !show_back.get())
|
||||
>
|
||||
<div class="flex flex-row items-center gap-4" class=("p-2", move || !show_back.get())>
|
||||
<Show when=move || show_back.get()>
|
||||
<a
|
||||
href=path
|
||||
|
||||
@@ -157,7 +157,7 @@ pub fn MultiEntry(
|
||||
update_entry_list(&mut list, &child_map);
|
||||
update_parent_list(list);
|
||||
});
|
||||
|
||||
|
||||
view! {
|
||||
<Entry
|
||||
data_map=map_signal
|
||||
|
||||
@@ -12,10 +12,7 @@ pub fn StudentDemographicsPage() -> impl IntoView {
|
||||
let controller = use_student_form("demographics");
|
||||
|
||||
view! {
|
||||
<Show
|
||||
when=move || controller.data_resource.get().is_some()
|
||||
fallback=Loading
|
||||
>
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
<div class="flex flex-1" />
|
||||
<div class="flex flex-col flex-2 mt-6">
|
||||
<ValidatedForm title="Student Demographic Form" on_submit=controller.submit_action>
|
||||
|
||||
@@ -8,13 +8,13 @@ pub fn StudentExtracurricularsPage() -> impl IntoView {
|
||||
let controller = use_student_form("demographics");
|
||||
|
||||
view! {
|
||||
<Show
|
||||
when=move || controller.data_resource.get().is_some()
|
||||
fallback=Loading
|
||||
>
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
<div class="flex flex-1" />
|
||||
<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.
|
||||
<OutlinedTextField
|
||||
label="Total number of service hours:"
|
||||
@@ -30,10 +30,14 @@ pub fn StudentExtracurricularsPage() -> impl IntoView {
|
||||
data_map=controller.data_map
|
||||
data_member="extracurricular"
|
||||
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_weeks", "Number of weeks participated:", true, "3"),
|
||||
input!(Text, "special_involvement", "Any special involvement:", false, ""),
|
||||
input!(
|
||||
Text, "special_involvement", "Any special involvement:", false, ""
|
||||
),
|
||||
input!(
|
||||
Checkbox, "grades", "Grades Participated:", true, ["9th", "10th", "11th", "12th"]
|
||||
),
|
||||
|
||||
@@ -7,10 +7,7 @@ pub fn StudentFamilyPage() -> impl IntoView {
|
||||
let controller = use_student_form("family");
|
||||
|
||||
view! {
|
||||
<Show
|
||||
when=move || controller.data_resource.get().is_some()
|
||||
fallback=Loading
|
||||
>
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
<div class="flex flex-1" />
|
||||
<div class="flex flex-col flex-2 mt-6">
|
||||
<ValidatedForm title="Family Information" on_submit=controller.submit_action>
|
||||
|
||||
@@ -10,10 +10,7 @@ pub fn StudentUniversityPage() -> impl IntoView {
|
||||
// major, study field, intended career, college_acceptance
|
||||
|
||||
view! {
|
||||
<Show
|
||||
when=move || controller.data_resource.get().is_some()
|
||||
fallback=Loading
|
||||
>
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
<div class="flex flex-1" />
|
||||
<div class="flex flex-col flex-2 mt-6">
|
||||
<ValidatedForm title="University Information" on_submit=controller.submit_action>
|
||||
@@ -56,10 +53,7 @@ pub fn StudentUniversityPage() -> impl IntoView {
|
||||
data_map=controller.data_map
|
||||
data_member="college_acceptance"
|
||||
required=true
|
||||
value_list=vec![
|
||||
"Yes".to_string(),
|
||||
"No".to_string()
|
||||
]
|
||||
value_list=vec!["Yes".to_string(), "No".to_string()]
|
||||
/>
|
||||
// TODO Make this a select dropdown.
|
||||
<OutlinedTextField
|
||||
|
||||
@@ -9,10 +9,7 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
|
||||
let controller = use_student_form("workexp");
|
||||
|
||||
view! {
|
||||
<Show
|
||||
when=move || controller.data_resource.get().is_some()
|
||||
fallback=Loading
|
||||
>
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
<div class="flex flex-1" />
|
||||
<div class="flex flex-col flex-2 mt-6">
|
||||
<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_member="extracurricular"
|
||||
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!(Number, "start_date", "Start date:", true, "40"),
|
||||
input!(Number, "end_date", "End date:", true, "3"),
|
||||
|
||||
Reference in new issue
Block a user