30 lines
911 B
Svelte
30 lines
911 B
Svelte
<script lang="ts">
|
|
import { Buffer } from "buffer";
|
|
import { AufnahmeClient, BildClient, ObjektClient, VerbrauchsausweisWohnenClient } from "./Ausweis/types.js";
|
|
import { Enums } from "#lib/client/prisma.js";
|
|
import { openWindowWithPost } from "#lib/helpers/window.js";
|
|
|
|
export let ausweis: VerbrauchsausweisWohnenClient;
|
|
export let objekt: ObjektClient;
|
|
export let aufnahme: AufnahmeClient;
|
|
export let bilder: BildClient[];
|
|
export let ausweisart: Enums.Ausweisart
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<button class="border-2 rounded-lg bg-white text-center hover:shadow-md no-underline p-3 cursor-pointer" type="button" on:click={() => {
|
|
openWindowWithPost("/pdf/datenblatt", {
|
|
ausweis: ausweis,
|
|
aufnahme: aufnahme,
|
|
objekt: objekt,
|
|
bilder: bilder,
|
|
ausweisart
|
|
})
|
|
}}>
|
|
<img class="w-full" src="/images/datenblatt.webp" alt="Datenblatt" />
|
|
|
|
<span class="text-black font-medium text-lg">Datenblatt</span>
|
|
</button>
|