templates/collection_element: Add buttons to change collection properties

master
Felix Stupp 3 years ago
parent 38381e0b1f
commit 4f4ac8ff7b
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -12,14 +12,17 @@
<h1>{{ title }}</h1>
<h2>Properties</h2>
<ul>
{% set api_uri = "/api/collection/" + collection.id|string %}
<li>
Watch In Order:
{{ collection.watch_in_order | tenary("Yes", "no") }}
{%- if collection.watch_in_order_auto %} (automatic){% endif %}
{{ macros.post_form(api_uri, "watch_in_order", collection.watch_in_order | tenary("false", "true"), "umschalten") }}
</li>
<li>
Keep Updated:
{{ collection.keep_updated | tenary("Yes", "no") }}
{{ macros.post_form(api_uri, "keep_updated", collection.watch_in_order | tenary("false", "true"), "umschalten") }}
</li>
{% if collection.watch_in_order %}
<li>

Loading…
Cancel
Save