making it work
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user