From cb6e9d1889035a595bb0f92aa97de7513f748bcf Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Sun, 5 Nov 2023 08:38:15 -0800 Subject: [PATCH] styling reports table --- templates/shift_reports.rs.html | 68 ++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/templates/shift_reports.rs.html b/templates/shift_reports.rs.html index a8812ef..412734d 100644 --- a/templates/shift_reports.rs.html +++ b/templates/shift_reports.rs.html @@ -6,38 +6,46 @@ @:base_html({ -@:return_to_main_html() +
+ @:return_to_main_html() +
- - - - - - - - - - @for shift in shifts { +

+ Shift Reports +

- - - - - - +
+
Shift IDShift StartShift End
@shift.id@shift.start.format("%Y-%m-%d %H:%M:%S") - @if let Some(end) = shift.end { - @end.format("%Y-%m-%d %H:%M:%S") - } else { - Currently Open - } - - - - -
+ + + + + + + + + @for shift in shifts { - } - -
Shift IDShift StartShift End
+ + @shift.id + @shift.start.format("%Y-%m-%d %H:%M:%S") + + @if let Some(end) = shift.end { + @end.format("%Y-%m-%d %H:%M:%S") + } else { + Currently Open + } + + + + + + + + + } + + + })