urls.py 3.44 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# 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.
22 23 24
"""cotisations.urls
The defined URLs for the Cotisations app
"""
25

26 27
from __future__ import unicode_literals

28 29
from django.conf.urls import url

30
import re2o
31
from . import views
32
from . import payment_methods
33 34

urlpatterns = [
35 36
    url(
        r'^new_facture/(?P<userid>[0-9]+)$',
chirac's avatar
chirac committed
37 38
        views.new_facture,
        name='new-facture'
39 40 41
    ),
    url(
        r'^edit_facture/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
42 43
        views.edit_facture,
        name='edit-facture'
44 45 46
    ),
    url(
        r'^del_facture/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
47 48
        views.del_facture,
        name='del-facture'
49 50 51
    ),
    url(
        r'^facture_pdf/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
52 53
        views.facture_pdf,
        name='facture-pdf'
54 55 56
    ),
    url(
        r'^new_facture_pdf/$',
chirac's avatar
chirac committed
57 58
        views.new_facture_pdf,
        name='new-facture-pdf'
59 60 61
    ),
    url(
        r'^credit_solde/(?P<userid>[0-9]+)$',
chirac's avatar
chirac committed
62 63
        views.credit_solde,
        name='credit-solde'
64 65 66
    ),
    url(
        r'^add_article/$',
chirac's avatar
chirac committed
67 68
        views.add_article,
        name='add-article'
69 70 71
    ),
    url(
        r'^edit_article/(?P<articleid>[0-9]+)$',
chirac's avatar
chirac committed
72 73
        views.edit_article,
        name='edit-article'
74 75 76
    ),
    url(
        r'^del_article/$',
chirac's avatar
chirac committed
77 78
        views.del_article,
        name='del-article'
79 80 81
    ),
    url(
        r'^add_paiement/$',
chirac's avatar
chirac committed
82 83
        views.add_paiement,
        name='add-paiement'
84 85 86
    ),
    url(
        r'^edit_paiement/(?P<paiementid>[0-9]+)$',
chirac's avatar
chirac committed
87 88
        views.edit_paiement,
        name='edit-paiement'
89 90 91
    ),
    url(
        r'^del_paiement/$',
chirac's avatar
chirac committed
92 93
        views.del_paiement,
        name='del-paiement'
94 95 96
    ),
    url(
        r'^add_banque/$',
chirac's avatar
chirac committed
97 98
        views.add_banque,
        name='add-banque'
99 100 101
    ),
    url(
        r'^edit_banque/(?P<banqueid>[0-9]+)$',
chirac's avatar
chirac committed
102 103
        views.edit_banque,
        name='edit-banque'
104 105 106
    ),
    url(
        r'^del_banque/$',
chirac's avatar
chirac committed
107 108
        views.del_banque,
        name='del-banque'
109 110 111
    ),
    url(
        r'^index_article/$',
chirac's avatar
chirac committed
112 113
        views.index_article,
        name='index-article'
114 115 116
    ),
    url(
        r'^index_banque/$',
chirac's avatar
chirac committed
117 118
        views.index_banque,
        name='index-banque'
119 120 121
    ),
    url(
        r'^index_paiement/$',
chirac's avatar
chirac committed
122 123
        views.index_paiement,
        name='index-paiement'
124 125 126
    ),
    url(
        r'history/(?P<object_name>\w+)/(?P<object_id>[0-9]+)$',
127 128
        re2o.views.history,
        name='history',
129
        kwargs={'application': 'cotisations'},
130 131 132
    ),
    url(
        r'^control/$',
chirac's avatar
chirac committed
133 134
        views.control,
        name='control'
135
    ),
136
    url(r'^$', views.index, name='index'),
137
] + payment_methods.urls.urlpatterns