{% load compile_static i18n %} {% load static from staticfiles %} {% block content %} {% block extra_head_scripts %} {% endblock %} Add a slot (adding a slot does not save changes) {% with formset=slots_FormSet %} {{ formset.management_form }} {% with formset.forms.0 as slot_form %} {% endwith %} {% for slot_form in formset.forms %} {# #} {% for field in slot_form.visible_fields %} {% endfor %} {% endfor %}
{% trans 'Slot name' %} {% trans 'Type' %} {% trans 'Value' %} {% trans 'Delete' %}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in slot_form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field }}
Add a slot {% endwith %} {% endblock %}