@use crate::extensions::ProfileExt; @use crate::templates::button_js; @use crate::{templates::layouts::home, nav::NavState, profiles::ReportView}; @use hyaenidae_toolkit::{templates::button_group, Button}; @use hyaenidae_toolkit::{templates::{card, card_body, card_title}, Card}; @use hyaenidae_toolkit::templates::profile; @use hyaenidae_toolkit::templates::text_input; @(rview: &ReportView, nav_state: &NavState) @:home("Report Profile", rview.profile.description().unwrap_or(&format!("Report {}'s profile on Hyaenidae", rview.profile.name())), nav_state, { @:button_js() }, { @:card(&Card::full_width().dark(nav_state.dark()), { @:profile(&rview.profile().heading().dark(nav_state.dark())) }) @:card(&Card::full_width().dark(nav_state.dark()), {
@:card_title({ Report Profile }) @:card_body({

Please include any relevant information for moderators to act on this report.

@:text_input(&rview.input) }) @:card_body({ @:button_group(&[ Button::primary("Report").dark(nav_state.dark()), Button::secondary("Back to Profile").href(&rview.profile.view_path()).dark(nav_state.dark()), ]) })
}) })