Add indicators to forms
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
143bbed55a
commit
b5b52809b4
2 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue