| 1 |
{% extends "account/base.html" %} |
| 2 |
|
| 3 |
{% load i18n %} |
| 4 |
{% load account socialaccount %} |
| 5 |
{% load bootstrap_tags %} |
| 6 |
|
| 7 |
{% block head_title %}{% trans "Sign In" %}{% endblock %} |
| 8 |
|
| 9 |
{% block content %} |
| 10 |
|
| 11 |
<h1>{% trans "Sign In" %}</h1> |
| 12 |
|
| 13 |
{% include "django_mailman3/login_extra_top.html" %} |
| 14 |
|
| 15 |
{% get_providers as socialaccount_providers %} |
| 16 |
|
| 17 |
{% if socialaccount_providers %} |
| 18 |
<p>{% blocktrans with site.name as site_name %}Please sign in with one |
| 19 |
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a> |
| 20 |
for a {{ site_name }} account and sign in below:{% endblocktrans %}</p> |
| 21 |
|
| 22 |
<p>{% blocktrans with site.name as site_name %}If you have a {{ site_name }} |
| 23 |
account that you haven't yet linked to any third party account, you must log |
| 24 |
in with your account's email address and password and once logged in, you can |
| 25 |
link your third party accounts via the Account Connections tab on your user |
| 26 |
profile page.{% endblocktrans %}</p> |
| 27 |
|
| 28 |
<p>{% blocktrans with site.name as site_name %}If you do not have a |
| 29 |
{{ site_name }} account but you have one of these third party accounts, you can |
| 30 |
create a {{ site_name }} account and sign-in in one step by clicking the third |
| 31 |
party account.{% endblocktrans %}</p> |
| 32 |
|
| 33 |
<div class="socialaccount_ballot"> |
| 34 |
|
| 35 |
<ul class="socialaccount_providers list-inline"> |
| 36 |
{% include "socialaccount/snippets/provider_list.html" with process="login" %} |
| 37 |
</ul> |
| 38 |
|
| 39 |
{% include "django_mailman3/login_extra_post_providers.html" %} |
| 40 |
|
| 41 |
<div class="login-or">{% trans 'or' %}</div> |
| 42 |
|
| 43 |
</div> |
| 44 |
|
| 45 |
{% include "socialaccount/snippets/login_extra.html" %} |
| 46 |
|
| 47 |
{% else %} |
| 48 |
<p>{% blocktrans %}If you have not created an account yet, then please |
| 49 |
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p> |
| 50 |
{% endif %} |
| 51 |
|
| 52 |
<form class="login form-horizontal" method="POST" action="{% url 'account_login' %}"> |
| 53 |
{% bootstrap_form_horizontal form 2 4 %} |
| 54 |
{% if redirect_field_value %} |
| 55 |
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> |
| 56 |
{% endif %} |
| 57 |
<div class="form-group"> |
| 58 |
<div class="offset-md-2 col-md-4"> |
| 59 |
<button class="btn btn-primary" type="submit">{% trans "Sign In" %}</button> |
| 60 |
|
| 61 |
<a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
</form> |
| 65 |
|
| 66 |
{% endblock %} |