date format change in shift reports

This commit is contained in:
Zynh0722 2023-11-05 10:17:30 -08:00
parent cb6e9d1889
commit 0a8eb848ef

View file

@ -28,17 +28,19 @@
<tr class="odd:bg-neutral-200">
<td class="text-center">@shift.id</td>
<td class="text-center">@shift.start.format("%Y-%m-%d %H:%M:%S")</td>
<td class="text-center">@shift.start.format("%A, %b %m - %H:%M")</td>
<td class="text-center">
@if let Some(end) = shift.end {
@end.format("%Y-%m-%d %H:%M:%S")
@end.format("%A, %b %m - %H:%M")
} else {
Currently Open
}
</td>
<td hx-boost="true" class="flex justify-end">
<a href="/shifts/@shift.id/report">
<button type="button" class=" text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5">View Shift</button>
<button type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5">
View Shift
</button>
</a>
</td>
</tr>