97 lines
2.7 KiB
HTML
97 lines
2.7 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<h1>Page d'administration du site</h1>
|
|
<h2>Liste des catégories</h2>
|
|
<a class="btn btn-success btn-sm" role="button" href="{% url 'content:category-new' %}">
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
Créer une nouvelle catégorie
|
|
</a>
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Nom de la catégorie</th>
|
|
<th>Nombre de contenus</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for c in categories %}
|
|
<tr>
|
|
<td><a href="{{c.get_absolute_url}}">{{c.name}}</a></td>
|
|
<td>{{c.content_set.count}}</td>
|
|
<td><a class="btn btn-outline-primary btn-sm" href="{% url "content:category-edit" c.pk %}">
|
|
<!--<i class="glyphicon glyphicon-edit"></i>-->
|
|
Éditer
|
|
</a>
|
|
<a class="btn btn-outline-danger btn-sm" title="Supprimer" href="{% url "content:category-delete" c.pk %}">
|
|
<!--<i class="glyphicon glyphicon-trash"></i>-->
|
|
Supprimer
|
|
</a>
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h2>Écoles</h2>
|
|
<a class="btn btn-success btn-sm" role="button" href="{% url 'users:new-school' %}">
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
Inscrire une nouvelle école
|
|
</a>
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Nombre de membres</th>
|
|
<th></th>
|
|
{% for school in schools %}
|
|
<tr>
|
|
<th>{{school.group.name}}</th>
|
|
<td>{{school.group.user_set.count}}</td>
|
|
<td><a class="btn btn-primary btn-sm" href="{% url "users:edit-school" pk=school.pk%}">
|
|
<i class="glyphicon glyphicon-edit"></i>
|
|
Éditer
|
|
</a>
|
|
<a class="btn btn-danger btn-sm" title="Supprimer" href="">
|
|
<i class="glyphicon glyphicon-trash"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<h2>Réglages</h2>
|
|
<h3>Réglages du site</h3>
|
|
<a class="btn btn-primary btn-sm" href="{% url 'settings:site-settings' %}">
|
|
<i class="glyphicon glyphicon-edit"></i>
|
|
Éditer
|
|
</a>
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Upload</th>
|
|
<td>
|
|
{% if site_settings.allow_upload %}
|
|
Autorisé
|
|
{% else %}
|
|
Non autorisé
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Message d'accueil</th>
|
|
<td>{{site_settings.home_message}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Réglage du contenu</h3>
|
|
<a class="btn btn-primary btn-sm" href="">
|
|
<i class="glyphicon glyphicon-edit"></i>
|
|
Éditer
|
|
</a>
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>URL du FTP</th>
|
|
<td>{{content_settings.ftp_url}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Identifiant du FTP</th>
|
|
<td>{{content_settings.ftp_id}}</td>
|
|
</tr>
|
|
</table>
|
|
{% endblock %}
|