yes we can add manual errors uwu

This commit is contained in:
Artemis 2025-02-11 12:08:49 +01:00
parent 897ab437c1
commit b4ea4e3d1a

View file

@ -1,5 +1,5 @@
use rocket::{
form::{Context, Contextual, Form},
form::{Context, Contextual, Error, Form},
serde::Serialize,
};
use rocket_dyn_templates::{context, Template};
@ -70,7 +70,7 @@ pub async fn handle_in_page_forms(
meta: CommonTemplateState,
mut db: DollTagsDb,
user: Admin,
form: Form<Forms<'_>>,
mut form: Form<Forms<'_>>,
) -> PageResult {
println!("{:?}", form);
@ -82,6 +82,11 @@ pub async fn handle_in_page_forms(
"woof handover of {} to {}",
values.tag_id, values.dest_account
);
// form.tag_handover
// .context
// .push_error(Error::validation("meow").with_name("tag_handover.tag_id"));
}
}
};