diff --git a/src/management.rs b/src/management.rs index f893976..7680be2 100644 --- a/src/management.rs +++ b/src/management.rs @@ -5,8 +5,14 @@ use crate::{AppState, axum_ructe::render}; pub(crate) fn router() -> axum::Router { axum::Router::new() .route("/", get(home)) + .route("/dancers", get(dancers)) } async fn home() -> impl IntoResponse { render!(crate::templates::management_html) } + + +async fn dancers() -> impl IntoResponse { + render!(crate::templates::dancers_html) +} diff --git a/templates/components/management_fragment.rs.html b/templates/components/management_fragment.rs.html index c279cde..28ebac3 100644 --- a/templates/components/management_fragment.rs.html +++ b/templates/components/management_fragment.rs.html @@ -7,7 +7,7 @@
- +
diff --git a/templates/components/return_to_main.rs.html b/templates/components/return_to_main.rs.html index 3f91ec5..da799bc 100644 --- a/templates/components/return_to_main.rs.html +++ b/templates/components/return_to_main.rs.html @@ -2,6 +2,8 @@
- +
diff --git a/templates/drinks.rs.html b/templates/drinks.rs.html index 0e83477..cd77e4f 100644 --- a/templates/drinks.rs.html +++ b/templates/drinks.rs.html @@ -1,44 +1,51 @@ @use super::base_html; +@use super::components::return_to_main_html; @(shift_id: u32) @:base_html({ -
-
- - - - - - - - - - - - - - -
- -
-
-
- -
- - - -
-
- -
- - +
+
+ @:return_to_main_html()
- + +
+
+ + + + + + + + + + + + + + +
+ +
+
+
+ +
+ + + +
+
+ +
+ + +
+
+
})