hyaenidae/accounts/templates/delete_user.rs.html

21 lines
697 B
HTML

@use crate::DeleteUserState;
@use super::inputs::password_input;
@use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title}, Button, Card};
@(card_config: &Card, state: &DeleteUserState)
@:card(card_config, {
<form method="POST" action="@state.delete_user_path()">
@:card_title({ Delete Account })
@:card_body({
@:password_input("password", "Password", state.password(), state.password_error(), state.dark)
})
@:card_body({
@:button_group(&[
Button::primary("Delete Account"),
Button::primary_outline("Cancel").href(&state.accounts_path()),
])
})
</form>
})