fixup! Allow prefilling add forms
This commit is contained in:
parent
a1a88591f9
commit
bca21a8fe7
|
@ -169,7 +169,7 @@ async fn add_item_class(form: web::Query<NewItemClassForm>) -> actix_web::Result
|
|||
r#type: forms::InputType::Text,
|
||||
name: "parent",
|
||||
title: "Parent",
|
||||
disabled: true,
|
||||
disabled: form.parent.is_none(),
|
||||
value: form.parent.map(|id| id.to_string()),
|
||||
..Default::default()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue