Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. {% extends "account/base.html" %}
  2.  
  3. {% load i18n %}
  4. {% load account socialaccount %}
  5.  
  6. {% block head_title %}{% trans "Sign In" %}{% endblock %}
  7.  
  8. {% block content %}
  9.  
  10. <h1>{% trans "Sign In" %}</h1>
  11.  
  12. {% get_providers as socialaccount_providers %}
  13.  
  14. {% if socialaccount_providers %}
  15. <p>{% blocktrans with site.name as site_name %}Please sign in with one
  16. of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
  17. for a {{ site_name }} account and sign in below:{% endblocktrans %}</p>
  18.  
  19. <div class="socialaccount_ballot">
  20.  
  21. <ul class="socialaccount_providers">
  22. {% include "socialaccount/snippets/provider_list.html" with process="login" %}
  23. </ul>
  24.  
  25. <div class="login-or">{% trans 'or' %}</div>
  26.  
  27. </div>
  28.  
  29. {% include "socialaccount/snippets/login_extra.html" %}
  30.  
  31. {% else %}
  32. <p>{% blocktrans %}If you have not created an account yet, then please
  33. <a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p>
  34. {% endif %}
  35.  
  36. <form class="login" method="POST" action="{% url 'account_login' %}">
  37. {% csrf_token %}
  38. {{ form.as_p }}
  39. {% if redirect_field_value %}
  40. <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
  41. {% endif %}
  42. <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
  43. <button class="primaryAction" type="submit">{% trans "Sign In" %}</button>
  44. </form>
  45.  
  46. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement