yes we can add manual errors uwu
This commit is contained in:
parent
897ab437c1
commit
b4ea4e3d1a
1 changed files with 7 additions and 2 deletions
|
@ -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"));
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue