urls.py 5.15 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 30
from django.conf.urls import url

from . import views
31
from . import payment_methods
32 33

urlpatterns = [
34 35
    url(
        r'^new_facture/(?P<userid>[0-9]+)$',
chirac's avatar
chirac committed
36 37
        views.new_facture,
        name='new-facture'
38 39 40
    ),
    url(
        r'^edit_facture/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
41 42
        views.edit_facture,
        name='edit-facture'
43 44 45
    ),
    url(
        r'^del_facture/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
46 47
        views.del_facture,
        name='del-facture'
48 49 50
    ),
    url(
        r'^facture_pdf/(?P<factureid>[0-9]+)$',
chirac's avatar
chirac committed
51 52
        views.facture_pdf,
        name='facture-pdf'
53
    ),
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
    url(
        r'^new_cost_estimate/$',
        views.new_cost_estimate,
        name='new-cost-estimate'
    ),
    url(
        r'^index_cost_estimate/$',
        views.index_cost_estimate,
        name='index-cost-estimate'
    ),
    url(
        r'^cost_estimate_pdf/(?P<costestimateid>[0-9]+)$',
        views.cost_estimate_pdf,
        name='cost-estimate-pdf',
    ),
69
    url(
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
70 71 72 73
        r'^index_custom_invoice/$',
        views.index_custom_invoice,
        name='index-custom-invoice'
    ),
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
    url(
        r'^edit_cost_estimate/(?P<costestimateid>[0-9]+)$',
        views.edit_cost_estimate,
        name='edit-cost-estimate'
    ),
    url(
        r'^cost_estimate_to_invoice/(?P<costestimateid>[0-9]+)$',
        views.cost_estimate_to_invoice,
        name='cost-estimate-to-invoice'
    ),
    url(
        r'^del_cost_estimate/(?P<costestimateid>[0-9]+)$',
        views.del_cost_estimate,
        name='del-cost-estimate'
    ),
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
    url(
        r'^new_custom_invoice/$',
        views.new_custom_invoice,
        name='new-custom-invoice'
    ),
    url(
        r'^edit_custom_invoice/(?P<custominvoiceid>[0-9]+)$',
        views.edit_custom_invoice,
        name='edit-custom-invoice'
    ),
    url(
        r'^custom_invoice_pdf/(?P<custominvoiceid>[0-9]+)$',
        views.custom_invoice_pdf,
        name='custom-invoice-pdf',
    ),
    url(
        r'^del_custom_invoice/(?P<custominvoiceid>[0-9]+)$',
        views.del_custom_invoice,
        name='del-custom-invoice'
108 109 110
    ),
    url(
        r'^credit_solde/(?P<userid>[0-9]+)$',
chirac's avatar
chirac committed
111 112
        views.credit_solde,
        name='credit-solde'
113 114 115
    ),
    url(
        r'^add_article/$',
chirac's avatar
chirac committed
116 117
        views.add_article,
        name='add-article'
118 119 120
    ),
    url(
        r'^edit_article/(?P<articleid>[0-9]+)$',
chirac's avatar
chirac committed
121 122
        views.edit_article,
        name='edit-article'
123 124 125
    ),
    url(
        r'^del_article/$',
chirac's avatar
chirac committed
126 127
        views.del_article,
        name='del-article'
128 129 130
    ),
    url(
        r'^add_paiement/$',
chirac's avatar
chirac committed
131 132
        views.add_paiement,
        name='add-paiement'
133 134 135
    ),
    url(
        r'^edit_paiement/(?P<paiementid>[0-9]+)$',
chirac's avatar
chirac committed
136 137
        views.edit_paiement,
        name='edit-paiement'
138 139 140
    ),
    url(
        r'^del_paiement/$',
chirac's avatar
chirac committed
141 142
        views.del_paiement,
        name='del-paiement'
143 144 145
    ),
    url(
        r'^add_banque/$',
chirac's avatar
chirac committed
146 147
        views.add_banque,
        name='add-banque'
148 149 150
    ),
    url(
        r'^edit_banque/(?P<banqueid>[0-9]+)$',
chirac's avatar
chirac committed
151 152
        views.edit_banque,
        name='edit-banque'
153 154 155
    ),
    url(
        r'^del_banque/$',
chirac's avatar
chirac committed
156 157
        views.del_banque,
        name='del-banque'
158 159 160
    ),
    url(
        r'^index_article/$',
chirac's avatar
chirac committed
161 162
        views.index_article,
        name='index-article'
163 164 165
    ),
    url(
        r'^index_banque/$',
chirac's avatar
chirac committed
166 167
        views.index_banque,
        name='index-banque'
168 169 170
    ),
    url(
        r'^index_paiement/$',
chirac's avatar
chirac committed
171 172
        views.index_paiement,
        name='index-paiement'
173 174 175
    ),
    url(
        r'^control/$',
chirac's avatar
chirac committed
176 177
        views.control,
        name='control'
178
    ),
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
    url(
        r'^add_document_template/$',
        views.add_document_template,
        name='add-document-template'
    ),
    url(
        r'^edit_document_template/(?P<documenttemplateid>[0-9]+)$',
        views.edit_document_template,
        name='edit-document-template'
    ),
    url(
        r'^del_document_template/$',
        views.del_document_template,
        name='del-document-template'
    ),
    url(
        r'^index_document_template/$',
        views.index_document_template,
        name='index-document-template'
    ),
199
    url(r'^$', views.index, name='index'),
200
] + payment_methods.urls.urlpatterns