35 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "account/base.html" %}
 | 
						|
{% load account crispy_forms_tags i18n %}
 | 
						|
 | 
						|
{% block title %}{{ block.super }} - {% trans "Sign In" %}{% endblock title %}
 | 
						|
{% block page_title %}{% trans "Sign In" %}{% endblock page_title %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
{% if socialaccount.providers  %}
 | 
						|
<p>{% blocktrans with site.name as site_name %}Please sign in with one
 | 
						|
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
 | 
						|
for a {{site_name}} account and sign in below:{% endblocktrans %}</p>
 | 
						|
 | 
						|
<ul class="list-inline">
 | 
						|
  {% include "socialaccount/snippets/provider_list.html" with process="login" %}
 | 
						|
</ul>
 | 
						|
<p>{% trans 'or' %}</p>
 | 
						|
{% 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 form" method="POST" action="{% url 'account_login' %}">
 | 
						|
  {% csrf_token %}
 | 
						|
  {{ form | crispy }}
 | 
						|
  {% if redirect_field_value %}
 | 
						|
  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
 | 
						|
  {% endif %}
 | 
						|
  <a class="btn btn-default" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
 | 
						|
  <button class="btn btn-primary" type="submit">{% trans "Sign In" %}</button>
 | 
						|
</form>
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block extra_js %}
 | 
						|
{% include "socialaccount/snippets/login_extra.html" %}
 | 
						|
{% endblock extra_js %}
 |