Changes to documents able to edit them now, also support for auto mail attechemnts

This commit is contained in:
Simon Pocrnjič
2025-10-18 19:04:10 +02:00
parent 761799bdbe
commit 3b1a24287a
19 changed files with 820 additions and 108 deletions
@@ -18,6 +18,7 @@ const form = useForm({
html_template: props.template?.html_template ?? "",
text_template: props.template?.text_template ?? "",
entity_types: props.template?.entity_types ?? ["client", "contract"],
allow_attachments: props.template?.allow_attachments ?? false,
active: props.template?.active ?? true,
});
@@ -1065,6 +1066,10 @@ watch(
>
</div>
</div>
<div class="flex items-center gap-2">
<input id="allow_attachments" type="checkbox" v-model="form.allow_attachments" />
<label for="allow_attachments" class="text-sm text-gray-700">Dovoli priponke</label>
</div>
<div class="flex items-center gap-2">
<input id="active" type="checkbox" v-model="form.active" />
<label for="active" class="text-sm text-gray-700">Aktivno</label>