{% extends "horizon/common/_modal_form.html" %} {% load i18n %} {% block modal-header %}{% trans "Log In" %}{% endblock %} {% block modal_class %}rhlogin{% if hide %}modal hide{% endif %}{% endblock %} {% block form_action %}{% url 'login' %}{% endblock %} {% block ng_controller %}hzLoginCtrl{% endblock %} {% block autocomplete %}{{ HORIZON_CONFIG.password_autocomplete }}{% endblock %} {% block modal-body %} {% comment %} These fake fields are required to prevent Chrome v34+ from autofilling form. {% endcomment %} {% if HORIZON_CONFIG.password_autocomplete != "on" %} {%endif%} {% include "auth/_description.html" %}
{% if request.user.is_authenticated and 'next' in request.GET %}

{% trans "You don't have permissions to access:" %}

{{ request.GET.next }}

{% trans "Login as different user or go back to" %} {% trans "home page" %}

{% if request.COOKIES.logout_reason %}

{{ request.COOKIES.logout_reason }}

{% endif %} {% endif %} {% if next %}{% endif %} {% include "horizon/common/_form_fields.html" %}
{% endblock %} {% block modal-footer %} {% endblock %}