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
Matt Westcott
33e015d1e7
Implement focus
2021-10-15 14:20:56 +01:00
Matt Westcott
d41dcd6381
styling for add-column menu
2021-10-15 14:20:56 +01:00
Matt Westcott
cdf8e9d409
Improve consistency of buttons
2021-10-15 14:20:56 +01:00
Matt Westcott
0270e769d6
Add title text for 'add column' button
2021-10-15 14:20:56 +01:00
Matt Westcott
6abca18817
Make strings translatable
2021-10-15 14:20:56 +01:00
Matt Westcott
4706daf274
Button style/positioning
2021-10-15 14:20:56 +01:00
Matt Westcott
62ead9a1fb
Implement validation
2021-10-15 14:20:56 +01:00
Matt Westcott
cb6960037d
Add front-end rendering for TypedTableBlock
2021-10-15 14:20:56 +01:00
Matt Westcott
1cd2ff3024
Add a dedicated TypedTable class to serve as the value of TypedTableBlock
...
This will help with creating the front-end rendering, as we can attach a helper method to return cells as BoundBlocks.
2021-10-15 14:20:56 +01:00
Matt Westcott
a03bcfee6d
Replace 'enumerate's with 'zip's
...
Makes things a bit neater when iterating over row contents to perform some operation from the corresponding block.
2021-10-15 14:20:56 +01:00