Add indicators to forms
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2025-07-15 09:12:08 -06:00
parent 143bbed55a
commit b5b52809b4
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
2 changed files with 4 additions and 2 deletions

View file

@ -19,13 +19,14 @@
</markdown>
</fill:subtitle>
<fill:description>
<form hx-post="/api/page-idea" hx-target="#page-idea-result">
<form hx-post="/api/page-idea" hx-target="#page-idea-result" hx-indicator="#page-idea-indicator">
<label for="page-idea">
What should we put on page 4 of The SANDWICH?
</label><br>
<textarea name="page-idea" id="page-idea"></textarea>
<input type="submit" value="Submit Idea!">
</form>
<img id="page-idea-indicator" class="htmx-indicator" width="32" height="32" src="/assets/spinner.svg">
<div id="page-idea-result"></div>
</fill:description>
</x-project>