feat: add toasts and reactive feedback to forms on submission
Users were not able to tell that they had submitted before this.
This commit is contained in:
1 parent
def5c8696b
commit
07fae5878f
10 files changed
+92
-10
No files matched your search
@@ -5,7 +5,7 @@ use leptos::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn StudentWorkExperiencePage() -> impl IntoView {
|
||||
let controller = use_student_form("workexp");
|
||||
let controller = use_student_form("workexp", true);
|
||||
|
||||
view! {
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
@@ -15,6 +15,7 @@ pub fn StudentWorkExperiencePage() -> impl IntoView {
|
||||
title="Student Work Experience"
|
||||
description="Here you may add information about your past/current workplace."
|
||||
on_submit=controller.submit_action
|
||||
disabled=controller.submit_pending
|
||||
>
|
||||
<MultiEntry
|
||||
label="Work Experience:"
|
||||
|
||||
Reference in new issue
Block a user