Start adding article banner image
This commit is contained in:
parent
750184b8ef
commit
2751a8c972
@ -19,7 +19,7 @@
|
|||||||
<h3>Titelseite</h3>
|
<h3>Titelseite</h3>
|
||||||
<div class="grid grid-cols-2 gap-4 items-center">
|
<div class="grid grid-cols-2 gap-4 items-center">
|
||||||
<input class="h-full" name="issue-title" placeholder="Titel" required type="text" />
|
<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
|
<input class="hidden" id="image-upload" name="issue-image" type="file" required
|
||||||
hx-post="/issue/upload-image" />
|
hx-post="/issue/upload-image" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,13 @@
|
|||||||
<form id="edit-area">
|
<form id="edit-area">
|
||||||
<div class="flex flex-col gap-y-1">
|
<div class="flex flex-col gap-y-1">
|
||||||
<label for="article-title">Titel</label>
|
<label for="article-title">Titel</label>
|
||||||
<input name="article-title" type="text" value="{{.Article.Title}}" />
|
<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>
|
||||||
|
|
||||||
<div class="flex flex-col gap-y-1">
|
<div class="flex flex-col gap-y-1">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user