{% load i18n %} {% load l10n %} {% load styled_forms %} {% if field_obj.field_name == '' %}

{{ field_obj.label }}

{% if field_obj.description %} {% blocktrans with d=field_obj.description %}{{ d }}{% endblocktrans %}{% endif %}
{% else %} {% if field %}
{% if field_obj.field_stype == 'checkboxinput' %}
{% if field.errors %}
{% for error in field.errors %}

{% blocktrans with e=error %}{{ e }}{% endblocktrans %}

{% endfor %}
{% endif %}
{% if field.help_text %}
{% blocktrans with h=field.help_text %}{{ h }}{% endblocktrans %}
{% endif %}
{% else %} {% if field_obj.field_name == 'password' %}
{% if field.errors %}
{% for error in field.errors %}

{% blocktrans with e=error %}{{ e }}{% endblocktrans %}

{% endfor %}
{% endif %} {{ field }} {% if field.help_text %} {% blocktrans with h=field.help_text %}{{ h }}{% endblocktrans %} {% endif %}
{{ field_pwd }}
{% else %} {% if field|is_checkboxselectmultiple %} {% if field.help_text %} {% blocktrans with h=field.help_text %}{{ h }}{% endblocktrans %} {% endif %} {% endif %} {% if field|is_fileinput %} {% if field.help_text %} {% blocktrans with h=field.help_text %}{{ h }}{% endblocktrans %} {% endif %} {% endif %}
{% if field.errors %}
{% for error in field.errors %}

{% blocktrans with e=error %}{{ e }}{% endblocktrans %}

{% endfor %}
{% endif %} {% if field|is_checkbox %}
{% elif field|is_checkboxselectmultiple %} {% for choice in field.field.choices %}
{% endfor %} {% elif field|is_radioselect %} {% for choice in field.field.choices %}
{% endfor %} {% else %} {{ field }} {% endif %} {% if not field|is_checkboxselectmultiple and not field|is_fileinput %} {% if field.help_text %} {% blocktrans with h=field.help_text %}{{ h }}{% endblocktrans %} {% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}