2017-06-11 23:34:13 +00:00
|
|
|
{% comment %}
|
|
|
|
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
|
|
se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
quelques clics.
|
|
|
|
|
|
|
|
Copyright © 2017 Gabriel Détraz
|
|
|
|
Copyright © 2017 Goulven Kermarec
|
|
|
|
Copyright © 2017 Augustin Lemesle
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
|
|
{% load staticfiles %}
|
|
|
|
|
|
|
|
{# Load the tag library #}
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
{# Load CSS and JavaScript #}
|
|
|
|
{% bootstrap_css %}
|
|
|
|
|
|
|
|
{% bootstrap_javascript %}
|
2017-06-23 18:09:50 +00:00
|
|
|
<link rel="stylesheet" href="{% static "/css/base.css" %}">
|
2017-06-11 23:34:13 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2019-08-02 14:12:41 +00:00
|
|
|
<title>{{ request.site.name }} : {% block title %}Accueil{% endblock %}</title>
|
2017-06-11 23:34:13 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="wrap">
|
|
|
|
<nav class="navbar navbar-inverse">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2019-08-02 14:12:41 +00:00
|
|
|
<a class="navbar-brand" href="/">{{ request.site.name }}</a>
|
2017-06-11 23:34:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="myNavbar">
|
|
|
|
<ul class="nav navbar-nav">
|
2019-08-08 14:18:15 +00:00
|
|
|
<li><a href="{% url "users:profil" %}">Mon profil</a></li>
|
2017-06-30 01:25:07 +00:00
|
|
|
{% if is_perm %}
|
2019-08-08 14:18:15 +00:00
|
|
|
<li><a href="{% url "users:new-user" %}">Utilisateurs</a></li>
|
2017-06-11 23:34:13 +00:00
|
|
|
{% endif %}
|
2017-06-30 01:25:07 +00:00
|
|
|
<li><a href="{% url "media:index" %}">Media</a></li>
|
2017-07-04 00:21:31 +00:00
|
|
|
{% if is_perm %}
|
|
|
|
<li><a href="{% url "logs:index" %}">Statistiques</a></li>
|
|
|
|
{% endif %}
|
2017-06-11 23:34:13 +00:00
|
|
|
</ul>
|
2017-06-30 01:25:07 +00:00
|
|
|
<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>
|
|
|
|
</div>
|
2017-06-11 23:34:13 +00:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li>
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<a href="{% url 'logout' %}">
|
|
|
|
<span class="glyphicon glyphicon-log-out"></span> Logout
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{% url 'login' %}">
|
|
|
|
<span class="glyphicon glyphicon-log-in"></span> Login
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div id="main" class="container-fluid text-center">
|
|
|
|
<div class="row content">
|
|
|
|
<div class="col-sm-2 sidenav">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="text-left list-group">
|
|
|
|
{% block sidebar %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8 text-left">
|
|
|
|
{# Display django.contrib.messages as Bootstrap alerts #}
|
|
|
|
{% bootstrap_messages %}
|
|
|
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 sidenav">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
{% if request_user.is_authenticated %}
|
|
|
|
<div class="panel-heading">
|
2019-08-08 10:16:40 +00:00
|
|
|
<h4>{{ request_user.first_name }} {{ request_user.last_name }}</h4>
|
2017-06-11 23:34:13 +00:00
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Pseudo</th>
|
2019-08-02 19:35:30 +00:00
|
|
|
<td class="text-right">{{ request_user.username }}</td>
|
2017-06-11 23:34:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Nom</th>
|
2019-08-02 19:47:54 +00:00
|
|
|
<td class="text-right">{{ request_user.last_name }}</td>
|
2017-06-11 23:34:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Prénom</th>
|
2019-08-08 10:16:40 +00:00
|
|
|
<td class="text-right">{{ request_user.first_name }}</td>
|
2017-06-11 23:34:13 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p>Vous n'êtes pas authentifié</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="navbar">
|
2019-08-02 14:12:41 +00:00
|
|
|
<div class="container-fluid text-center">
|
|
|
|
<p>Mediatek 2017-2020 — <a href="mailto:club-med@crans.org">Nous contactez</a></p>
|
2017-06-11 23:34:13 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
{# Read the documentation for more information #}
|
|
|
|
</body>
|
|
|
|
</html>
|