hyaenidae/server/templates/profiles/delete.rs.html
asonix 6da83926a0 Remove StateError
Use Dark Theme
Add profile deletion
2021-01-08 22:35:35 -06:00

22 lines
887 B
HTML

@use crate::{templates::{layouts::home, profiles::view}, profiles::Profile};
@use hyaenidae_accounts::LogoutState;
@use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, statics::button_js}, Button, Card};
@(profile: &Profile, logout: LogoutState)
@:home("Delete Profile", &format!("Delete {}", profile.name()), &Some(logout), {
<script src="/toolkit/@button_js.name"></script>
}, {
@:view("standalone account-page", profile)
@:card(&Card::full_width().classes(&["account-page"]).dark(true), {
<form method="POST" action="/profiles/delete">
@:card_title({ Delete Profile })
@:card_body({
Are you sure you want to delete @profile.name()?
})
@:card_body({
@:button_group(&[&Button::primary("Delete Profile").dark(true)])
})
</form>
})
})