urls.py 3.74 KB
Newer Older
lhark's avatar
lhark committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 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.

23 24
from __future__ import unicode_literals

chirac's avatar
chirac committed
25 26
from django.conf.urls import url

27
import re2o
chirac's avatar
chirac committed
28
from . import views
29
from . import payment
chirac's avatar
chirac committed
30 31

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