{% extends 'auth/_login_form.html' %} {% comment %} Copyright (c) 2014 INFN - "Istituto Nazionale di Fisica Nucleare" - Italy All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. {% endcomment %} {% load i18n %} {% block pre_login %}
{% csrf_token %} {% endblock %} {% block login_header %} {% include "auth/_splash.html" %} {% endblock %} {% block login_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 do not have permission to access the resource:" %}

{{ request.GET.next }}

{% url 'horizon:user_home' as home_url %} {% blocktrans trimmed %} Login as different user or go back to home page {% endblocktrans %}

{% endif %} {% if request.COOKIES.logout_reason %}

{{ request.COOKIES.logout_reason }}

{% endif %} {% if next %} {% endif %}
{% include 'horizon/common/_form_errors.html' with form=form %} {% if not form.region.is_hidden %} {% include 'horizon/common/_form_field.html' with field=form.region %} {% endif %}
{% if HORIZON_CONFIG.new_splash %}
Register
{% endif %} {% for idpid, idpdata in HORIZON_CONFIG.identity_providers.items %} {% endfor %}
{% endblock %} {% block login_footer %} {% if not HORIZON_CONFIG.new_splash %}
{% endif %} {% if not HORIZON_CONFIG.new_splash %} {% endif %}
{% endblock %} {% block post_login %} {{ block.super }}
{% endblock %}