date format change in shift reports
This commit is contained in:
parent
cb6e9d1889
commit
0a8eb848ef
1 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue