{% load i18n %} {% if form_view != 'vertical' %}
{{ field.label_tag }} {% if field.field.required %} {% translate 'This field is required' %} {% endif %}
{{ field }} {% include 'partials/form/field_input_help_text.html' with help_text=field.help_text %} {% include 'partials/form/field_input_errors.html' %} {% if form_name == 'login' and field.name == 'username' %} {% endif %} {% if form_name == 'login' and field.name == 'password' %} {% endif %}
{% else %} {{ field.label_tag }}
{% if field.field.required %} {% translate 'This field is required' %} {% endif %} {{ field }} {% include 'partials/form/field_input_help_text.html' with help_text=field.help_text %} {% include 'partials/form/field_input_errors.html' %}
{% endif %}