bin/views/partials/new_file_upload.templ

24 lines
535 B
Plaintext
Raw Permalink Normal View History

2023-09-12 22:30:58 +02:00
package partials
import "git.myrkvi.com/myrkvi/bin/views/components"
templ NewFileUpload() {
<div id="file-submission" class="my-2">
<div class="mb-4 flex flex-row justify-start space-x-4">
<span
class="border-b-4 border-black cursor-pointer"
>
<b>upload</b>
</span>
<a
hx-get="/partial/new/text"
hx-target="#file-submission"
hx-swap="outerHTML"
class="cursor-pointer border-b-4 border-amber-300"
>
text
</a>
</div>
@components.FileUpload("browse ...", "file", "file")
</div>
}