Commit 897c8789 authored by root's avatar root
Browse files

précisions diverses

parent f4a8e7a1
......@@ -13,11 +13,7 @@ Dépendances :
* python3-django (1.8, jessie-backports)
* django-bootstrap3 (pip install)
* python3-django-macaddress (stretch)
* python3-dateutil (jessie-backports)
* texlive-latex-base
* texlive-fonts-recommended
* python3-djangorestframework
Moteur de db conseillé (mysql), postgresql fonctionne également.
Pour mysql, il faut installer :
......
......@@ -31,21 +31,15 @@
<ul class="nav navbar-nav">
<li><a href="{% url "users:mon-profil" %}">Mon profil</a></li>
{% if is_cableur %}
<li><a href="{% url "users:index" %}">Adhérents</a></li>
<li><a href="{% url "machines:index" %}">Machines</a></li>
<li><a href="{% url "cotisations:index" %}">Cotisations</a></li>
<li><a href="{% url "topologie:index" %}">Topologie</a></li>
<li><a href="#">Statistiques</a></li>
<li><a href="{% url "users:index" %}">Gérer les utilisateurs</a></li>
{% endif %}
</ul>
<div class="col-sm-3 col-md-3 navbar-right">
<form action="{% url "search:search"%}" method="POST" class="navbar-form" role="search">
{% csrf_token %}
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="search_field" id="search-term">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
<a href="{% url "search:searchp" %}" class="btn btn-default" role="button"><i class="glyphicon glyphicon-plus"></i></a>
</div>
</div>
</form>
......@@ -86,23 +80,16 @@
{% if request_user.is_authenticated %}
<li>{{ request_user.name }} {{ request_user.surname }}</li>
<li>Pseudo : {{ request_user.pseudo }}</li>
<li>Chambre : {{ request_user.room }}</li>
<li>Connexion : {% if request_user.has_access == True %}<font color="green">Active</font>{% else %}<font color="red">Désactivée</font>{% endif %}</li>
<li>Fin d'adhésion : {% if request_user.end_adhesion != None %}<font color="green">{{ request_user.end_adhesion }}</font>{% else %}<font color="red">Non adhérent</font>{% endif %}</li>
{% if list_droits %}
<li>Droits : {% for droit in list_droits %}{{ droit.right }}{% if list_droits|length != forloop.counter %} - {% endif %} {% endfor %}</li>
{% else %}
<li>Aucun</li>
{% endif %}
<p><a class="btn btn-success btn-sm" role="button"href="{% url "users:mon-profil" %}">Voir mon profil</a></p>
{% else %}
<p>Vous n'êtes pas authentifié</p>
{% endif %}
</div>
{% if request_user.is_authenticated %}
<div class="well">
{{ interfaces|length }} machines actives
{% for interface in interfaces|slice:":5" %}
<li>{{interface.dns}}</li>
{% endfor %}
<p><a class="btn btn-warning btn-sm" role="button" href="{% url "users:mon-profil" %}">Voir mes machines</a></p>
</div>
{% endif %}
</div>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment