Compare commits

...

2 Commits

View File

@ -12,7 +12,6 @@
let newTransfer: Partial<Transfer> = $state({ let newTransfer: Partial<Transfer> = $state({
card_id: 0, card_id: 0,
value: 0, value: 0,
comment: "",
date: "2006-01-02T15:04:05Z", date: "2006-01-02T15:04:05Z",
}); });
@ -123,16 +122,6 @@
{editingTransfer ? "Edit Transfer" : "Add New Transfer"} {editingTransfer ? "Edit Transfer" : "Add New Transfer"}
</h2> </h2>
<form onsubmit={saveTransfer} class="space-y-4"> <form onsubmit={saveTransfer} class="space-y-4">
<label class="block">
<span class="text-gray-700">Value:</span>
<input
type="text"
bind:value={currentTransfer.value}
required
class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring focus:ring-indigo-200 focus:border-indigo-500"
/>
</label>
<label class="block"> <label class="block">
<span class="text-gray-700">From:</span> <span class="text-gray-700">From:</span>
<select <select
@ -161,6 +150,16 @@
</select> </select>
</label> </label>
<label class="block">
<span class="text-gray-700">Value:</span>
<input
type="text"
bind:value={currentTransfer.value}
required
class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring focus:ring-indigo-200 focus:border-indigo-500"
/>
</label>
<div class="flex items-center space-x-4"> <div class="flex items-center space-x-4">
<label> <label>
Date: Date: