* [feat] Add bulk delete view and template for documents
* [feat] Add view and template to add tags to documents in bulk
* [feat] Add view and template to add documents to a collection in bulk
* [feat] Add action dispatcher for documents bulk actions
* [feat] Add bulk action ui to documents listing
* [refactor] Refactor code to align with changes in bulk action base class
Changed following
- Change execute_action from classmethod to instance method
- Use cleaned form data instead of accessing request.POST data
- Add can_edit property to objects with no access
* [refactor] Refactor code to use the reusable confirmation templates
* [feat] Add tests for document bulk actions
* [refactor] Change code in execute_action to align with changes in base bulk action class
* [refactor] Use counter instead of num_docs in confirmation templates
* [refactor] Change aria label for checkbox
* [refactor] Use context instead of ctx, and change 'can_edit' to check for 'change' permission
* Show filters only for pages
* [refactor] Reduce width of checkbox column in documents listing
Changed following
- action bar now uses translate for animation instead of changing layout
- action bar is now hidden from both text readers and keyboard navigation when it is out of view
- css now doesn't use elements for styling
- 'Show all in listing' is now a button instead of an <a>
- Changed aria labels to more suitable and meaningful ones
Changed following
- execute_action requires the use of several instance variables like cleaned form and request, which cannot be accessed if it were a class method. It was working till now since the classmethod decorator was not applied in the inherited class
Changed following
- Most bulk actions have a form requirement. Therefore, subclassing FormView makes everything easier, the form is cleaned before the bulk action is processed, and any errors are returned with appropriate error strings. The cleaned form data is available to all methods after the form is cleaned.
Fixed following
- Fixed the transition time of the action bar
- Fixed the sudden jerk due to text change in the action bar
- select all text in the action bar now appears only if there are more objects to display
Fixed following
- The text color on the bulk action buttons used to turn white on hover. Now, the text color changes acoordingly
- Changes to footer css changed caused changes in some unwanted places. Fixed that by namespacing the css changes
Added following
- Add 'More' dropdown if there are more than 4 bulk actions
- Add bulk actions to 'Pages search' page
Changed following
- Move actions bar from headers to footer
Added following
- Add prepare action method that runs before transaction starts
- Add a default form with a default field
Changed following
- Move permissions check in bulk move from before hook to a method that runs before the transaction starts
- Select all pages now doesn't fetch all ids, but passes id as all and the parent page id
- Change no access permissions
Fixed following
- Fix tests for changes in html
Added following
- Added comments
Changed following
- Displays confirm action button only when there are actionable objectsg
- Bulk actions are displayed in same order as page listing buttons
Fixed following
- Fix tests due to change in html of confirmation pages