@use crate::{ui::ButtonKind, Entry, State, ValidToken}; @use super::{layout_html, button_link_html, image_html, return_home_html}; @use uuid::Uuid; @(collection_id: Uuid, id: Uuid, entry: &Entry, token: &ValidToken, state: &State) @:layout_html(state, "Delete Image", Some("Are you sure you want to delete this image?"), { }, {

Delete Image

@:image_html(id, entry, state)

Are you sure you want to delete this image?

@:button_link_html("Delete Image", &state.delete_entry_path(collection_id, id, token, true), ButtonKind::Submit) @:button_link_html("Cancel", &state.edit_collection_path(collection_id, Some(id), token), ButtonKind::Outline)
@:return_home_html(state) })