2017-06-25 22:50:55 +00:00
{% extends "preferences/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 %}
2017-12-27 22:40:27 +00:00
{% load acl %}
2017-06-25 22:50:55 +00:00
{% block title %}Création et modification des préférences{% endblock %}
{% block content %}
2017-08-24 19:36:59 +00:00
< h4 > Préférences utilisateur< / h4 >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalUser' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-06-25 22:50:55 +00:00
Editer
< / a >
2017-08-24 19:36:59 +00:00
< p >
< / p >
2017-06-25 22:50:55 +00:00
< table class = "table table-striped" >
< tr >
< th > Téléphone obligatoirement requis< / th >
< td > {{ useroptions.is_tel_mandatory }}< / td >
< th > Activation du solde pour les utilisateurs< / th >
< td > {{ useroptions.user_solde }}< / td >
< / tr >
< tr >
< th > Champ gpg fingerprint< / th >
< td > {{ useroptions.gpg_fingerprint }}< / td >
2017-09-08 21:58:59 +00:00
{% if useroptions.user_solde %}
< th > Solde négatif< / th >
< td > {{ useroptions.solde_negatif }}< / td >
{% endif %}
2017-06-25 22:50:55 +00:00
< / tr >
2017-11-21 04:47:05 +00:00
< tr >
2018-02-22 17:14:20 +00:00
< th > Creations d'adhérents par tous< / th >
< td > {{ useroptions.all_can_create_adherent }}< / td >
< th > Creations de clubs par tous< / th >
< td > {{ useroptions.all_can_create_club }}< / td >
< / tr >
2018-01-14 19:15:21 +00:00
{% if useroptions.user_solde %}
< tr >
< th > Solde maximum< / th >
< td > {{ useroptions.max_solde }}< / td >
< th > Montant minimal de rechargement en ligne< / th >
< td > {{ useroptions.min_online_payment }}< / td >
< / tr >
{% endif %}
2018-03-18 01:14:45 +00:00
< tr >
< th > Auto inscription< / th >
< td > {{ useroptions.self_adhesion }}< / td >
2018-03-24 20:19:52 +00:00
< th > Shell par défaut des utilisateurs< / th >
< td > {{ useroptions.shell_default }}< / td >
< / tr >
2017-06-25 22:50:55 +00:00
< / table >
< h4 > Préférences machines< / h4 >
2017-08-24 19:36:59 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalMachine' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-08-24 19:36:59 +00:00
Editer
< / a >
< p >
< / p >
2017-06-25 22:50:55 +00:00
< table class = "table table-striped" >
< tr >
< th > Mot de passe par machine< / th >
< td > {{ machineoptions.password_machine }}< / td >
< th > Machines/interfaces autorisées par utilisateurs< / th >
< td > {{ machineoptions.max_lambdauser_interfaces }}< / td >
< / tr >
< tr >
< th > Alias dns autorisé par utilisateur< / th >
< td > {{ machineoptions.max_lambdauser_aliases }}< / td >
2017-10-03 00:36:39 +00:00
< th > Support de l'ipv6< / th >
2018-01-29 02:53:49 +00:00
< td > {{ machineoptions.ipv6_mode }}< / td >
2017-10-03 00:36:39 +00:00
< / tr >
2018-02-28 15:36:59 +00:00
< tr >
< th > Creation de machines< / th >
< td > {{ machineoptions.create_machine }}< / td >
< / tr >
2017-06-25 22:50:55 +00:00
< / table >
2017-08-26 13:10:18 +00:00
< h4 > Préférences topologie< / h4 >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalTopologie' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-08-26 13:10:18 +00:00
Editer
< / a >
< p >
< / p >
< table class = "table table-striped" >
2017-09-02 13:20:44 +00:00
< tr >
< th > Politique générale de placement de vlan< / th >
< td > {{ topologieoptions.radius_general_policy }}< / td >
< th > Ce réglage défini la politique vlan après acceptation radius : soit sur le vlan de la plage d'ip de la machine, soit sur un vlan prédéfini dans "Vlan où placer les machines après acceptation RADIUS"< / th >
< td > < / td >
< / tr >
2017-08-26 13:10:18 +00:00
< tr >
< th > Vlan où placer les machines après acceptation RADIUS< / th >
< td > {{ topologieoptions.vlan_decision_ok }}< / td >
< th > Vlan où placer les machines après rejet RADIUS< / th >
< td > {{ topologieoptions.vlan_decision_nok }}< / td >
< / tr >
< / table >
2017-06-25 22:50:55 +00:00
< h4 > Préférences generales< / h4 >
2017-08-24 19:36:59 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'GeneralOption' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-08-24 19:36:59 +00:00
Editer
< / a >
< p >
2017-12-27 22:40:27 +00:00
< / p >
2017-06-25 22:50:55 +00:00
< table class = "table table-striped" >
2017-08-26 14:04:51 +00:00
< tr >
< th > Nom du site web< / th >
< td > {{ generaloptions.site_name }}< / td >
< th > Adresse mail d'expedition automatique< / th >
< td > {{ generaloptions.email_from }}< / td >
< / tr >
2017-06-25 22:50:55 +00:00
< tr >
< th > Affichage de résultats dans le champ de recherche< / th >
< td > {{ generaloptions.search_display_page }}< / td >
< th > Nombre d'items affichés en liste (taille normale)< / th >
< td > {{ generaloptions.pagination_number }}< / td >
< / tr >
< tr >
< th > Nombre d'items affichés en liste (taille élevée)< / th >
< td > {{ generaloptions.pagination_large_number }}< / td >
2017-08-26 14:04:51 +00:00
< th > Temps avant expiration du lien de reinitialisation de mot de passe (en heures)< / th >
< td > {{ generaloptions.req_expire_hrs }}< / td >
2017-06-25 22:50:55 +00:00
< / tr >
2017-12-16 03:01:39 +00:00
< tr >
< th > Message global affiché sur le site< / th >
< td > {{ generaloptions.general_message }}< / td >
2018-01-14 22:47:44 +00:00
< th > Résumé des CGU< / th >
< td > {{ generaloptions.GTU_sum_up }}< / td >
2017-12-16 03:01:39 +00:00
< tr >
2018-01-14 22:47:44 +00:00
< tr >
< th > CGU< / th >
< td > {{generaloptions.GTU}}< / th >
< / tr >
2017-06-25 22:50:55 +00:00
< / table >
2017-08-24 19:36:59 +00:00
< h4 > Données de l'association< / h4 >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'AssoOption' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-08-24 19:36:59 +00:00
Editer
< / a >
< p >
< / p >
< table class = "table table-striped" >
< tr >
< th > Nom< / th >
< td > {{ assooptions.name }}< / td >
< th > SIRET< / th >
< td > {{ assooptions.siret }}< / td >
< / tr >
< tr >
< th > Adresse< / th >
2017-09-08 21:30:47 +00:00
< td > {{ assooptions.adresse1 }}< br >
{{ assooptions.adresse2 }}< / td >
2017-08-24 19:36:59 +00:00
< th > Contact mail< / th >
< td > {{ assooptions.contact }}< / td >
< / tr >
< tr >
< th > Telephone< / th >
< td > {{ assooptions.telephone }}< / td >
< th > Pseudo d'usage< / th >
< td > {{ assooptions.pseudo }}< / td >
2017-12-27 22:40:27 +00:00
< / tr >
2017-08-24 19:36:59 +00:00
< tr >
< th > Objet utilisateur de l'association< / th >
< td > {{ assooptions.utilisateur_asso }}< / td >
2018-01-11 18:25:41 +00:00
< th > Moyen de paiement automatique< / th >
< td > {{ assooptions.payment }}< / td >
2018-03-18 01:14:45 +00:00
< / tr >
< tr >
< th > Description de l'association< / th >
2018-04-15 18:51:04 +00:00
< td colspan = "3" > {{ assooptions.description | safe }}< / td >
2017-12-27 22:40:27 +00:00
< / tr >
2018-01-11 18:25:41 +00:00
2017-12-27 22:40:27 +00:00
< / table >
2017-09-08 20:53:13 +00:00
< h4 > Messages personalisé dans les mails< / h4 >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'MailMessageOption' %}" >
2018-03-07 10:45:03 +00:00
< i class = "fa fa-edit" > < / i >
2017-09-08 20:53:13 +00:00
Editer
< / a >
< p >
< / p >
< table class = "table table-striped" >
< tr >
2017-09-09 14:09:49 +00:00
< th > Mail de bienvenue (Français)< / th >
2017-09-09 11:39:28 +00:00
< td > {{ mailmessageoptions.welcome_mail_fr | safe }}< / td >
2017-09-08 20:53:13 +00:00
< / tr >
< tr >
2017-09-09 14:09:49 +00:00
< th > Mail de bienvenue (Anglais)< / th >
2017-09-09 11:39:28 +00:00
< td > {{ mailmessageoptions.welcome_mail_en | safe }}< / td >
2017-09-08 20:53:13 +00:00
< / tr >
< / table >
2018-04-16 03:28:27 +00:00
< h2 > Liste des services et préférences page d'accueil< / h2 >
2018-01-20 00:01:39 +00:00
{% can_create preferences.Service%}
2018-03-07 10:45:03 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-service' %}" > < i class = "fa fa-plus" > < / i > Ajouter un service< / a >
2017-12-27 22:40:27 +00:00
{% acl_end %}
2018-03-07 10:45:03 +00:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'preferences:del-services' %}" > < i class = "fa fa-trash" > < / i > Supprimer un ou plusieurs service< / a >
2017-08-25 02:35:49 +00:00
{% include "preferences/aff_service.html" with service_list=service_list %}
2018-04-16 03:28:27 +00:00
2018-04-16 16:22:51 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'HomeOption' %}" >
2018-04-16 03:28:27 +00:00
< i class = "fa fa-edit" > < / i >
Editer
< / a >
< p >
< table class = "table table-striped" >
< tr >
< th > Url du compte twitter< / th >
2018-04-16 16:22:51 +00:00
< td > {{ homeoptions.twitter_url }}< / td >
2018-04-16 03:28:27 +00:00
< th > Nom utilisé pour afficher le compte< / th >
2018-04-16 16:22:51 +00:00
< td > {{ homeoptions.twitter_account_name }}< / td >
2018-04-16 03:28:27 +00:00
< / tr >
< tr >
< th > Url du compte facebook< / th >
2018-04-16 16:22:51 +00:00
< td > {{ homeoptions.facebook_url }}< / td >
2018-04-16 03:28:27 +00:00
< / tr >
< / table >
2017-06-25 22:50:55 +00:00
< br / >
< br / >
< br / >
{% endblock %}