fixup! Allow prefilling add forms

This commit is contained in:
Simon Bruder 2024-07-11 23:16:28 +02:00
parent a1a88591f9
commit bca21a8fe7
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -169,7 +169,7 @@ async fn add_item_class(form: web::Query<NewItemClassForm>) -> actix_web::Result
r#type: forms::InputType::Text, r#type: forms::InputType::Text,
name: "parent", name: "parent",
title: "Parent", title: "Parent",
disabled: true, disabled: form.parent.is_none(),
value: form.parent.map(|id| id.to_string()), value: form.parent.map(|id| id.to_string()),
..Default::default() ..Default::default()
}) })