2020-11-23 16:06:37 +00:00
|
|
|
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
|
2017-06-25 22:50:55 +00:00
|
|
|
# se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
# quelques clics.
|
|
|
|
#
|
|
|
|
# Copyright © 2017 Gabriel Détraz
|
2019-09-29 14:02:28 +00:00
|
|
|
# Copyright © 2017 Lara Kermarec
|
2017-06-25 22:50:55 +00:00
|
|
|
# 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.
|
2017-10-14 04:03:53 +00:00
|
|
|
"""
|
|
|
|
Urls de l'application preferences, pointant vers les fonctions de views
|
|
|
|
"""
|
2017-06-25 22:50:55 +00:00
|
|
|
|
2017-09-10 23:29:24 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2021-02-09 12:01:42 +00:00
|
|
|
from django.urls import path, re_path
|
2017-06-25 22:50:55 +00:00
|
|
|
|
2018-04-14 18:55:24 +00:00
|
|
|
from . import views
|
2020-04-22 16:12:37 +00:00
|
|
|
from .views import edit_options
|
2017-06-25 22:50:55 +00:00
|
|
|
|
2021-02-09 12:01:42 +00:00
|
|
|
app_name = "preferences"
|
2017-06-25 22:50:55 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>OptionalUser)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>OptionalMachine)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>OptionalTopologie)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>GeneralOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>AssoOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>HomeOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>MailMessageOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>RadiusOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
re_path(
|
2019-11-04 16:55:03 +00:00
|
|
|
r"^edit_options/(?P<section>CotisationsOption)$",
|
2020-04-22 16:12:37 +00:00
|
|
|
edit_options,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-options",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("add_service", views.add_service, name="add-service"),
|
2021-02-10 10:06:09 +00:00
|
|
|
path("edit_service/<int:serviceid>", views.edit_service, name="edit-service"),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("del_service/<int:serviceid>", views.del_service, name="del-service"),
|
|
|
|
path("add_mailcontact", views.add_mailcontact, name="add-mailcontact"),
|
|
|
|
path(
|
|
|
|
"edit_mailcontact/<int:mailcontactid>",
|
2018-06-30 17:19:40 +00:00
|
|
|
views.edit_mailcontact,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-mailcontact",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("del_mailcontact", views.del_mailcontact, name="del-mailcontact"),
|
|
|
|
path("add_reminder", views.add_reminder, name="add-reminder"),
|
|
|
|
path(
|
|
|
|
"edit_reminder/<int:reminderid>",
|
2018-07-10 23:07:31 +00:00
|
|
|
views.edit_reminder,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-reminder",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"del_reminder/<int:reminderid>",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.del_reminder,
|
|
|
|
name="del-reminder",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("add_radiuskey", views.add_radiuskey, name="add-radiuskey"),
|
|
|
|
path(
|
|
|
|
"edit_radiuskey/<int:radiuskeyid>",
|
2018-07-10 23:07:31 +00:00
|
|
|
views.edit_radiuskey,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-radiuskey",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"del_radiuskey/<int:radiuskeyid>",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.del_radiuskey,
|
|
|
|
name="del-radiuskey",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"add_switchmanagementcred",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.add_switchmanagementcred,
|
|
|
|
name="add-switchmanagementcred",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"edit_switchmanagementcred/<int:switchmanagementcredid>",
|
2018-07-11 00:19:29 +00:00
|
|
|
views.edit_switchmanagementcred,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-switchmanagementcred",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"del_switchmanagementcred/<int:switchmanagementcredid>",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.del_switchmanagementcred,
|
|
|
|
name="del-switchmanagementcred",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"add_document_template",
|
2019-01-20 23:54:02 +00:00
|
|
|
views.add_document_template,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="add-document-template",
|
2019-01-20 23:54:02 +00:00
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"edit_document_template/<int:documenttemplateid>",
|
2019-01-20 23:54:02 +00:00
|
|
|
views.edit_document_template,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="edit-document-template",
|
2019-01-20 23:54:02 +00:00
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"del_document_template",
|
2019-01-20 23:54:02 +00:00
|
|
|
views.del_document_template,
|
2019-11-04 16:55:03 +00:00
|
|
|
name="del-document-template",
|
2019-01-20 23:54:02 +00:00
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("add_mandate", views.add_mandate, name="add-mandate"),
|
2021-02-10 10:06:09 +00:00
|
|
|
path("edit_mandate/<int:mandateid>", views.edit_mandate, name="edit-mandate"),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("del_mandate/<int:mandateid>", views.del_mandate, name="del-mandate"),
|
2021-02-10 10:06:09 +00:00
|
|
|
path("add_radiusattribute", views.add_radiusattribute, name="add-radiusattribute"),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"edit_radiusattribute/<int:radiusattributeid>",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.edit_radiusattribute,
|
|
|
|
name="edit-radiusattribute",
|
2019-09-21 21:10:28 +00:00
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path(
|
|
|
|
"del_radiusattribute/<int:radiusattributeid>",
|
2019-11-04 16:55:03 +00:00
|
|
|
views.del_radiusattribute,
|
|
|
|
name="del-radiusattribute",
|
|
|
|
),
|
2021-02-09 12:01:42 +00:00
|
|
|
path("", views.display_options, name="display-options"),
|
2017-06-25 22:50:55 +00:00
|
|
|
]
|