chore: small reorganization to help error appearances
This commit is contained in:
1 parent
116d02029c
commit
bab6cdae28
1 file changed
+6
-6
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user