41 lines
1.0 KiB
HTML
41 lines
1.0 KiB
HTML
{% extends "./list_editor.html" %}
|
|
|
|
{% block outer %}
|
|
{% with tag_id="inline-sounds" %}
|
|
{% with tag="a-sound-list-editor" %}
|
|
{{ block.super }}
|
|
{% endwith %}
|
|
{% endwith %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block tag-attrs %}
|
|
{{ block.super }}
|
|
sound-list-url="{% url "api:sound-list" %}?program={{ object.pk }}&episode__isnull"
|
|
sound-upload-url="{% url "api:sound-list" %}"
|
|
{% endblock %}
|
|
|
|
{% block inner %}
|
|
{{ block.super }}
|
|
|
|
<template #upload-form>
|
|
{% for field in sound_form %}
|
|
{% with field.name as name %}
|
|
{% with field.initial as value %}
|
|
{% with field.field as field %}
|
|
{% if name in "episode,program" %}
|
|
{% include "./form_field.html" with value=value hidden=True %}
|
|
{% elif name != "file" %}
|
|
<div class="field is-horizontal">
|
|
<label class="label mr-3">{{ field.label }}</label>
|
|
{% include "./form_field.html" with value=value %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endwith %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</template>
|
|
|
|
{% endblock %}
|