style: run rustfmt
This commit is contained in:
1 parent
ebb6fe500c
commit
dddc9e4192
1 file changed
+14
-5
@@ -1,6 +1,6 @@
|
|||||||
use leptos::prelude::*;
|
use crate::components::{Loading, OutlinedTextField, TextFieldType, ValidatedForm};
|
||||||
use crate::components::{Loading, OutlinedTextField, 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 StudentAcademicsPage() -> impl IntoView {
|
pub fn StudentAcademicsPage() -> impl IntoView {
|
||||||
@@ -8,11 +8,18 @@ pub fn StudentAcademicsPage() -> impl IntoView {
|
|||||||
|
|
||||||
view! {
|
view! {
|
||||||
<Suspense fallback=Loading>
|
<Suspense fallback=Loading>
|
||||||
{move || controller.data_resource.get().map(|_|
|
{move || {
|
||||||
|
controller
|
||||||
|
.data_resource
|
||||||
|
.get()
|
||||||
|
.map(|_| {
|
||||||
view! {
|
view! {
|
||||||
<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="Academic Information" on_submit=controller.submit_action>
|
<ValidatedForm
|
||||||
|
title="Academic Information"
|
||||||
|
on_submit=controller.submit_action
|
||||||
|
>
|
||||||
<OutlinedTextField
|
<OutlinedTextField
|
||||||
label="Unweighted GPA:"
|
label="Unweighted GPA:"
|
||||||
data_map=controller.data_map
|
data_map=controller.data_map
|
||||||
@@ -56,8 +63,10 @@ pub fn StudentAcademicsPage() -> impl IntoView {
|
|||||||
</ValidatedForm>
|
</ValidatedForm>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1" />
|
<div class="flex flex-1" />
|
||||||
}).collect_view()
|
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.collect_view()
|
||||||
|
}}
|
||||||
</Suspense>
|
</Suspense>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user