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 StudentAthleticsPage() -> impl IntoView {
|
||||
let controller = use_student_form("athletics");
|
||||
let controller = use_student_form("athletics", true);
|
||||
|
||||
view! {
|
||||
<Show when=move || controller.data_resource.get().is_some() fallback=Loading>
|
||||
@@ -15,6 +15,7 @@ pub fn StudentAthleticsPage() -> impl IntoView {
|
||||
title="Athletics Information"
|
||||
description="This information will allow you to be eligible for any scholarships that have specific sports requirements."
|
||||
on_submit=controller.submit_action
|
||||
disabled=controller.submit_pending
|
||||
>
|
||||
<MultiEntry
|
||||
label="Athletics Activities:"
|
||||
|
||||
Reference in new issue
Block a user