8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 23:22:25 +00:00
re2o/users/urls.py

160 lines
5.8 KiB
Python
Raw Normal View History

2018-08-09 09:15:40 +00:00
# -*- mode: python; coding: utf-8 -*-
2020-11-23 16:06:37 +00:00
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
2017-01-15 23:01:18 +00:00
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
#
2020-04-17 14:48:27 +00:00
# Copyright © 2017-2020 Gabriel Détraz
# Copyright © 2017-2020 Lara Kermarec
# Copyright © 2017-2020 Augustin Lemesle
# Copyright © 2017-2020 Hugo Levy--Falk
# Copyright © 2017-2020 Jean-Romain Garnier
2017-01-15 23:01:18 +00:00
#
# 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 20:20:23 +00:00
"""
2020-05-29 22:33:29 +00:00
The defined URLs for the Users app
2017-10-14 20:20:23 +00:00
"""
2017-01-15 23:01:18 +00:00
from __future__ import unicode_literals
from django.urls import path, re_path
2016-06-30 18:18:06 +00:00
2021-02-10 10:06:09 +00:00
from . import views, views_autocomplete
2016-06-30 18:18:06 +00:00
app_name = "users"
2016-06-30 18:18:06 +00:00
urlpatterns = [
path("new_user", views.new_user, name="new-user"),
path("new_club", views.new_club, name="new-club"),
path("edit_info/<int:userid>", views.edit_info, name="edit-info"),
path(
"edit_club_admin_members/<int:clubid>",
views.edit_club_admin_members,
name="edit-club-admin-members",
),
path("state/<int:userid>", views.state, name="state"),
path("groups/<int:userid>", views.groups, name="groups"),
path("password/<int:userid>", views.password, name="password"),
2021-02-10 10:06:09 +00:00
path(
"confirm_email/<int:userid>",
views.resend_confirmation_email,
name="resend-confirmation-email",
),
path(
"del_group/<int:userid>/<int:listrightid>",
2018-04-14 01:25:05 +00:00
views.del_group,
name="del-group",
),
2021-02-10 10:06:09 +00:00
path("del_superuser/<int:userid>", views.del_superuser, name="del-superuser"),
path("new_serviceuser", views.new_serviceuser, name="new-serviceuser"),
path(
"edit_serviceuser/<int:serviceuserid>",
2017-10-14 20:20:23 +00:00
views.edit_serviceuser,
name="edit-serviceuser",
),
path(
"del_serviceuser/<int:serviceuserid>",
2017-10-14 20:20:23 +00:00
views.del_serviceuser,
name="del-serviceuser",
),
path("add_ban/<int:userid>", views.add_ban, name="add-ban"),
path("edit_ban/<int:banid>", views.edit_ban, name="edit-ban"),
path("del-ban/<int:banid>", views.del_ban, name="del-ban"),
2021-02-10 10:06:09 +00:00
path("add_whitelist/<int:userid>", views.add_whitelist, name="add-whitelist"),
path(
"edit_whitelist/<int:whitelistid>",
2017-10-14 20:20:23 +00:00
views.edit_whitelist,
name="edit-whitelist",
),
path(
"del_whitelist/<int:whitelistid>",
views.del_whitelist,
name="del-whitelist",
),
path(
"add_emailaddress/<int:userid>",
2018-08-01 11:06:25 +00:00
views.add_emailaddress,
name="add-emailaddress",
),
path(
"edit_emailaddress/<int:emailaddressid>",
2018-08-01 11:06:25 +00:00
views.edit_emailaddress,
name="edit-emailaddress",
),
path(
"del_emailaddress/<int:emailaddressid>",
2018-08-01 11:06:25 +00:00
views.del_emailaddress,
name="del-emailaddress",
),
path(
"edit_email_settings/<int:userid>",
2018-07-30 15:00:41 +00:00
views.edit_email_settings,
name="edit-email-settings",
),
path("add_school", views.add_school, name="add-school"),
path("edit_school/<int:schoolid>", views.edit_school, name="edit-school"),
path("del_school", views.del_school, name="del-school"),
path("add_listright", views.add_listright, name="add-listright"),
path(
"edit_listright/<int:listrightid>",
2017-10-14 20:20:23 +00:00
views.edit_listright,
name="edit-listright",
),
path("del_listright", views.del_listright, name="del-listright"),
path("add_shell", views.add_shell, name="add-shell"),
path("edit_shell/<int:listshellid>", views.edit_shell, name="edit-shell"),
path("del_shell/<int:listshellid>", views.del_shell, name="del-shell"),
path("profil/<int:userid>", views.profil, name="profil"),
path("index_ban", views.index_ban, name="index-ban"),
path("index_white", views.index_white, name="index-white"),
path("index_school", views.index_school, name="index-school"),
path("index_shell", views.index_shell, name="index-shell"),
path("index_listright", views.index_listright, name="index-listright"),
path("index_serviceusers", views.index_serviceusers, name="index-serviceusers"),
path("mon_profil", views.mon_profil, name="mon-profil"),
re_path(r"^process/(?P<token>[a-z0-9]{32})/$", views.process, name="process"),
path("reset_password", views.reset_password, name="reset-password"),
path("mass_archive", views.mass_archive, name="mass-archive"),
path("", views.index, name="index"),
path("index_clubs", views.index_clubs, name="index-clubs"),
path("initial_register", views.initial_register, name="initial-register"),
path("edit_theme/<int:userid>", views.edit_theme, name="edit-theme"),
### Autocomplete Views
2021-02-10 10:06:09 +00:00
path(
"user-autocomplete",
views_autocomplete.UserAutocomplete.as_view(),
name="user-autocomplete",
),
path(
"adherent-autocomplete",
views_autocomplete.AdherentAutocomplete.as_view(),
name="adherent-autocomplete",
),
path(
"club-autocomplete",
views_autocomplete.ClubAutocomplete.as_view(),
name="club-autocomplete",
),
path(
"school-autocomplete",
views_autocomplete.SchoolAutocomplete.as_view(),
name="school-autocomplete",
),
path(
"shell-autocomplete",
views_autocomplete.ShellAutocomplete.as_view(),
name="shell-autocomplete",
),
2016-06-30 18:18:06 +00:00
]