{% load account socialaccount sekizai_tags crispy_forms_tags i18n %}
{% get_providers as socialaccount_providers %}

{% trans "Returning Customers" %}

{# Offer Sign-in or Signup #}
{# Sign-in Form #}
{% if socialaccount_providers %}

{% blocktrans with site.name as site_name %}Please sign in with one of your existing third party accounts. Or, sign up for a {{ site_name }} account and sign in below:{% endblocktrans %}

    {% include "socialaccount/snippets/provider_list.html" with process="login" %}
{% include "socialaccount/snippets/login_extra.html" %} {% else %}

{% blocktrans %}If you have not created an account yet, then please sign up first.{% endblocktrans %}

{% endif %}
{# Signup Form #}

{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}

{% addtoblock "js" %} {% endaddtoblock %}