20 lines
652 B
HTML
20 lines
652 B
HTML
|
@use crate::DeleteUserState;
|
||
|
@use super::inputs::password_input;
|
||
|
@use hyaenidae_toolkit::{templates::{button_group, card, card_body}, Button, Card};
|
||
|
|
||
|
@(card_config: &Card, state: &DeleteUserState)
|
||
|
|
||
|
@:card(card_config, { Delete Account }, {
|
||
|
<form method="POST" action="@state.delete_user_path()">
|
||
|
@: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>
|
||
|
})
|