This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
portail-citoyen/portail_citoyen/apps/login_plugin/templates/login_plugin/plugin.html

28 lines
837 B
HTML

{% load url from future %}
{% load i18n %}
<div id="login">
{% if not request.user.is_authenticated %}
<form action="{{ action }}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Connexion" />
{% if next %}
<input type="hidden" name="next" value="{{ next }}">
{% endif %}
</form>
<p><a href="{% url 'password_reset' %}">Mot de passe perdu ?</a></p>
{% url 'registration_register' as registration_url %}
{% if registration_url %}
<p><a href="{{ registration_url }}">Pas encore de compte ?</a></p>
{% endif %}
{% else %}
{% blocktrans with name=request.user %}
<p>Bonjour {{ name }} !</p>
{% endblocktrans %}
{% url 'auth_logout' as logout_url %}
{% if logout_url %}<p><a href="{{ logout_url }}">{% trans "Logout" %}</a></p>{% endif %}
{% endif %}
</div>