{% if component.as_pdf %}{% else %} {% if not component.partial %}
{% csrf_token %} {{ component.str_hidden|safe }} {{ component.media|safe }} {% endif %} {% if component.title and not component.inline and not component.partial %}

{% if not component.fields.icon and component.icon %}{% endif %} {{ component.title }}

{% endif %} {% if component.has_errors() %} {% if component.non_field_errors() %}
{% for non_field_error in component.non_field_errors() %} {{ non_field_error }} {% endfor %}
{% else %} {% if not component.partial %}
{{ _("Please correct the errors below") }}.
{% endif %} {% endif %} {% endif %} {% if component.note %}
{{ component.note }}
{% endif %} {% for fieldset in component.configured_fieldsets %} {% if not fieldset.tuples|must_hide_fieldset %} {% if not component.inline and not component.partial %}
{% if fieldset.title %}
{% if fieldset.title or component.title %} {% if fieldset.icon %} {% endif %} {{ fieldset.title|default("Dados Gerais") }} {% endif %}
{% endif %}
{% endif %} {% for fields in fieldset.tuples %} {% if fields %}
{% for field in fields %} {% if component.horizontal %}
{{ field.widget }} {% if field.help_text %}
{{ field.help_text|format|safe }}
{% endif %} {{ field.widget.errors }}
{% else %} {% if component.partial and component.inline and loop.first %}
{% endif %}
{{ field.widget }} {% if field.help_text %}
{{ field.help_text|format|safe }}
{% endif %} {{ field.widget.errors }}
{% endif %} {% endfor %}
{% endif %} {% endfor %} {% if not component.inline and not component.partial %}
{% endif %} {% endif %} {% for field, form, required, save in fieldset.one_to_one %} {% if loop.first %} {{ form.media }} {% endif %}
{% if field.required %} {% else %} {% endif %} {{ field.label }}
{{ form }}
{% endfor %} {% for name, field, forms, one_to_many_count in fieldset.one_to_many %}
{{ field.label }}
{% for form in forms %} {% if loop.first %} {{ form.media }} {% endif %} {{ form }} {% if form.hidden %} {% endif %} {% endfor %}
{% if one_to_many_count %} {% endif %}
{% endfor %} {% endfor %} {% if not component.partial %} {{ captcha(component) }} {% if component.component %} {{ component.component|safe }} {% endif %}
{% if not component.request.GET.popup %}
{% if not component.inline and component.cancel_button %} {% endif %}
{% endif %}
{% if not component.inline %} {% endif %} {% endif %} {% endif %}