This commit is contained in:
Klafyvel 2018-02-28 18:38:40 +01:00
parent 331c8bf1d4
commit 0d237b52a8
2 changed files with 20 additions and 11 deletions

View file

@ -3,9 +3,11 @@
<h1>Page d'administration du site</h1> <h1>Page d'administration du site</h1>
<h2>Liste des catégories</h2> <h2>Liste des catégories</h2>
<a class="btn btn-success btn-sm" role="button" href="{% url 'content:category-new' %}"> <a class="btn btn-success btn-sm" role="button" href="{% url 'content:category-new' %}">
<i class="glyphicon glyphicon-plus"></i> <i class="fas fa-plus"></i>
Créer une nouvelle catégorie Créer une nouvelle catégorie
</a> </a>
<br />
<br />
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Nom de la catégorie</th> <th>Nom de la catégorie</th>
@ -17,11 +19,11 @@
<td><a href="{{c.get_absolute_url}}">{{c.name}}</a></td> <td><a href="{{c.get_absolute_url}}">{{c.name}}</a></td>
<td>{{c.content_set.count}}</td> <td>{{c.content_set.count}}</td>
<td><a class="btn btn-outline-primary btn-sm" href="{% url "content:category-edit" c.pk %}"> <td><a class="btn btn-outline-primary btn-sm" href="{% url "content:category-edit" c.pk %}">
<!--<i class="glyphicon glyphicon-edit"></i>--> <i class="fas fa-edit"></i>
Éditer Éditer
</a> </a>
<a class="btn btn-outline-danger btn-sm" title="Supprimer" href="{% url "content:category-delete" c.pk %}"> <a class="btn btn-outline-danger btn-sm" title="Supprimer" href="{% url "content:category-delete" c.pk %}">
<!--<i class="glyphicon glyphicon-trash"></i>--> <i class="fas fa-trash-alt"></i>
Supprimer Supprimer
</a> </a>
</td> </td>
@ -32,9 +34,11 @@
<h2>Écoles</h2> <h2>Écoles</h2>
<a class="btn btn-success btn-sm" role="button" href="{% url 'users:new-school' %}"> <a class="btn btn-success btn-sm" role="button" href="{% url 'users:new-school' %}">
<i class="glyphicon glyphicon-plus"></i> <i class="fas fa-plus"></i>
Inscrire une nouvelle école Inscrire une nouvelle école
</a> </a>
<br />
<br/>
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Nom</th> <th>Nom</th>
@ -44,12 +48,13 @@
<tr> <tr>
<th>{{school.group.name}}</th> <th>{{school.group.name}}</th>
<td>{{school.group.user_set.count}}</td> <td>{{school.group.user_set.count}}</td>
<td><a class="btn btn-primary btn-sm" href="{% url "users:edit-school" pk=school.pk%}"> <td><a class="btn btn-outline-primary btn-sm" href="{% url "users:edit-school" pk=school.pk%}">
<i class="glyphicon glyphicon-edit"></i> <i class="fas fa-edit"></i>
Éditer Éditer
</a> </a>
<a class="btn btn-danger btn-sm" title="Supprimer" href=""> <a class="btn btn-outline-danger btn-sm" title="Supprimer" href="">
<i class="glyphicon glyphicon-trash"></i> <i class="fas fa-trash-alt"></i>
Supprimer
</a> </a>
</td> </td>
</tr> </tr>
@ -58,9 +63,11 @@
<h2>Réglages</h2> <h2>Réglages</h2>
<h3>Réglages du site</h3> <h3>Réglages du site</h3>
<a class="btn btn-primary btn-sm" href="{% url 'settings:site-settings' %}"> <a class="btn btn-primary btn-sm" href="{% url 'settings:site-settings' %}">
<i class="glyphicon glyphicon-edit"></i> <i class="fas fa-edit"></i>
Éditer Éditer
</a> </a>
<br />
<br />
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Upload</th> <th>Upload</th>
@ -80,9 +87,11 @@
<h3>Réglage du contenu</h3> <h3>Réglage du contenu</h3>
<a class="btn btn-primary btn-sm" href=""> <a class="btn btn-primary btn-sm" href="">
<i class="glyphicon glyphicon-edit"></i> <i class="fas fa-edit"></i>
Éditer Éditer
</a> </a>
<br />
<br />
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>URL du FTP</th> <th>URL du FTP</th>

View file

@ -14,9 +14,9 @@
</a></li> </a></li>
{% endfor %} {% endfor %}
<li class="nav-item {% if settings %}active{% endif %}"><a class="nav-link" href="{% url 'settings:index' %}">Administration</a></li>
</ul> </ul>
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item {% if settings %}active{% endif %}"><a class="nav-link" href="{% url 'settings:index' %}"><i class="fas fa-cogs"></i> Administration</a></li>
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">