hyaenidae/server/templates/profiles/delete.rs.html
asonix 5f0682ee22 Make mobile nav not require page refresh when JS enabled
Make top bar stick to top of screen
Make wide view show rows of 4
Improve notification page styles, text
Add button js to more pages
2021-01-15 22:50:15 -06:00

23 lines
882 B
HTML

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