Michael Price
f85b30c967
Fix the failing tests from the linking app.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:01:14 -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
Michael Price
49bb7c879e
Add root API showing the new endpoints.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:38 -04:00
Michael Price
afd4748426
Don't try to return a serializer if there is no request object. Used when the API view is being introspected.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:27 -04:00
Michael Price
f8cb63b11a
Use a SHA256 hex digest of the secret key at the name of the lockfile.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:19 -04:00
Michael Price
8a3f9c7e4e
Don't scan documents without at least a version for duplicates.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:12 -04:00
Eric Riggs
67b940aec9
Add AJAX workers only for the static links.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:53 -04:00
Eric Riggs
c267933fb8
- Make navigation bar collapse work by code instead of CSS classes.
...
- Collapse navigation bar on Escape key.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:41 -04:00
Eric Riggs
ac7cef2fd9
- Remove console logs and debug statements.
...
- Add code documentation.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:32 -04:00
Eric Riggs
00185ef936
Clicking any link will collapse a responsive main menu.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:24 -04:00
Eric Riggs
6afd3eb869
Fix missing icons for signin, dashboard links, rotate left and rotate right.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:10 -04:00
Eric Riggs
5b8ae1be2e
Fix cabinet navigation.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:59:02 -04:00
Eric Riggs
c7caa53b52
Reload the root template with a view is not loaded via AJAX.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:56 -04:00
Eric Riggs
5f80563e49
Add the same hidding CSS classes to the new Icon class.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:49 -04:00
Eric Riggs
cc7eb92550
- Add support for filtering the notification list API by read status.
...
- Show only unread notification on the badge.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:42 -04:00
Eric Riggs
98c61bf819
- Fix tabular radio button template.
...
- Broke with the upgrade to Django 1.11.
- Used by the event subscription form.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:34 -04:00
Eric Riggs
b083bd534b
Fix and update Dropzonejs.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:28 -04:00
Eric Riggs
6aca0cd874
Add notification count inside a badge on the notification link.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:21 -04:00
Eric Riggs
ee75f0e92d
Prevent default when opening a link in a new window. Fixes Swagger page opening twice.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:12 -04:00
Eric Riggs
63f3f83fa3
Update partials with server side errors to emulate the old error (404, 403) behavior of Mayan.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:58:05 -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
410f8fed76
- Fix login and authentication views by adding the html_extra_classes Link attribute and using it to avoid loading authentication clicks as partials.
...
- Add a new base_plain template as parernt for the authentication templates.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:47 -04:00
Eric Riggs
5b3285c006
Add periodic AJAX workers to update the value of the notifications link.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:38 -04:00
Eric Riggs
5704c21d56
Support AJAX anchors with no path and just a query. Used by the pagination links.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:31 -04:00
Eric Riggs
c2e25e6d0d
Add page loading indicator using PACE.js.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:24 -04:00
Eric Riggs
3d3684daeb
Remove unused animate.css package.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:11 -04:00
Eric Riggs
d6c9ce071c
Remove the unused scrollable_content internal feature.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:01 -04:00
Eric Riggs
accfee4c50
Add template and modal to display server side errors.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:56:53 -04:00
Eric Riggs
57f03b21fc
- Update the markup of the multiple object action form into a valid markup. The checkboxes are now outside the form's tags.
...
- Add beforeSerialization callback support to ajaxForm.
- Add a callback to add the external checkboxes to the multiple object action form being submitted.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:55:54 -04:00
Eric Riggs
fc8dc74de4
Don't use the previous variable when canceling a form action. Form now use only javascript's history.back().
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:55:18 -04:00
Eric Riggs
d83a50d36a
Use history.back instead of history.go(-1).
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:55:09 -04:00
Eric Riggs
53c277b420
Remove the main menu from the base template. It should only exist in the root template.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:55:01 -04:00
Eric Riggs
3be28131c9
- Pass the AJAX referer for all AJAX requests.
...
- Switch to synchronous requests.
- All location changes go through the setLocation method.
- Switch to using history.pushState.
- AJAX middleware inserts AJAX referer as the request HTTP_REFERER.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:54:50 -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
Michael Price
e4f61b3ad8
Fix document search tests.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 19:53:40 -04:00
Michael Price
9ca7ca5ce6
Make sure the document page image API goes via the proper queryset filtering.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 19:53:23 -04:00
Michael Price
381dafc7b9
Update to Font Awesome 5. Add experimental Icon class. Simplify document loading icon.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-01 19:53:03 -04:00
Michael Price
69adce5c02
Add ordering by 'pk' field to the AccessControlList model to silence the UnorderedObjectListWarning warning.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:39:34 -04:00
Michael Price
d0c6c7e6de
Update ACLs app API tests to the latest API class interface.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:39:21 -04:00
Michael Price
e2cc939260
Fix indentation.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:39:04 -04:00
Michael Price
702618b924
SearchModel no longer returns result_set. It is unfiltered and unused.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:38:53 -04:00
Michael Price
d93fafcf57
Return the result's serializer only during use not during introspection.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:38:39 -04:00
Michael Price
f93521395c
Django's 1.11 urlencode doesn't work in the same as in version 1.10. Update to fix.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:38:14 -04:00
Cornelius Ludmann
d7567f4b97
Test for base64 encoded e-mail attachment filename
...
Signed-off-by: Cornelius Ludmann <dev@cornelius-ludmann.de >
2018-04-01 18:37:35 -04:00
Cornelius Ludmann
c29d7c6e5b
Decode base64 encoded e-mail attachment filename.
...
According to RFC 2231 the filename of e-mail attachments can be encoded,
e.g. with base64 (for example, the Brother ADS2800W Scanner does this).
Here an example how it looks like:
Content-Disposition: attachment; filename="=?UTF-8?B?QlJXMjg1NjVBOEI5RkQyXzIwMTcwNTIzXzIzMDMzN18wMDAzMDMucGRm?="
Signed-off-by: Cornelius Ludmann <dev@cornelius-ludmann.de >
2018-04-01 18:37:25 -04:00
Michael Price
4b36c27e33
Add API test for the document checkout API.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:37:14 -04:00
Michael Price
55ba6786b3
Fix and modernize the document checkout API view. Move API logic to serializer.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:36:56 -04:00
Michael Price
3165912837
Format line according to best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:36:30 -04:00
Michael Price
4378b28777
Update API vies and serializers for the latest Django REST framework version. Replace DRF Swagger with DRF-YASG.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:31:22 -04:00
Michael Price
77a3c103d1
Tweak app API urls.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:31:11 -04:00