defining default side nav
This commit is contained in:
parent
cdf5fbb285
commit
271fe8ecf1
3 changed files with 37 additions and 40 deletions
|
@ -16,9 +16,44 @@
|
|||
{% endif %}
|
||||
|
||||
<hr/>
|
||||
|
||||
|
||||
{% block sidenav %}
|
||||
{% if not user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url "user:login" %}">
|
||||
<i class="fa fa-sign-in"></i>
|
||||
<span>Se connecter</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:create_user" %}">
|
||||
<i class="fa fa-user"></i>
|
||||
<span>Créer un compte</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:password_reset" %}">
|
||||
<i class="fa fa-question"></i>
|
||||
<span>Mot de passe oublié</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url "user:password_change" %}">
|
||||
<i class="fa fa-unlock-alt"></i>
|
||||
<span>Changer de mot de passe</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:logout"%}">
|
||||
<i class="fa fa-sign-out"></i>
|
||||
<span>Se déconnecter</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block real_content %}
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block sidenav %}
|
||||
{% if not user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url "user:login" %}">
|
||||
<i class="fa fa-sign-in"></i>
|
||||
<span>Se connecter</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:create_user" %}">
|
||||
<i class="fa fa-user"></i>
|
||||
<span>Créer un compte</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:password_reset" %}">
|
||||
<i class="fa fa-question"></i>
|
||||
<span>Mot de passe oublié</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url "user:password_change" %}">
|
||||
<i class="fa fa-unlock-alt"></i>
|
||||
<span>Changer de mot de passe</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url "user:logout"%}">
|
||||
<i class="fa fa-sign-out"></i>
|
||||
<span>Se déconnecter</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "user/base_user.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% load widget_tweaks %}
|
||||
|
||||
{% load bootstrap %}
|
||||
|
|
Loading…
Reference in a new issue