what2watch/templates/elements/add_watch_button.html
2024-01-01 17:27:17 -08:00

7 lines
388 B
HTML

<form id="add-watch-{{self.watch}}">
<input type="hidden" name="watch" value="{{self.watch}}">
<input type="hidden" name="public" value="{{self.public}}">
<input type="hidden" name="watched_already" value="{{self.watched_already}}">
<button hx-post="/add/watch" hx-target="#add-watch-{{watch}}" hx-trigger="click" hx-swap="outerHTML">wanna
watch?</button>
</form>