Roberto Rosario
12a2d54f35
Fix the document type quick label list view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-06 01:14:41 -04:00
Roberto Rosario
4c1e1f0fb1
Tweak the document page list view columns CSS to improve panel display width.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 18:50:58 -04:00
Roberto Rosario
5fa0dc8d0d
Reorganize the way the document print view checks for permission to move permission checking to the dispatch method.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 04:05:19 -04:00
Roberto Rosario
57e7722f59
Don't show documents with 0 duplicates in the duplicated document list.
...
Also clean up the duplicated document model after a document is deleted.
Fix queue name typo.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-02 01:45:30 -04:00
Michael Price
8590bff6e4
Convert document thumbnails, preview, image preview and staging files to template base widgets. Unify all updated widgets. Display resolution settings are now specified as width and height and not a single resolution value.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:04:05 -04:00
Michael Price
43955d680a
Fix indentation error.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:03:01 -04:00
Michael Price
abf0ecebaf
Fix failing documents app tests.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:01:08 -04:00
Eric Riggs
c8911b901e
- Fix the document print view by switching it to a GET view instead.
...
- Add support for passing the form target.
- Update ajaxForm to emulate '_blank' form targets.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:54 -04:00
Eric Riggs
f3f4dcd84a
- Make Mayan behave like a Single Page App by using partials.
...
- Add URI.js, Ajax form.
- Split base.js into mayan_app.js, mayan_image.js, partial_navigation.js.
- Add a HOME_VIEW setting. Use it for the default view to be loaded.
- New template loading order root.html -> base.html -> any template. root.html is only loaded once. Other templates are loaded and merged with base.html via ajax load.
- Fix bug in document page view. Was storing the URL and the querystring as a single url variable.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:54:15 -04:00
Roberto Rosario
89a3d1d32a
Don't show full document version label in the heading of the document
...
version list view.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-17 01:27:56 -04:00
Roberto Rosario
5225d8d068
PEP8 cleanups
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-31 03:21:56 -04:00
Roberto Rosario
3ccebbe227
Use the urlparse method from django.six.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-29 02:15:43 -04:00
Roberto Rosario
2052caada4
Remove PreserveGetQuerySet mixin. Update SingleObjectList and
...
MultipleObjectFormActionView views to use a new get_object_list method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-16 22:12:24 -04:00
Roberto Rosario
1faa63f56c
Move extension preservetation code to the model. Improve document,
...
version and API views to include proper mimetype and encoding.
Update respective tests. GitLab issue #415 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-15 00:18:34 -04:00
Roberto Rosario
bc07bb154d
Add support for preserving the file extenstion when downloading a document
...
version. GitLab issue #415 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-11 01:46:26 -04:00
Roberto Rosario
0ba84f256d
Convert the document version list view to item view mode.
...
Add document version preview and thumbnail widgets.
Update the new version upload event have the version
as the target and the document as the action object.
Backported from the development branch.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-11 00:19:26 -04:00
Roberto Rosario
c7afc85826
Cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-08 02:47:49 -04:00
Roberto Rosario
d49a5f43ed
Add missing replacements of reverse to resolve_url.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-25 08:23:26 -04:00
Roberto Rosario
4096b8b882
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 20:30:46 -04:00
Roberto Rosario
b5b4185048
Use the list item template for the document download selection view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 01:40:32 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
f9eb7d0fb5
Renamed the document type permission namespace from "Document setup" to "Document types".
...
Add support for granting the document type edit, document type delete, and document type view
permissions to individual document type instances.
Improved tests by testing for accesses.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-17 20:41:11 -04:00
Roberto Rosario
16e0b0e0e7
Add new document version list view permission. GitLab issue #379
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-14 22:09:01 -04:00
Roberto Rosario
af3fed2a18
Use the item view for the document pages.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-14 14:09:21 -04:00
Roberto Rosario
fb520d6f92
Add view mixin to make sure a subclass can't override its
...
parent's get_queryset method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-14 05:19:50 -04:00
Roberto Rosario
ba6387021e
Fix document print view, page URL resolve.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-13 17:53:33 -04:00
Roberto Rosario
ff59f34b7f
Add document list item view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-13 17:20:02 -04:00
Roberto Rosario
829dcbf144
The trashed document deletion action is now a background task.
...
Also, the trash can emptying view calls the trash can document celery task
for each document.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-07 02:42:20 -04:00
Roberto Rosario
d4e1a506ed
Add duplicated document scan support.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 02:56:35 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
f7f0d27a05
Fix URL query string encoding for the document page navigation views.
...
GitLab issue #383 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-05-30 02:02:07 -04:00
Roberto Rosario
68dbdb111a
Add custom script_prefix aware resolve function and use it for the
...
document page navigation views. Fixes issue with Mayan installed
as a sub URL app. Fixes GitLab issue #383 . Thanks to @gsteixei
for the issue and investigation.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-05-29 14:42:55 -04:00
Roberto Rosario
83149a09e7
Convert the document page view navigation views to CBV.
...
Fix the document page transformation navigation bug.
2017-01-18 01:10:30 -04:00
Roberto Rosario
9f837aaade
Add view to clone a document page transformations to other pages.
2017-01-16 01:05:34 -04:00
Roberto Rosario
66a49ccefc
Refactor the document transformation clear view.
2016-12-23 15:35:56 -04:00
Roberto Rosario
e41537d22c
Refactor the document page count update view.
2016-12-23 15:24:36 -04:00
Roberto Rosario
58a445a923
Cleanups
2016-12-23 02:14:17 -04:00
Roberto Rosario
b265dea1eb
Refactor the document change type views to use the MultipleObjectFormActionView CBV.
2016-12-23 02:10:31 -04:00
Roberto Rosario
3663521899
Split document app views into different modules.
2016-11-13 18:16:01 -04:00