@use crate::{ui::ButtonKind, Collection, State, ValidToken}; @use super::{layout_html, button_link_html, return_home_html}; @use uuid::Uuid; @(id: Uuid, collection: &Collection, token: &ValidToken, state: &State) @:layout_html(state, &format!("Delete: {}", collection.title), Some(&format!("Are you sure you want to delete {}", collection.title)), { }, {

Delete @collection.title

Are you sure you want to delete @collection.title

@:button_link_html("Delete Collection", &state.delete_collection_path(id, token, true), ButtonKind::Submit) @:button_link_html("Cancel", &state.edit_collection_path(id, None, token), ButtonKind::Outline)
@:return_home_html(state) })