catbase/plugins/emojy/upload.templ

33 lines
938 B
Plaintext
Raw Permalink Normal View History

2024-02-28 02:43:37 +00:00
package emojy
templ (p *EmojyPlugin) uploadIndex() {
2024-02-28 15:25:43 +00:00
<div class="grid-container">
<div class="grid-x">
<div class="cell">
<h2>Emojy</h2>
</div>
</div>
<div class="grid-x">
<div class="cell">
@p.emojyNav()
</div>
</div>
2024-03-13 14:57:52 +00:00
<form hx-post="/emojy/upload" enctype="multipart/form-data">
2024-02-28 15:25:43 +00:00
<div class="grid-x">
<div class="cell">
<label>Passphrase</label>
<input type="text" name="password" placeholder="Password..."></input>
</div>
<div class="cell">
<label>File
2024-03-13 14:57:52 +00:00
<input type="file" name="attachment" />
2024-02-28 15:25:43 +00:00
</label>
</div>
<div class="cell">
2024-03-13 14:57:52 +00:00
<button class="button" type="submit">Submit</button>
2024-02-28 15:25:43 +00:00
</div>
</div>
2024-03-13 14:57:52 +00:00
</form>
2024-02-28 02:43:37 +00:00
</div>
}