Release preparation for forms #55

Merged
BobdaFett merged 8 commits from ci/remove-debug-info into main 2026-01-17 04:18:48 +00:00
Showing only changes of commit bab6cdae28 - Show all commits
+27 -27
View File
@@ -541,19 +541,19 @@ fn ScholarshipForm(
} }
> >
<Suspense fallback=Loading> <Suspense fallback=Loading>
<ValidatedForm {move || {
on_submit=Callback::new(on_submit) scholarship_info
title="Scholarship Info Form" .get()
description="Create or edit a scholarship. Input all information and click Submit." .map(|res_scholarship| {
> match res_scholarship {
{move || { Ok(_) => {
scholarship_info Either::Left(
.get() view! {
.map(|res_scholarship| { <ValidatedForm
match res_scholarship { on_submit=Callback::new(on_submit)
Ok(_) => { title="Scholarship Info Form"
Either::Left( description="Create or edit a scholarship. Input all information and click Submit."
view! { >
<Row> <Row>
<OutlinedTextField <OutlinedTextField
label="Scholarship Name" label="Scholarship Name"
@@ -694,21 +694,21 @@ fn ScholarshipForm(
displayed_text=misc_text displayed_text=misc_text
/> />
</Row> </Row>
}, </ValidatedForm>
) },
} )
Err(err) => {
Either::Right(
view! {
<p>"Error while getting scholarship: "{err.to_string()}</p>
},
)
}
} }
}) Err(err) => {
.collect_view() Either::Right(
}} view! {
</ValidatedForm> <p>"Error while getting scholarship: "{err.to_string()}</p>
},
)
}
}
})
.collect_view()
}}
</Suspense> </Suspense>
</Show> </Show>
</Panel> </Panel>