hyaenidae/accounts/templates/delete_user.rs.html

21 lines
685 B
HTML
Raw Normal View History

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