forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
{% extends "./list_editor.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block outer %}
|
||||
{% with tag_id="inline-tracks" %}
|
||||
{% with tag="a-track-list-editor" %}
|
||||
{% with related_field="episode" %}
|
||||
{{ block.super }}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
||||
{% block inner %}
|
||||
<template #title><h3 class="title">{% translate "Track list" %}</h3></template>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block row-control %}
|
||||
{% if name == "tags" %}
|
||||
<input type="text" class="input"
|
||||
:name="inputName"
|
||||
v-model="item.data[attr]"
|
||||
@change="emit('change', cell.col)"
|
||||
>
|
||||
{% else %}
|
||||
<a-autocomplete
|
||||
:input-class="['input', item.error(attr) ? 'is-danger' : 'half-field']"
|
||||
url="{% url 'api:track-autocomplete' %}?{{ name }}=${query}&field={{ name }}"
|
||||
:name="inputName"
|
||||
v-model="item.data[attr]"
|
||||
@change="emit('change', cell.col)"/>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user