{% extends "account/base.html" %}
{% load staticfiles %}
{% load i18n %}
{#{% load account socialaccount %}#}

{% block head_title %}{% trans "Sign In" %}{% endblock %}

{% block pages %}

    <h1>{% trans "Sign In" %}</h1>

{#    {% get_providers as socialaccount_providers %}#}

{#    {% if socialaccount_providers %}#}
{#        <p>{% blocktrans with site.name as site_name %}Пожалуйста, войдите с помощью одной из#}
{#            учетных записей в соц. сети. Или зарегистрируйте аккаунт и войдите:#}
{#        {% endblocktrans %}</p>#}
{##}
{#        <div class="socialaccount_ballot">#}
{##}
{#            <ul class="socialaccount_providers">#}
{#                {% include "socialaccount/snippets/provider_list.html" with process="login" %}#}
{#            </ul>#}
{#            <a href="{% provider_login_url "vk" %}">#}
{#                <img class="soc-btn" src="{% static 'img/social/vk_social.svg' %}" alt="vk">#}
{#            </a>#}
{#            <div class="login-or">{% trans 'or' %}</div>#}
{##}
{#        </div>#}
{##}
{#        {% include "socialaccount/snippets/login_extra.html" %}#}
{##}
{#    {% else %}#}
{#        <p>{% blocktrans %}If you have not created an account yet, then please#}
{#            <a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p>#}
{#    {% endif %}#}

    <form class="login" method="POST" action="{% url 'account_login' %}">
        {% csrf_token %}
        {{ form.as_p }}
        {% if redirect_field_value %}
            <input type="hidden" name="{{ redirect_field_name }}"
                   value="{{ redirect_field_value }}"/>
        {% endif %}
        <a class="button secondaryAction"
           href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
        <button class="btn btn-success" type="submit">{% trans "Sign In" %}</button>
    </form>

{% endblock %}
