hyaenidae/accounts/templates/delete_user.rs.html

21 lines
697 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({
2021-01-10 01:46:31 +00:00
@:password_input("password", "Password", state.password(), state.password_error(), state.dark)
2020-12-16 02:40:41 +00:00
})
@:card_body({
@:button_group(&[
2021-01-24 21:29:10 +00:00
Button::primary("Delete Account"),
Button::primary_outline("Cancel").href(&state.accounts_path()),
2020-12-16 02:40:41 +00:00
])
})
</form>
})