2019-01-08 23:39:47 +00:00
{% extends 'preferences/sidebar.html' %}
2017-06-25 22:50:55 +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 bootstrap3 %}
2017-12-27 22:40:27 +00:00
{% load acl %}
2018-07-19 12:33:20 +00:00
{% load design %}
2018-07-26 19:53:32 +00:00
{% load i18n %}
2017-06-25 22:50:55 +00:00
2018-08-05 16:48:35 +00:00
{% block title %}{% trans "Preferences" %}{% endblock %}
2017-06-25 22:50:55 +00:00
{% block content %}
2018-12-01 14:42:38 +00:00
< div id = "accordion" >
2018-09-02 14:53:21 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "general" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_general" >
< h4 class = "panel-title" id = "general" >
2018-12-03 20:32:18 +00:00
< a > < i class = "fa fa-cog" > < / i > {% trans "General preferences" %}< / a >
2018-12-08 22:07:49 +00:00
< / h4 >
< / div >
2018-09-02 14:53:21 +00:00
2018-12-08 22:07:49 +00:00
< div id = "collapse_general" class = "panel-collapse panel-body collapse" >
2018-12-01 14:42:38 +00:00
2018-12-08 22:07:49 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'GeneralOption' %}" >
< i class = "fa fa-edit" > < / i > {% trans "Edit" %}
2018-12-03 20:32:18 +00:00
< / a >
2018-12-08 22:07:49 +00:00
< p > < / p >
< table class = "table table-striped" >
< tr >
< th > {% trans "Website name" %}< / th >
< td > {{ generaloptions.site_name }}< / td >
< th > {% trans "Email address for automatic emailing" %}< / th >
< td > {{ generaloptions.email_from }}< / td >
< / tr >
< tr >
< th > {% trans "Number of results displayed when searching" %}< / th >
< td > {{ generaloptions.search_display_page }}< / td >
< th > {% trans "Number of items per page (standard size)" %}< / th >
< td > {{ generaloptions.pagination_number }}< / td >
< / tr >
< tr >
< th > {% trans "Number of items per page (large size)" %}< / th >
< td > {{ generaloptions.pagination_large_number }}< / td >
< th > {% trans "Time before expiration of the reset password link (in hours)" %}< / th >
< td > {{ generaloptions.req_expire_hrs }}< / td >
< / tr >
< tr >
< th > {% trans "General message displayed on the website" %}< / th >
< td > {{ generaloptions.general_message }}< / td >
2019-01-08 23:39:47 +00:00
< th > {% trans "Main site URL" %}< / th >
2018-12-08 22:07:49 +00:00
< td > {{ generaloptions.main_site_url }}< / td >
< / tr >
< tr >
< th > {% trans "Summary of the General Terms of Use" %}< / th >
< td > {{ generaloptions.GTU_sum_up }}< / td >
< th > {% trans "General Terms of Use" %}< / th >
< td > {{ generaloptions.GTU }}< / th >
< / tr >
< / table >
< table class = "table table-striped" >
< tr >
< th > {% trans "Local email accounts enabled" %}< / th >
< td > {{ useroptions.local_email_accounts_enabled|tick }}< / td >
< th > {% trans "Local email domain" %}< / th >
< td > {{ useroptions.local_email_domain }}< / td >
< / tr >
< tr >
< th > {% trans "Maximum number of email aliases allowed" %}< / th >
< td > {{ useroptions.max_email_address }}< / td >
< / tr >
< / table >
< / div >
2018-09-02 14:53:21 +00:00
< / div >
2018-12-03 21:31:50 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "users" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_users" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-users fa-fw" > < / i > {% trans "User preferences" %}< / a >
< / h4 >
< / div >
< div id = "collapse_users" class = "panel-collapse panel-body collapse" >
2018-12-03 21:31:50 +00:00
2018-12-08 22:07:49 +00:00
< p > < / p >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalUser' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
< p > < / p >
< table class = "table table-striped" >
< tr >
< th > {% trans "Creation of members by everyone" %}< / th >
< td > {{ useroptions.all_can_create_adherent|tick }}< / td >
< th > {% trans "Creation of clubs by everyone" %}< / th >
< td > {{ useroptions.all_can_create_club|tick }}< / td >
< / tr >
< tr >
< th > {% trans "Self registration" %}< / th >
< td > {{ useroptions.self_adhesion|tick }}< / td >
< th > {% trans "Delete not yet active users after" %}< / th >
2019-01-08 23:39:47 +00:00
< td > {% blocktrans with delete_notyetactive=useroptions.delete_notyetactive %}{{ delete_notyetactive }} days{% endblocktrans %}< / td >
2018-12-08 22:07:49 +00:00
< / tr >
2019-01-05 17:32:54 +00:00
< tr >
< th > {% trans "All users are active by default" %}< / th >
< td > {{ useroptions.all_users_active|tick }}< / td >
< / tr >
2018-12-01 14:42:38 +00:00
< / table >
< h4 id = "users" > {% trans "Users general permissions" %}< / h4 >
< table class = "table table-striped" >
2018-12-08 22:07:49 +00:00
< tr >
< th > {% trans "Default shell for users" %}< / th >
< td > {{ useroptions.shell_default }}< / td >
< th > {% trans "Users can edit their shell" %}< / th >
< td > {{ useroptions.self_change_shell|tick }}< / td >
< / tr >
< tr >
< th > {% trans "Users can edit their room" %}< / th >
< td > {{ useroptions.self_change_room|tick }}< / td >
< th > {% trans "Telephone number required" %}< / th >
< td > {{ useroptions.is_tel_mandatory|tick }}< / td >
< / tr >
< tr >
< th > {% trans "GPG fingerprint field" %}< / th >
< td > {{ useroptions.gpg_fingerprint|tick }}< / td >
< / tr >
< / table >
< / div >
< / div >
< / div >
< div class = "panel panel-default" id = "machines" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_machines" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-desktop" > < / i > {% trans "Machines preferences" %}< / a >
< / h4 >
< / div >
< div id = "collapse_machines" class = "panel-collapse panel-body collapse" >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalMachine' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
< p > < / p >
< table class = "table table-striped" >
2018-12-01 14:42:38 +00:00
< tr >
2018-12-08 22:07:49 +00:00
< th > {% trans "Password per machine" %}< / th >
< td > {{ machineoptions.password_machine|tick }}< / td >
< th > {% trans "Maximum number of interfaces allowed for a standard user" %}< / th >
< td > {{ machineoptions.max_lambdauser_interfaces }}< / td >
2018-12-01 14:42:38 +00:00
< / tr >
< tr >
2018-12-08 22:07:49 +00:00
< th > {% trans "Maximum number of DNS aliases allowed for a standard user" %}< / th >
< td > {{ machineoptions.max_lambdauser_aliases }}< / td >
< th > {% trans "IPv6 support" %}< / th >
< td > {{ machineoptions.ipv6_mode }}< / td >
2018-12-01 14:42:38 +00:00
< / tr >
< tr >
2018-12-08 22:07:49 +00:00
< th > {% trans "Creation of machines" %}< / th >
< td > {{ machineoptions.create_machine|tick }}< / td >
2018-12-01 14:42:38 +00:00
< / tr >
< / table >
< / div >
2018-12-08 22:07:49 +00:00
< / div >
2018-09-02 14:53:21 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "topo" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_topo" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-sitemap" > < / i > {% trans "Topology preferences" %}< / a >
< / h4 >
< / div >
< div id = "collapse_topo" class = "panel-collapse panel-body collapse" >
2018-12-03 21:31:50 +00:00
2018-08-05 16:48:35 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalTopologie' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-12-08 22:07:49 +00:00
< table class = "table table-striped" >
< tr >
< th > {% trans "General policy for VLAN setting" %}< / th >
< td > {{ topologieoptions.radius_general_policy }}< / td >
< th > {% trans "This setting defines the VLAN policy after acceptance by RADIUS: either on the IP range's VLAN of the machine, or a VLAN preset in 'VLAN for machines accepted by RADIUS'" %}< / th >
< td > < / td >
< / tr >
< tr >
< th > {% trans "VLAN for machines accepted by RADIUS" %}< / th >
< td > {{ topologieoptions.vlan_decision_ok }}< / td >
< th > {% trans "VLAN for machines rejected by RADIUS" %}< / th >
< td > {{ topologieoptions.vlan_decision_nok }}< / td >
< / tr >
< tr >
< th > {% trans "VLAN for non members machines" %}< / th >
< td > {{ topologieoptions.vlan_non_member }}< / td >
< / tr >
< / table >
2019-01-08 23:39:47 +00:00
< h4 > {% trans "RADIUS keys" %}< / h4 >
2018-12-08 22:07:49 +00:00
{% can_create RadiusKey%}
2019-01-08 23:39:47 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-radiuskey' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add a RADIUS key" %}< / a >
2018-12-08 22:07:49 +00:00
{% acl_end %}
2019-01-08 23:39:47 +00:00
{% include 'preferences/aff_radiuskey.html' with radiuskey_list=radiuskey_list %}
2018-12-08 22:07:49 +00:00
< / div >
< / div >
< div class = "panel panel-default" id = "switches" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_switches" >
2018-12-08 22:07:49 +00:00
< h4 class = "panel-title" >
2019-01-08 23:39:47 +00:00
< a > < i class = "fa fa-server" > < / i > {% trans "Configuration of switches" %}< / a >
2018-12-08 22:07:49 +00:00
< / h4 >
< / div >
< div id = "collapse_switches" class = "panel-collapse panel-body collapse" >
2018-12-05 17:32:24 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'OptionalTopologie' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
< p > < / p >
2018-09-02 14:53:21 +00:00
2018-12-05 17:32:24 +00:00
< table class = "table table-striped" >
2018-12-08 22:07:49 +00:00
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "Web management, activated in case of automatic provision" %}< / th >
2018-12-08 22:07:49 +00:00
< td > {{ topologieoptions.switchs_web_management }}< / td >
2019-01-08 23:39:47 +00:00
< th > {% trans "REST management, activated in case of automatic provision" %}< / th >
2018-12-08 22:07:49 +00:00
< td > {{ topologieoptions.switchs_rest_management }}< / td >
< / tr >
< / table >
2019-01-08 23:39:47 +00:00
< h5 > {% if topologieoptions.provision_switchs_enabled %}< span class = "label label-success" > {% trans "Provision of configuration for switches" %}{% else %}< span class = "label label-danger" > {% trans "Provision of configuration for switches" %}{% endif%}< / span > < / h5 >
2018-12-08 22:07:49 +00:00
< table class = "table table-striped" >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "Switches with automatic provision" %}< / th >
< td > {{ topologieoptions.provisioned_switchs|join:", " }} {% if topologieoptions.provisioned_switchs %}< span class = "label label-success" > {% trans "OK" %}{% else %}< span class = "label label-danger" > {% trans "Missing" %}{% endif %}< / span > < / td >
2018-12-08 22:07:49 +00:00
< / tr >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "IP range for the management of switches" %}< / th >
< td > {{ topologieoptions.switchs_ip_type }} {% if topologieoptions.switchs_ip_type %}< span class = "label label-success" > {% trans "OK" %}{% else %}< span class = "label label-danger" > {% trans "Missing" %}{% endif %}< / span > < / td >
2018-12-08 22:07:49 +00:00
< / tr >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "Server for the configuration of switches" %}< / th >
< td > {{ topologieoptions.switchs_management_interface }} {% if topologieoptions.switchs_management_interface %} - {{ topologieoptions.switchs_management_interface_ip }} < span class = "label label-success" > {% trans "OK" %}{% else %}< span class = "label label-danger" > {% trans "Missing" %}{% endif %}< / span > < / td >
2018-12-08 22:07:49 +00:00
< / tr >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "Provision of configuration mode for switches" %}< / th >
2018-12-08 22:07:49 +00:00
< td > {{ topologieoptions.switchs_provision }}< / td >
< / tr >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "TFTP mode" %}< / th >
< td > < span class = "label label-success" > {% trans "OK" %}< / span > < / td >
2018-12-08 22:07:49 +00:00
< / tr >
< tr >
2019-01-08 23:39:47 +00:00
< th > {% trans "SFTP mode" %}< / th >
< td > {% if topologieoptions.switchs_management_sftp_creds %}< span class = "label label-success" > {% trans "OK" %}{% else %}< span class = "label label-danger" > {% trans "Missing credentials" %}{% endif %}< / span > < / td >
2018-12-08 22:07:49 +00:00
< / tr >
< / table >
2019-01-08 23:39:47 +00:00
< h6 > {% trans "Switch management credentials" %}< / h6 >
2018-12-08 22:07:49 +00:00
{% can_create SwitchManagementCred%}
2019-01-08 23:39:47 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-switchmanagementcred' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add switch management credentials" %}< / a >
2018-12-08 22:07:49 +00:00
{% acl_end %}
< p >
< / p >
2019-01-08 23:39:47 +00:00
{% if switchmanagementcred_list %}< span class = "label label-success" > {% trans "OK" %}{% else %}< span class = "label label-danger" > {% trans "Missing" %}{% endif %}< / span >
{% include 'preferences/aff_switchmanagementcred.html' with switchmanagementcred_list=switchmanagementcred_list %}
2018-12-08 22:07:49 +00:00
< / div >
< / div >
< div class = "panel panel-default" id = "radius" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_radius" >
2019-01-08 23:39:47 +00:00
< h4 class = "panel-title" > < a > < i class = "fa fa-circle" > < / i > {% trans "RADIUS preferences" %}< / h4 > < / a >
2018-12-08 22:07:49 +00:00
< / div >
< div id = "collapse_radius" class = "panel-collapse panel-body collapse" >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'RadiusOption' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
2019-01-08 23:39:47 +00:00
{% include 'preferences/aff_radiusoptions.html' %}
2018-12-08 22:07:49 +00:00
< / div >
< / div >
< div class = "panel panel-default" id = "asso" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_asso" >
2018-12-01 16:11:17 +00:00
< h4 class = "panel-title" >
2018-12-08 22:07:49 +00:00
< a > < i class = "fa fa-at" > < / i > {% trans "Information about the organisation" %}< / a >
2018-12-01 16:11:17 +00:00
< / h4 >
< / div >
2018-12-05 17:32:24 +00:00
< div id = "collapse_asso" class = "panel-collapse panel-body collapse" >
2018-08-05 16:48:35 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'AssoOption' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-12-08 22:07:49 +00:00
< table class = "table table-striped" >
< tr >
< th > {% trans "Name" %}< / th >
< td > {{ assooptions.name }}< / td >
< th > {% trans "SIRET number" %}< / th >
< td > {{ assooptions.siret }}< / td >
< / tr >
< tr >
< th > {% trans "Address" %}< / th >
< td > {{ assooptions.adresse1 }}< br >
{{ assooptions.adresse2 }}
< / td >
< th > {% trans "Contact email address" %}< / th >
< td > {{ assooptions.contact }}< / td >
< / tr >
< tr >
< th > {% trans "Telephone number" %}< / th >
< td > {{ assooptions.telephone }}< / td >
< th > {% trans "Usual name" %}< / th >
< td > {{ assooptions.pseudo }}< / td >
< / tr >
< tr >
< th > {% trans "User object of the organisation" %}< / th >
< td > {{ assooptions.utilisateur_asso }}< / td >
< th > {% trans "Description of the organisation" %}< / th >
< td > {{ assooptions.description|safe }}< / td >
< / tr >
2019-01-10 23:39:16 +00:00
< tr >
< th > {% trans "President of the association"%}< / th >
< td > {{ assooptions.pres_name }}< / td >
< / tr >
2018-12-08 22:07:49 +00:00
< / table >
2018-12-01 16:11:17 +00:00
< / div >
2018-12-08 22:07:49 +00:00
< / div >
2019-01-20 23:54:02 +00:00
< div class = "panel panel-default" id = "templates" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_templates" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-edit" > < / i > {% trans "Document templates" %}< / a >
< / h4 >
< / div >
< div id = "collapse_templates" class = "panel-collapse panel-body collapse" >
{% can_create DocumentTemplate %}
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-document-template' %}" >
< i class = "fa fa-cart-plus" > < / i > {% trans "Add a document template" %}
< / a >
{% acl_end %}
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'preferences:del-document-template' %}" >
< i class = "fa fa-trash" > < / i > {% trans "Delete one or several document templates" %}
< / a >
{% include 'preferences/aff_document_template.html' %}
< / div >
< / div >
2019-01-03 21:34:45 +00:00
< div class = "panel panel-default" id = "cotisation" >
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_cotisation" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-eur" > < / i > {% trans "Cotisation's options" %}< / a >
< / h4 >
< / div >
< div id = "collapse_cotisation" class = "panel-collapse panel-body collapse" >
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'CotisationsOption' %}" >
< i class = "fa fa-edit" > < / i >
< / a >
< table class = "table table-striped" >
2019-01-20 18:08:11 +00:00
< tr >
< th > {% trans "Send voucher by email" %}< / th >
< td > {{ cotisationsoptions.send_voucher_mail | tick }}< / th >
< / tr >
2019-01-03 21:34:45 +00:00
< tr >
< th > {% trans "Invoices' template" %}< / th >
< td > {{ cotisationsoptions.invoice_template }}< / td >
< / tr >
2019-01-10 23:39:16 +00:00
< tr >
< th > {% trans "Vouchers' template" %}< / th >
< td > {{ cotisationsoptions.voucher_template }}< / td >
< / tr >
2019-01-03 21:34:45 +00:00
< / table >
< / div >
< / div >
2018-09-02 14:53:21 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "mail" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_mail" >
2018-12-08 22:07:49 +00:00
< h4 class = "panel-title" >
2019-01-08 23:39:47 +00:00
< a > < i class = "fa fa-comment" > < / i > {% trans "Message for emails" %}< / a >
2018-12-08 22:07:49 +00:00
< / h4 >
< / div >
2018-12-05 17:32:24 +00:00
< div id = "collapse_mail" class = "panel-collapse panel-body collapse" >
2018-12-03 21:31:50 +00:00
2018-08-05 16:48:35 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'MailMessageOption' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-12-08 22:07:49 +00:00
< table class = "table table-striped" >
< tr >
< th > {% trans "Welcome email (in French)" %}< / th >
< td > {{ mailmessageoptions.welcome_mail_fr|safe }}< / td >
< / tr >
< tr >
< th > {% trans "Welcome email (in English)" %}< / th >
< td > {{ mailmessageoptions.welcome_mail_en|safe }}< / td >
< / tr >
< / table >
< / div >
< / div >
< div class = "panel panel-default" id = "rappels" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_rappels" >
2018-12-08 22:07:49 +00:00
< h4 class = "panel-title" >
2019-01-08 23:39:47 +00:00
< a > < i class = "fa fa-bell" > < / i > {% trans "Options for the membership's end email" %}< / a >
2018-12-08 22:07:49 +00:00
< / h4 >
< / div >
< div id = "collapse_rappels" class = "panel-collapse panel-body collapse" >
2018-09-30 18:29:46 +00:00
{% can_create preferences.Reminder%}
2018-09-02 14:53:21 +00:00
2019-01-08 23:39:47 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-reminder' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add a reminder" %}< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-09-30 18:29:46 +00:00
{% acl_end %}
2019-01-08 23:39:47 +00:00
{% include 'preferences/aff_reminder.html' with reminder_list=reminder_list %}
2018-12-03 20:32:18 +00:00
< / div >
2018-12-08 22:07:49 +00:00
< / div >
2018-09-30 18:29:46 +00:00
2018-12-03 20:32:18 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "services" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_services" >
2018-12-08 22:07:49 +00:00
< h4 class = "panel-title" >
< a > < i class = "fa fa-home" > < / i > {% trans "List of services and homepage preferences" %}< / a >
2018-12-03 20:32:18 +00:00
< / h4 >
< / div >
2018-12-05 17:32:24 +00:00
< div id = "collapse_services" class = "panel-collapse panel-body collapse" >
2018-08-05 16:48:35 +00:00
{% can_create preferences.Service%}
2018-09-02 14:53:21 +00:00
2018-08-05 16:48:35 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-service' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add a service" %}< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-08-05 16:48:35 +00:00
{% acl_end %}
2019-01-08 23:39:47 +00:00
{% include 'preferences/aff_service.html' with service_list=service_list %}
2018-09-02 14:53:21 +00:00
2018-12-08 22:07:49 +00:00
< / div >
< / div >
2018-12-01 16:11:17 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "contact" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_contact" >
2018-12-08 22:07:49 +00:00
< h4 class = "panel-title" >
< a > < i class = "fa fa-list-ul" > < / i > {% trans "List of contact email addresses" %}< / a >
< / h4 >
< / div >
< div id = "collapse_contact" class = "panel-collapse panel-body collapse" >
2018-09-02 14:53:21 +00:00
2018-08-05 16:48:35 +00:00
{% can_create preferences.MailContact %}
2019-01-08 23:39:47 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:add-mailcontact' %}" > < i class = "fa fa-plus" > < / i > {% trans " Add an address" %}< / a >
2018-08-05 16:48:35 +00:00
{% acl_end %}
2019-01-08 23:39:47 +00:00
< a class = "btn btn-danger btn-sm" role = "button" href = "{% url 'preferences:del-mailcontact' %}" > < i class = "fa fa-trash" > < / i > {% trans " Delete one or several addresses" %}< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2019-01-08 23:39:47 +00:00
{% include 'preferences/aff_mailcontact.html' with mailcontact_list=mailcontact_list %}
2018-12-03 20:32:18 +00:00
< / div >
2018-12-08 22:07:49 +00:00
< / div >
2018-12-03 20:32:18 +00:00
2018-12-08 22:07:49 +00:00
< div class = "panel panel-default" id = "social" >
2018-12-03 20:32:18 +00:00
< div class = "panel-heading" data-toggle = "collapse" href = "#collapse_social" >
< h4 class = "panel-title" >
2019-01-08 23:39:47 +00:00
< a > < i class = "fa fa-facebook" > < / i > < i class = "fa fa-twitter" > < / i > {% trans "Social networks" %}< / a >
2018-12-03 20:32:18 +00:00
< / h4 >
< / div >
2018-12-05 17:32:24 +00:00
< div id = "collapse_social" class = "panel-collapse panel-body collapse" >
2018-12-03 21:31:50 +00:00
2018-12-03 20:32:18 +00:00
< a class = "btn btn-primary btn-sm" role = "button" href = "{% url 'preferences:edit-options' 'HomeOption' %}" >
< i class = "fa fa-edit" > < / i >
{% trans "Edit" %}
< / a >
2018-12-03 21:31:50 +00:00
< p > < / p >
2018-12-08 22:07:49 +00:00
< table class = "table table-striped" >
< tr >
< th > {% trans "Twitter account URL" %}< / th >
< td > {{ homeoptions.twitter_url }}< / td >
< th > {% trans "Twitter account name" %}< / th >
< td > {{ homeoptions.twitter_account_name }}< / td >
< / tr >
< tr >
< th > {% trans "Facebook account URL" %}< / th >
< td > {{ homeoptions.facebook_url }}< / td >
< / tr >
< / table >
2018-12-03 20:32:18 +00:00
< / div >
2018-12-08 22:07:49 +00:00
< / div >
2018-12-01 14:42:38 +00:00
2017-06-25 22:50:55 +00:00
{% endblock %}
2018-08-05 16:48:35 +00:00