//! Login form. Posts to `/api/htmx/auth/login`. Implemented in F-06.

/// Placeholder until F-06 lands the full form with validation hooks.
pub fn render_login_form() -> String {
    String::from(
        r#"<form data-stub="login-form" hx-post="/api/htmx/auth/login" hx-target="this" hx-swap="outerHTML"></form>"#,
    )
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn stub_points_at_login_endpoint() {
        assert!(render_login_form().contains(r#"hx-post="/api/htmx/auth/login""#));
    }
}
