Shohan
5c1046b2f0
[refactor] Refactor tests to not use parent page id
2021-10-15 16:51:18 +01:00
Shohan
31db97344f
[refactor] Remove the use of parent page id in bulk actions
2021-10-15 16:51:18 +01:00
Shohan
2d29c12c6f
[refactor] Revert earlier changes made for move confirmation page
2021-10-15 16:51:18 +01:00
Shohan
693471a942
[refactor] Fix linting issues
2021-10-15 16:51:18 +01:00
Shohan
8de4b23f38
[refactor] Refactor tests for bulk page move
2021-10-15 16:51:18 +01:00
Shohan
f7c4e2eb05
[refactor] Refactor move bulk action to use the PageBulkAction class
2021-10-15 16:51:18 +01:00
Shohan
6810bd6b33
[refactor] Remove unwanted space
2021-10-15 16:51:18 +01:00
Shohan
950fb45d98
[refactor] Refactor tests for page bulk actions
...
Changed following
- before and after hooks for each action are now changed to before_bulk_action and after_bulk_action hooks
2021-10-15 16:51:18 +01:00
Shohan
77fabffec4
[refactor] Refactor page bulk actions to use the PageBulkActionClass, and restructure the module location
2021-10-15 16:51:18 +01:00
Shohan
92027d4f50
[refactor] Refactor bulk_action_choices to page_bulk_action_choices
...
Changed following
- The tag now calls a hook to get a final list of the actions, and then generates buttons from that list
2021-10-15 16:51:18 +01:00
Shohan
89597cd233
[feat] Add dispatcher view for dispatching page bulk actions
...
Changed following
-Removed individual url patterns for each action, and use a single url pattern with action as a parameter
2021-10-15 16:51:18 +01:00
Shohan
1eaf53b181
[feat] Add base bulk action class, and page bulk action subclass
2021-10-15 16:51:18 +01:00
Shohan
525e328790
[refactor] Apply pluralisation and change success messages for bulk actions
...
Changed following
- Change f-strings to % formatting
- Change messages to impersonal
- Use pluralisation for messages
2021-10-15 16:51:18 +01:00
Shohan
ffd49116ce
[refactor] Remove unused tag variables and use trans tag for all text in html files
2021-10-15 16:51:18 +01:00
Shohan
d4ec8292dc
[refactor] Refactor bulk actions to not raise PermissionDenied for pages with no access
...
Changed following
- Earlier, if the user didnt have access to perform the action on even one of the pages, a PermissionDenied exception was raised. This was undesirable behaviour. Now, these pages are listed on the confirmation page of the action, where it is explicitly mentioned that the action cannot be performed on these pages.
2021-10-15 16:51:18 +01:00
Shohan
7b3309965b
[feat] Add tests for bulk actions
2021-10-15 16:51:18 +01:00
Shohan
46bebde476
[feat] Add bulk action for move
2021-10-15 16:51:18 +01:00
Shohan
3ef56faac9
[refactor] Change filters implementation
...
Added following
- Separate routes for getting filter count with or without parent page id
- Use already existing parse_query_string function for parsing filter string
Changed following
- apply_filters now uses django's Q object, for more flexibility of filters
Fixed following
- bulk_action_choices hook now passes existing tests
2021-10-15 16:51:18 +01:00
Shohan
f96b9c829e
[refactor] Refactor code to comply with style guide
2021-10-15 16:51:18 +01:00
Shohan
f875484f73
[feat] Add support for filters and bulk actions (del, pub, and unpub)
...
Added following
- Add support for filters
- Add bulk delete, publish and unpublish actions (views and templates)
- Add search textbox to get filtered results
- Add view to get count of pages corresponding to a set of given filters
2021-10-15 16:51:18 +01:00
Shohan
64a1d7299f
[feat] Add bulk actions in page listing
...
Added following
- Add bulk action checkboxes (non functional), actions, filters in page listing (non functional)
- Add search bar in page listing (non functional)
2021-10-15 16:51:18 +01:00
Thibaud Colas
a32d390b83
Fix linting issue
2021-10-15 16:17:23 +01:00
Thibaud Colas
7f72540ac3
Fix visibility of sidebar footer items when closed
2021-10-15 16:17:23 +01:00
Thibaud Colas
36a793eb1f
Add keyboard interactions to sidebar footer
2021-10-15 16:17:23 +01:00
Thibaud Colas
e1f9db736d
Make it possible for slim sidebar submenus to vertically scroll
2021-10-15 16:17:23 +01:00
Thibaud Colas
27428e3760
Fix vertical scrolling of main slim sidebar panel
2021-10-15 16:17:23 +01:00
Jérôme Lebleu
025a28f238
Set the bound field label with the heading argument
...
When a FielPanel is rendered as a field, the label is outputted with the
`bound_field.label_tag()` method. Thus, the field's label is not
overridden with the `heading` argument.
This attempts to fix that by set the `bound_field.label` property with
the `heading` argument.
Fix s#6855.
2021-10-15 23:43:17 +10:00
Matt Westcott
4cc93bac68
Add script for finding translated strings with broken placeholders
2021-10-15 23:33:43 +10:00
Matt Westcott
20ed834132
Release note for typed table block #7470
2021-10-15 14:33:00 +01:00
Shariq Jamil
c4422b2bec
add border to comments dropdown
...
- for windows high contrast mode
- fixes #7458
2021-10-15 23:25:09 +10:00
Matt Westcott
5e720fa1d5
Reorganise control columns to put tab order for 'insert column' buttons at start
2021-10-15 14:20:56 +01:00
Matt Westcott
eec0ad2981
Improve tab ordering of 'insert column' buttons
2021-10-15 14:20:56 +01:00
Matt Westcott
e6b0def9e2
Add aria-label attributes to buttons
2021-10-15 14:20:56 +01:00
Matt Westcott
85781dfbac
Update test snapshot for new markup
2021-10-15 14:20:56 +01:00
Coen van der Kamp
8deaf401f4
Reposition bottom add row button, add bin icons
2021-10-15 14:20:56 +01:00
Coen van der Kamp
5152dbd959
Prevent clipping of the column menu
2021-10-15 14:20:56 +01:00
Coen van der Kamp
3f3f3fe319
Make remove buttons red
2021-10-15 14:20:56 +01:00
Coen van der Kamp
efb1024a72
Drop overflow hack
2021-10-15 14:20:56 +01:00
Coen van der Kamp
516f0dd7e1
Add table wrapper, makes any number of columns possible
2021-10-15 14:20:56 +01:00
Matt Westcott
78389caa95
Remove unnecessary indentation from code examples
2021-10-15 14:20:56 +01:00
Matt Westcott
6012291707
Documentation formatting fixes
...
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2021-10-15 14:20:56 +01:00
Matt Westcott
2626dec7d7
fixup! CSS tweaks as per https://github.com/wagtail/wagtail/pull/7470#issuecomment-941369676
2021-10-15 14:20:56 +01:00
Matt Westcott
39978caf53
Revert to initial empty state after removing all columns
2021-10-15 14:20:56 +01:00
Matt Westcott
1b3baaf975
Change 'insert here' tooltips to 'insert'
2021-10-15 14:20:56 +01:00
Matt Westcott
83871f641e
CSS tweaks as per https://github.com/wagtail/wagtail/pull/7470#issuecomment-941369676
2021-10-15 14:20:56 +01:00
Matt Westcott
55c72fd3ba
Docs for typed table block
2021-10-15 14:20:56 +01:00
Matt Westcott
a6649c0080
Add frontend tests for TypedTableBlock
2021-10-15 14:20:56 +01:00
Matt Westcott
3635ad8280
Upgrade jest / jsdom
...
typed table block uses replaceChildren, which was added to jsdom in 16.6.0
2021-10-15 14:20:56 +01:00
Matt Westcott
803316080f
Add server-side tests for TypedTableBlock
2021-10-15 14:20:56 +01:00
Matt Westcott
3753b7a9e4
implement getTextLabel
2021-10-15 14:20:56 +01:00