making it work

This commit is contained in:
talksik
2023-09-06 13:57:32 -07:00
parent 7826fc21d5
commit 4fe0b6b276
6 changed files with 66 additions and 19 deletions
+9 -5
View File
@@ -1,12 +1,16 @@
package templates
templ GetStatus(statusOne string, statusTwo string) {
<script src="https://cdn.tailwindcss.com"></script>
<div id="main" class="flex flex-row gap-2">
<html>
<head>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/[email protected]" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>
</head>
<form
id="form"
hx-post="/changestatus"
hx-target="#main"
hx-swap="outerHTML"
hx-select="#form" hx-swap="outerHTML"
>
<input
id="statusH" name="statush" type="text"
@@ -22,5 +26,5 @@ templ GetStatus(statusOne string, statusTwo string) {
<button type="submit" class="button is-primary">Update</button>
</form>
</div>
</html>
}