authentic/src/authentic2/templates/registration/registration_completion_cho...

43 lines
1.5 KiB
HTML

{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Registration" %}
{% endblock %}
{% block content %}
<h2>{% trans "Login" %}</h2>
<p>
{% blocktrans trimmed count accounts_number=accounts|length %}An account already exists for this email. Please click on the account name to log in with.{% plural %}More accounts are associated to this email. Please choose the account you want to log in with:{% endblocktrans %}
</p>
<ul>
{% for user in users %}
<li>
<form method="post" name="user-{{ user.id }}">
{% csrf_token %}
<input type="hidden" name="uid" value="{{ user.id }}">
<a href="#" onclick="document.forms['user-{{ user.id }}'].submit()">
{% blocktrans trimmed with c=forloop.counter %}Account #{{ c }}: {{ user }}{% endblocktrans %}
</a>
<div>
{% blocktrans trimmed with creation_date=user.date_joined|date:'SHORT_DATETIME_FORMAT'%}created on {{ creation_date }}
{% endblocktrans %}
{% if user.last_login %}
{% blocktrans trimmed with login_date=user.last_login|date:'SHORT_DATETIME_FORMAT' %}last login on {{ login_date }}{% endblocktrans %}
{% endif %}
</div>
</form>
</li>
{% endfor %}
</ul>
{% if not email_is_unique %}
<p>
{% trans "or" %}
<a href="?create">
{% trans "create a new account" %}
</a>
</p>
{% endif %}
{% endblock %}