From 6cf595a65a15c93cf3c663e6aa55e2a00b9b5821 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Sun, 5 Nov 2023 07:16:44 -0800 Subject: [PATCH] some stuff --- src/management.rs | 6 ++ .../components/management_fragment.rs.html | 2 +- templates/components/return_to_main.rs.html | 4 +- templates/drinks.rs.html | 77 ++++++++++--------- 4 files changed, 52 insertions(+), 37 deletions(-) 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()
- + +
+
+ + + + + + + + + + + + + + +
+ +
+
+
+ +
+ + + +
+
+ +
+ + +
+
+
})