satyr/templates/managevods.njk
knotteye 988e3473a7 Big commit. Implement handlers for everything that's currently rendered server side in the client-side frontend.
Add compiled templates file to .gitignore, will work out a system for making sure templates are compiled later.
Fix a couple bugs in the API and templates.

TODO for client-side rendering:
Make sure templates get compiled before running the server.
Add a config option to switch between server-side and client-side rendering
Fancy SPA stuff like intercepting links to render changes without a page-reload
2020-10-14 07:44:19 -05:00

14 lines
527 B
Plaintext

{% extends "base.njk" %}
{% block content %}
<h3>Manage Your VODs</h3>
<form action="/api/user/vods/delete" method="POST" target="responseFrame">
{% asyncEach vid in list%}
<input type="checkbox" id="{{vid.name}}" name="vlist[]" value="{{vid.name}}">
&nbsp<label for="{{vid.name}}">{{vid.name}}</label><p></p>
{% else %}
No recordings found!
{% endeach %}
</br><input type="submit" value="Delete">
</form>
<iframe name="responseFrame" border="0" frameborder="0" style="display: inline;"></iframe>
{% endblock %}