35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
{% extends "horizon/common/_modal_form.html" %}
|
|
{% load i18n %}
|
|
{% load url from future %}
|
|
|
|
{% block modal-header %}{% trans "Log In" %}{% endblock %}
|
|
{% block modal_class %}login {% if hide %}modal hide{% endif %}{% endblock %}
|
|
|
|
{% block form_action %}{% url 'login' %}{% endblock %}
|
|
{% block autocomplete %}{{ HORIZON_CONFIG.password_autocomplete }}{% endblock %}
|
|
|
|
{% block modal-body %}
|
|
<fieldset>
|
|
{% if request.user.is_authenticated and 'next' in request.GET %}
|
|
<div class="control-group clearfix error">
|
|
<span class="help-inline"><p>{% trans "You don't have permissions to access:" %}</p>
|
|
<p><b>{{ request.GET.next }}</b></p>
|
|
<p>{% trans "Login as different user or go back to" %}
|
|
<a href="{% url 'horizon:user_home' %}">{% trans "home page" %}</a></p>
|
|
</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if request.COOKIES.logout_reason %}
|
|
<div class="control-group clearfix error">
|
|
<span class="help-inline"><p>{{ request.COOKIES.logout_reason }}</p></span>
|
|
</div>
|
|
{% endif %}
|
|
{% if next %}<input type="hidden" name="{{ redirect_field_name }}" value="{{ next }}" />{% endif %}
|
|
{% include "horizon/common/_form_fields.html" %}
|
|
</fieldset>
|
|
{% endblock %}
|
|
|
|
{% block modal-footer %}
|
|
<button type="submit" class="btn btn-primary pull-right">{% trans "Sign In" %}</button>
|
|
{% endblock %}
|