templates/collection_element: Add buttons to change collection properties

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

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

Loading…
Cancel
Save