{% comment %} Base template for list editor based on formsets (tracklist_editor, playlist_editor). Context: - tag_id: id of parent component - tag: vue component tag (a-playlist-editor, etc.) - formset: formset used to render the list editor {% endcomment %} {% load aircox aircox_admin static i18n %} {% with formset.form.base_fields as fields %} {% block outer %}
{{ formset.non_form_errors }} <{{ tag }} {% block tag-attrs %} :labels="{% inline_labels %}" :init-data="{% formset_inline_data formset=formset %}" :default-columns="[{% for f in fields.keys %}{% if f != "position" %}'{{ f }}',{% endif %}{% endfor %}]" settings-url="{% url "api:user-settings" %}" data-prefix="{{ formset.prefix }}-" {% endblock %}> {% block inner %} {% for name, field in fields.items %} {% if not field.widget.is_hidden and not field.is_readonly %} {% endif %} {% endfor %} {% endblock %}
{% endblock %} {% endwith %}