File size: 632 Bytes
7069a57 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<script lang="ts">
import { enhance } from '$app/forms';
import PictureComponent from '$lib/components/Picture.svelte';
import type { PageData } from './$types';
export let data: PageData;
</script>
<div class="flex flex-col items-center">
<form method="post" action="?/update" use:enhance>
<input type="text" name="name" class="input" value={data.photo.name} />
<input type="submit" hidden />
</form>
<PictureComponent picture={data.photo} class="mt-2 max-w-full" style="max-height: 500px" />
<form method="post" action="?/delete" use:enhance>
<input type="submit" value="Supprimer" class="mt-2" />
</form>
</div>
|