adjustments

This commit is contained in:
talksik
2023-09-06 13:25:05 -07:00
parent 8720100313
commit 7826fc21d5
3 changed files with 16 additions and 8 deletions
+4 -3
View File
@@ -9,14 +9,15 @@ templ GetStatus(statusOne string, statusTwo string) {
hx-swap="outerHTML"
>
<input
id="statusH" name="Status H" type="text"
id="statusH" name="statush" type="text"
placeholder="Enter status H"
value={ statusOne }
/>
<input
id="statusA" name="Status A" type="text"
placeholder="Enter status, A" value={ statusTwo }
id="statusA" name="statusa" type="text"
placeholder="Enter status, A"
value={ statusTwo }
/>
<button type="submit" class="button is-primary">Update</button>
+2 -2
View File
@@ -31,7 +31,7 @@ func GetStatus(statusOne string, statusTwo string) templ.Component {
if err != nil {
return err
}
_, err = templBuffer.WriteString("</script><div id=\"main\" class=\"flex flex-row gap-2\"><form hx-post=\"/changestatus\" hx-target=\"#main\" hx-swap=\"outerHTML\"><input id=\"statusH\" name=\"Status H\" type=\"text\" placeholder=\"Enter status H\" value=\"")
_, err = templBuffer.WriteString("</script><div id=\"main\" class=\"flex flex-row gap-2\"><form hx-post=\"/changestatus\" hx-target=\"#main\" hx-swap=\"outerHTML\"><input id=\"statusH\" name=\"statush\" type=\"text\" placeholder=\"Enter status H\" value=\"")
if err != nil {
return err
}
@@ -39,7 +39,7 @@ func GetStatus(statusOne string, statusTwo string) templ.Component {
if err != nil {
return err
}
_, err = templBuffer.WriteString("\"><input id=\"statusA\" name=\"Status A\" type=\"text\" placeholder=\"Enter status, A\" value=\"")
_, err = templBuffer.WriteString("\"><input id=\"statusA\" name=\"statusa\" type=\"text\" placeholder=\"Enter status, A\" value=\"")
if err != nil {
return err
}