{% load uni_form i18n %}

<form action="{{ form_action }}" class="uniForm {{ form_class }}" method="{{ form_method }}" id="{{ form_id|slugify }}" {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
	{% if form_html %}{{ form_html }}{% else %}
    <fieldset class="inlineLabels">  
    <legend>* {% trans "Required fields" %}</legend> 
    	{{ form|as_uni_form }}
    </fieldset>
	{% endif %}
    {% if inputs %}
        <div class="buttonHolder">
            {% for input in inputs %}
                <input type="{{ input.input_type }}"
                        name="{{ input.name|slugify }}"
                        value="{{ input.value }}"
                        {% ifnotequal input.input_type "hidden" %}
                            class="{{ input.input_type }}"
                            id="{{ input.input_type }}-id-{{ input.name|slugify }}"
                        {% endifnotequal %}
                        />
            {% endfor %}
        </div>    
    {% endif %}

</form>
