chore: small reorganization to help error appearances

This commit is contained in:
alphafetus committed 2026-01-16 21:27:49 -05:00
1 parent 116d02029c
commit bab6cdae28
1 file changed
+6 -6
+6 -6
View File
@@ -541,11 +541,6 @@ fn ScholarshipForm(
} }
> >
<Suspense fallback=Loading> <Suspense fallback=Loading>
<ValidatedForm
on_submit=Callback::new(on_submit)
title="Scholarship Info Form"
description="Create or edit a scholarship. Input all information and click Submit."
>
{move || { {move || {
scholarship_info scholarship_info
.get() .get()
@@ -554,6 +549,11 @@ fn ScholarshipForm(
Ok(_) => { Ok(_) => {
Either::Left( Either::Left(
view! { view! {
<ValidatedForm
on_submit=Callback::new(on_submit)
title="Scholarship Info Form"
description="Create or edit a scholarship. Input all information and click Submit."
>
<Row> <Row>
<OutlinedTextField <OutlinedTextField
label="Scholarship Name" label="Scholarship Name"
@@ -694,6 +694,7 @@ fn ScholarshipForm(
displayed_text=misc_text displayed_text=misc_text
/> />
</Row> </Row>
</ValidatedForm>
}, },
) )
} }
@@ -708,7 +709,6 @@ fn ScholarshipForm(
}) })
.collect_view() .collect_view()
}} }}
</ValidatedForm>
</Suspense> </Suspense>
</Show> </Show>
</Panel> </Panel>