Source

Lightning Talks / lightning / templates / uni_form / whole_uni_formset.html

{% load uni_form_tags %}

{% if formset_tag %}
<form action="{{ formset_action }}" class="uniForm {{ formset_class }}" method="{{ formset_method }}" {% if formset_id %}id="{{ formset_id }}"{% endif %}{% if formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% endif %}
    {% if formset_method|lower == 'post' %}
        {% csrf_token %}
    {% endif %}

    <div>
        {{ formset.management_form|as_uni_form }}
    </div>

    {% include "uni_form/errors_formset.html" %}

    {% for form in formset.forms %}
        {% if form.form_html %}
            {% include "uni_form/errors.html" %}
            {{ form.form_html }}
        {% else %}
            {% include "uni_form/uni_form.html" %}
        {% endif %}
    {% endfor %}
    
    {% if inputs %}
        <div class="actions">
            {% for input in inputs %}
                <input type="{{ input.input_type }}"
                        name="{{ input.name|slugify }}"
                        value="{{ input.value }}"
                        {% ifnotequal input.input_type "hidden" %}
                            class="btn {{ input.field_classes }}"
                            id="{{ input.input_type }}-id-{{ input.name|slugify }}"
                        {% endifnotequal %}
                        />
            {% endfor %}
        </div>
    {% endif %}
{% if formset_tag %}</form>{% endif %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.