This commit is contained in:
aji@catalis.app
2025-06-22 14:26:09 +07:00
parent 2ad0f5093d
commit 1402513990
2 changed files with 28 additions and 1 deletions

View File

@@ -684,6 +684,22 @@
>
</select>
</td>
{:else if col.key === "updated_at"}
<td class="px-4 py-2">
{new Date(
row[
col.key as keyof PurchaseOrderDisplay
] as string,
).toLocaleString("en-US")}
</td>
{:else if col.key === "created_at"}
<td class="px-4 py-2">
{new Date(
row[
col.key as keyof PurchaseOrderDisplay
] as string,
).toLocaleString("en-US")}
</td>
{:else if col.key === "actions"}
<td class="px-4 py-2">
<button

View File

@@ -823,7 +823,18 @@
on:submit|preventDefault={submitForm}
class="w-full max-w-lg bg-white p-6 rounded-2xl shadow-xl space-y-4"
>
<h2 class="text-2xl font-bold text-center mb-6">Timesheet Entry</h2>
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold">
{isEditing ? "Edit Timesheet" : "New Timesheet Entry"}
</h2>
<button
type="button"
class="text-gray-500 hover:text-gray-700"
on:click={() => (showModal = false)}
>
✖️
</button>
</div>
<div>
<label for="t_eb" class="block text-sm font-medium mb-1"