24 lines
535 B
Plaintext
24 lines
535 B
Plaintext
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>
|
|
} |