updates to UI and add archiving option

This commit is contained in:
Simon Pocrnjič
2025-10-05 19:45:49 +02:00
parent fe91c7e4bc
commit bab9d6561f
50 changed files with 3337 additions and 416 deletions
@@ -18,6 +18,7 @@ const form = useForm({
source_type: "csv",
default_record_type: "",
is_active: true,
reactivate: false,
client_uuid: null,
entities: [],
meta: {
@@ -285,6 +286,10 @@ watch(
<label for="is_active" class="text-sm font-medium text-gray-700"
>Active</label
>
<div class="flex items-center gap-2 ml-6">
<input id="reactivate" v-model="form.reactivate" type="checkbox" class="rounded" />
<label for="reactivate" class="text-sm font-medium text-gray-700">Reactivation import</label>
</div>
</div>
<div class="pt-4">
@@ -20,6 +20,7 @@ const form = useForm({
source_type: props.template.source_type,
default_record_type: props.template.default_record_type || "",
is_active: props.template.is_active,
reactivate: props.template.reactivate ?? false,
client_uuid: props.template.client_uuid || null,
sample_headers: props.template.sample_headers || [],
// Add meta with default delimiter support
@@ -434,9 +435,11 @@ watch(
type="checkbox"
class="rounded"
/>
<label for="is_active" class="text-sm font-medium text-gray-700"
>Aktivna</label
>
<label for="is_active" class="text-sm font-medium text-gray-700">Aktivna</label>
<div class="flex items-center gap-2 ml-6">
<input id="reactivate" v-model="form.reactivate" type="checkbox" class="rounded" />
<label for="reactivate" class="text-sm font-medium text-gray-700">Reaktivacija</label>
</div>
<button
@click.prevent="save"
class="ml-auto px-3 py-2 bg-indigo-600 text-white rounded"