David Winterbottom
2b0e73192c
Fix issue with None being passed to report formatter
12 years ago
David Winterbottom
41448b034e
Remove BOM from CSV writer
It was causing problems with Excel, which didn't recognise it and showed
a strange symbol. I can't find a compelling reason to keep it, so it
goes.
12 years ago
Maik Hoepfel
325eee6830
Ensure Oscar always displays timezone-aware datetimes
In a few cases, django.templatefilters.date was used to format a
datetime as string. This filters expects localtime, but was always
passed time in UTC.
Introduced a helper function that should be used instead of the template
filter.
12 years ago
David Winterbottom
ea99333e32
Use content_type rather than mimetype in responses
12 years ago
Skirmantas Jurgaitis
739dd1c9d2
Fixed github issue #624: UnicodeDecodeError when exporting orders as CSV
13 years ago
Sebastian Vetter
3ec3307ab6
Use settings-based dashboard nav
Replace the import-time nav set-up with a settings-based one. This is
more flexible ultimately although it doesn't allow extensions to easily
add their node automatically. However this is probably a good thing
overall as it isn't easy to remove nodes in the previous impl.
Fixes 426
13 years ago
andrefsp
775e2e7bbd
Move _get_generator inside report.views.IndexView
This allows it to be customised via view class subclassing.
Also, made report_form_class and generator_repository views attributes
so they can be more easily overriden.
Fixes #431
13 years ago
Sebastian Vetter
bb3b01fa25
Make dashboard apps use Oscar's staff_member_required decorator
13 years ago
David Winterbottom
f47c1d8378
Download orders that use an offer in a CSV file
An extension to the offer detail page. Reminds me how much the
reporting classes need reworking. Some day soon perhaps...
13 years ago
David Winterbottom
7355d5a224
Extend report CSV writer to support utf-8
Using example classes from http://docs.python.org/2/library/csv.html#examples
Fixes #390
13 years ago
Dan Atkinson
6046c2ebf0
Correct i18n issues
* Missing template tags
* Incorrect message formatting
13 years ago
Janusz Harkot
cb9ff7e52e
missing translations, remove unicode from translation strings
13 years ago
David Winterbottom
8c7be18450
Fixed issue with offer/order reports
13 years ago
David Winterbottom
145a9d9959
Adjusted reporting templates slightly
13 years ago
David Winterbottom
8e7fc4c89c
Updated dashboard reports to be inclusive of the end date
13 years ago
David Winterbottom
55ccfa79fd
Added i18n tags to app.py modules, and some missing form labels
13 years ago
David Winterbottom
81a16d08fe
Updated report generator to provide title
13 years ago
David Winterbottom
a5ae95fc28
Added i18n support to dashboard python modules
13 years ago
David Winterbottom
d4435b3634
Added i18n support to dashboard templates
13 years ago
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
13 years ago
David Winterbottom
93fcac8b17
Tidied up templates slightly
13 years ago
Asia Biega
f22ea6f7c7
Paginate html report results
13 years ago
Asia Biega
c3c96d311d
Enable generating reports as html and csv.
13 years ago
Asia Biega
5f1aff6a71
Enable generating reports as html and csv.
13 years ago
David Winterbottom
87fd5c64c5
Voucher dashboard now in place.
Features:
* Basic crud
* Stats view
13 years ago
David Winterbottom
2ab0c5228a
Added date formatting methods to ensure reports are consistent.
The dates should be picked up correctly by Excel now.
13 years ago
David Winterbottom
3c88685b29
Merged master - fix template conflict
13 years ago
David Winterbottom
b27a1286e4
Cleaned up apps to not use import_module
13 years ago
David Winterbottom
2c98b4f8ec
Reworked order of dashboard navigation
13 years ago
David Winterbottom
42d4080bc0
Added JS datepicker (unstyled) to dashboard forms
13 years ago
David Winterbottom
aaf925709c
Added ability to specify dasboard nav item order
13 years ago
David Winterbottom
5bf851d8c1
Added dynamic dashboard nav.
Use the fns in app.dashboard.nav to edit
14 years ago
Eleni Lixourioti
689de3e878
dashboard additions for userer management
14 years ago
David Winterbottom
4007c9748d
Moved orders app into sub-folder of dashboard
14 years ago
David Winterbottom
1b8117b4fe
Moved reporting app into dashboard
14 years ago