Start adding article banner image

This commit is contained in:
Jason Streifling 2024-10-20 16:10:25 +02:00
parent 750184b8ef
commit 2751a8c972
2 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<h3>Titelseite</h3>
<div class="grid grid-cols-2 gap-4 items-center">
<input class="h-full" name="issue-title" placeholder="Titel" required type="text" />
<label class="btn text-center" for="image-upload">Bild hochladen</label>
<label class="btn text-center" for="image-upload">Titelbild</label>
<input class="hidden" id="image-upload" name="issue-image" type="file" required
hx-post="/issue/upload-image" />
</div>

View File

@ -4,7 +4,13 @@
<form id="edit-area">
<div class="flex flex-col gap-y-1">
<label for="article-title">Titel</label>
<div class="grid grid-cols-2 gap-4 items-center">
<input name="article-title" type="text" value="{{.Article.Title}}" />
<label class="btn text-center" for="image-upload">Titelbild</label>
<input class="hidden" id="image-upload" name="issue-image" type="file" required
hx-post="/issue/upload-image" />
<!-- TODO: Route einfügen -->
</div>
</div>
<div class="flex flex-col gap-y-1">