user urls included in global interface

This commit is contained in:
Qwann 2017-02-21 11:38:21 +01:00
parent 6be19a463c
commit 2996924fe4
3 changed files with 9 additions and 4 deletions

View file

@ -67,10 +67,12 @@
<i class="fa fa-user fa-fw fa-lg"></i> <i class="fa fa-caret-down"></i> <i class="fa fa-user fa-fw fa-lg"></i> <i class="fa fa-caret-down"></i>
</a> </a>
<ul class="dropdown-menu dropdown-user"> <ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a> <li><a href="#"><i class="fa fa-user fa-fw"></i>Mon profile</a>
</li>
<li><a href="{% url "user:password_change" %}"><i class="fa fa-unlock-alt fa-fw"></i>Changer de mot de passe</a>
</li> </li>
<li class="divider"></li> <li class="divider"></li>
<li><a href="login.html"><i class="fa fa-sign-out fa-fw"></i> Logout</a> <li><a href="{% url "user:logout" %}"><i class="fa fa-sign-out fa-fw"></i>Se déconnecter</a>
</li> </li>
</ul> </ul>
<!-- /.dropdown-user --> <!-- /.dropdown-user -->

View file

@ -24,7 +24,7 @@
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li> <li>
<a href="{% url "user:password_change" %}"> <a href="{% url "user:password_change" %}">
<i class="fa fa-dashboard"></i> <i class="fa fa-unlock-alt"></i>
<span>Changer de mot de passe</span> <span>Changer de mot de passe</span>
</a> </a>
</li> </li>

View file

@ -10,6 +10,9 @@
<div class="col-lg-12"> <div class="col-lg-12">
<div class="form-panel"> <div class="form-panel">
<h4 class="mb"><i class="fa fa-angle-right"></i> Formulaire</h4> <h4 class="mb"><i class="fa fa-angle-right"></i> Formulaire</h4>
{% if form.errors %}
<p class="text-danger">{% block user_error %}{% endblock %}</p>
{% endif %}
<form class="form-horizontal style-form" method="post" action="{%block action_name%}{%endblock%}"> <form class="form-horizontal style-form" method="post" action="{%block action_name%}{%endblock%}">
{% csrf_token %} {% csrf_token %}
<fieldset> <fieldset>
@ -28,7 +31,7 @@
<label class="col-sm-2 control-label">{{ field.label }}</label> <label class="col-sm-2 control-label">{{ field.label }}</label>
<div class="col-sm-10 controls">{{ field | attr:"class:form-control" }} <div class="col-sm-10 controls">{{ field | attr:"class:form-control" }}
{% if field.help_text %} {% if field.help_text %}
<p class="help-inline"><small>{{ field.help_text }}</small></p> <p class="help-inline"><small>{{ field.help_text | safe }}</small></p>
{% endif %} {% endif %}
</div> </div>
</div> </div>