Commit 145106c9 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[enh] make accounting public

parent 8d05d0ed
......@@ -3,7 +3,7 @@
-block bootstrap3_content
.container
%h1 Neutrinet Public (not yet actually) Accounting Page
%h1 Neutrinet Public Accounting Page
%hr
-regroup movement_list by date.year as movement_list
......@@ -26,7 +26,10 @@
%td= forloop.revcounter
%td= movement.date
%td
%a{href: "/admin/accounts/movement/{{ movement.id }}/", target: "_blank"}= movement.title
-if user.is_superuser
%a{href: "/admin/accounts/movement/{{ movement.id }}/", target: "_blank"}= movement.title
-else
=movement.title
%td.money
-if movement.kind == "debit"
=movement.amount
......@@ -64,17 +67,18 @@
-current_year_sold movement_year.grouper
%hr
-if user.is_superuser
%hr
%p.center
%b
%a{href: "{% url 'accounts_upload_record_bank_csv' %}"}
Upload page for record bank CSV
%p.center
%b
%a{href: "{% url 'accounts_upload_record_bank_csv' %}"}
Upload page for record bank CSV
%p.center
%b
%a{href: "{% url 'accounts_importreport_list' %}"}
All import reports
%p.center
%b
%a{href: "{% url 'accounts_importreport_list' %}"}
All import reports
:css
th {
......
......@@ -8,7 +8,7 @@ from . import views
urlpatterns = patterns('',
url(r'^$', user_is_admin(ListView.as_view(model=Movement, template_name="accounts/home.haml")), name='accounts_home'),
url(r'^$', ListView.as_view(model=Movement, template_name="accounts/home.haml"), name='accounts_home'),
url(r'^import_report/$', user_is_admin(ListView.as_view(model=ImportReport, template_name="accounts/importreport_list.haml")), name='accounts_importreport_list'),
url(r'^import_report/(?P<pk>\d+)/$', user_is_admin(DetailView.as_view(model=ImportReport, template_name="accounts/importreport_detail.haml")), name='accounts_importreport_detail'),
url(r'^upload_record_bank_csv/$', user_is_admin(views.UploadRecordBankCsv.as_view()), name='accounts_upload_record_bank_csv'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment