@:text_input("title", Some("Title"), Some(&collection.title)) @:text_area("description", Some("Description"), Some(&collection.description)) @:button("Update Collection", ButtonKind::Submit) @:button_link("Delete Collection", &state.delete_collection_path(collection_id, token), ButtonKind::Outline)
@:image_preview(entry, state) @entry.title @entry.description @:text_input("title", Some("Title"), Some(&entry.title)) @:text_area("description", Some("Description"), Some(&entry.description)) @:button("Update Image", ButtonKind::Submit) @:button_link("Delete Image", &state.delete_entry_path(collection_id, *id, token), ButtonKind::Outline)
Add Image @:file_input("images[]", Some("Select Image"), Some(crate::accept()), false) @:button("Upload", ButtonKind::Submit)