what2watch/templates/elements/add_watch_button.html

9 lines
380 B
HTML
Raw Normal View History

2024-01-02 01:27:17 +00:00
<form id="add-watch-{{self.watch}}">
<button hx-post="/add/watch" hx-target="#add-watch-{{watch}}" hx-trigger="click" hx-swap="outerHTML">add</button>
<select name="public" id="add-public-watch">
<option value="true">public</option>
<option value="false">private</option>
</select>
2024-01-02 01:27:17 +00:00
<input type="hidden" name="watch" value="{{self.watch}}">
</form>