hyaenidae/server/templates/profiles/delete.rs.html
asonix 4ff824b92d Delete 'Back' in favor of mobile nav query
Add submissions to home page
Add drafts page
Validate handle, display name, description, submission: title, description
Add block checks to submission iterator
Add user info to submission page
Abstract dark preference to a single source, not yet configurable
2021-01-10 22:09:47 -06:00

21 lines
858 B
HTML

@use crate::{templates::{layouts::home, profiles::view}, nav::NavState, profiles::Profile};
@use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, statics::button_js}, Button, Card};
@(profile: &Profile, nav_state: &NavState)
@:home("Delete Profile", &format!("Delete {}", profile.name()), nav_state, {
<script src="/toolkit/@button_js.name"></script>
}, {
@:view("standalone account-page", profile)
@:card(&Card::full_width().dark(nav_state.dark()), {
<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(nav_state.dark())])
})
</form>
})
})