mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-02 16:02:48 +02:00
Initial commit pour portail_captif, forké depuis re2o (https://gitlab.rezometz.org/rezo/re2o)
This commit is contained in:
55
portail_captif/templates/portail_captif/aff_history.html
Normal file
55
portail_captif/templates/portail_captif/aff_history.html
Normal file
@ -0,0 +1,55 @@
|
||||
{% 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 %}
|
||||
|
||||
{% if reversions.paginator %}
|
||||
<ul class="pagination nav navbar-nav">
|
||||
{% if reversions.has_previous %}
|
||||
<li><a href="?page={{ reversions.previous_page_number }}">Suivants</a></li>
|
||||
{% endif %}
|
||||
{% for page in reversions.paginator.page_range %}
|
||||
<li class="{% if reversions.number == page %}active{% endif %}"><a href="?page={{page }}">{{ page }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
{% if reversions.has_next %}
|
||||
<li> <a href="?page={{ reversions.next_page_number }}">Précédents</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Cableur</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for rev in reversions %}
|
||||
<tr>
|
||||
<td>{{ rev.revision.date_created }}</td>
|
||||
<td>{{ rev.revision.user }}</td>
|
||||
<td>{{ rev.revision.comment }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
36
portail_captif/templates/portail_captif/history.html
Normal file
36
portail_captif/templates/portail_captif/history.html
Normal file
@ -0,0 +1,36 @@
|
||||
{% extends "portail_captif/sidebar.html" %}
|
||||
{% 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 bootstrap3 %}
|
||||
|
||||
{% block title %}Historique{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Historique de {{ object }}</h2>
|
||||
{% include "portail_captif/aff_history.html" with reversions=reversions %}
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
{% endblock %}
|
92
portail_captif/templates/portail_captif/index.html
Normal file
92
portail_captif/templates/portail_captif/index.html
Normal file
@ -0,0 +1,92 @@
|
||||
{% extends "portail_captif/sidebar.html" %}
|
||||
{% 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 bootstrap3 %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}Accueil{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Bienvenue sur {{ site_name }} !</h1>
|
||||
|
||||
<h4>Bienvenue à toi ! Ce portail mis en place par le Cr@ns te permet d'accéder gratuitement à Internet sur le campus durant ton passage</h4>
|
||||
|
||||
<center>
|
||||
<div class="thumbnail">
|
||||
<img src="/static/logo/logo.png" alt="logo">
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-md-6">
|
||||
<div class="col-12">
|
||||
<div class="thumbnail">
|
||||
<div class="caption">
|
||||
<h3>Inscription</h3>
|
||||
<p>Si vous n'avez pas de compte, inscrivez-vous pour bénéficier d'un accès à internet !</p>
|
||||
<p><a href="{% url 'users:new-user' %}" class="btn btn-primary" role="button">Inscription</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-md-6">
|
||||
<div class="col-12">
|
||||
<div class="thumbnail">
|
||||
<div class="caption">
|
||||
<h3>Indentification</h3>
|
||||
<p>Si avez déjà un compte, identifiez-vous pour accèder à Internet</p>
|
||||
<p><a href="{% url 'login' %}" class="btn btn-primary" role="button">Identification</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1>Liens utiles</h1>
|
||||
|
||||
<div class="row">
|
||||
{% for col in services_urls %}
|
||||
<div class="col-sm-6 col-md-6">
|
||||
{% for key, s in col.items %}
|
||||
<div class="col-12">
|
||||
<div class="thumbnail">
|
||||
<img src="{% static "logo/"|add:s.logo %}" alt="{{ key }}">
|
||||
<div class="caption">
|
||||
<h3>{{ key }}</h3>
|
||||
<p>{{ s.description }}</p>
|
||||
<p><a href="{{ s.url }}" class="btn btn-primary" role="button">Accéder</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<p>Compte tenu des obligations de traçabilité des connexions à internet, vous engagez à fournir des informations exactes lors de votre inscription conformément à l'article 441-1 du nouveau code pénal.
|
||||
Vous êtes seul responsable de l'utilisation du service, conformément aux articles L32 et L33 du code des postes et télécomunications éléctroniques.</p>
|
||||
|
||||
{% endblock %}
|
||||
|
28
portail_captif/templates/portail_captif/sidebar.html
Normal file
28
portail_captif/templates/portail_captif/sidebar.html
Normal file
@ -0,0 +1,28 @@
|
||||
{% extends "base.html" %}
|
||||
{% 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 %}
|
||||
|
||||
|
||||
{% block sidebar %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user