Sage Abdullah
baf26ed5fa
Extract BaseListingView.get_filterset_kwargs()
2024-03-11 09:55:42 +00:00
Sage Abdullah
88fad9a071
Show full label for non-page listings HeaderButton
...
In the new designs, listings other than the page listings should show
the complete label for the main header button.
The page listing only shows the icon because much of the space is taken
by the side panel toggles.
The page listing's header button hasn't been refactored to use the
HeaderButton class, hence there is no changes to the page listings code
in this commit.
2024-03-11 09:55:41 +00:00
Sage Abdullah
a5aafe0d15
Remove support for customising the number of entries on the image listing
2024-03-11 09:55:41 +00:00
Sage Abdullah
a35b2f5bff
Use gettext_lazy for images IndexView class attributes
2024-03-11 09:55:41 +00:00
Sage Abdullah
420723c174
Move 'sort by' select element in images listing to the slim header
...
This uses a custom header template that extends the slim_header.html
We could do this without the custom header template, but this would mean
the slim_header.html will accept yet another variable (extra_form_fields),
which we are trying to avoid to prevent it from accepting so many variables
like header.html.
This is especially since this "extra fields" block is only needed for the
images listing (at least for the foreseeable future).
2024-03-11 09:55:41 +00:00
Sage Abdullah
146a9f8e3f
Move rendering of header_buttons to slim_header.html
...
This allows us to easily override the slim_header block, as we won't need to redo the buttons rendering
2024-03-11 09:55:41 +00:00
Sage Abdullah
8f69ce3160
Refactor images collection filter to use django-filter
2024-03-11 09:55:38 +00:00
Sage Abdullah
9bd6abf16d
Extract CollectionQuerySet.get_min_depth()
2024-03-11 09:49:45 +00:00
Sage Abdullah
145f7af5e9
Preserve and pass only the collection_id to images add view
2024-03-11 09:49:45 +00:00
Sage Abdullah
3003632f2d
Use breadcrumbs in images listing view
2024-03-11 09:47:14 +00:00
LB Johnston
dd48762b18
Update changelog for cherry-pick #11736
2024-03-09 20:19:41 +10:00
Sage Abdullah
574a9d4ebd
Use TeleportController to re-render slim header's buttons on results refresh
...
Fixes #11726
2024-03-09 20:15:03 +10:00
Sage Abdullah
2003e14a95
Allow TeleportController to have any number of child nodes of any kind
2024-03-09 20:15:03 +10:00
Meagen Voss
a21b1cf21c
Adding a small README promo for Wagtail Space 2024 ( #11742 )
...
* Added promo for Wagtail Space 2024.
2024-03-09 17:46:54 +10:00
Matt Westcott
007d5b048d
Release note for #11735
2024-03-07 14:54:35 +00:00
Matt Westcott
92d1ff5d7a
Remove lesser-used archive formats from WAGTAILDOCS_EXTENSIONS list
2024-03-07 12:19:23 +00:00
Matt Westcott
5e5619d43f
Add warnings about XSS to WAGTAILDOCS_SERVE_METHOD and WAGTAILDOCS_EXTENSIONS settings docs
2024-03-07 12:19:22 +00:00
Matt Westcott
00d1d134aa
Mention WAGTAILDOCS_EXTENSIONS in 'integrating into Django' docs
2024-03-07 12:19:22 +00:00
Matt Westcott
f39a91a67e
Set a default WAGTAILDOCS_EXTENSIONS list in project template
2024-03-07 12:19:22 +00:00
Matt Westcott
abde315c0b
Update deployment docs to cover XSS risks
2024-03-07 12:19:22 +00:00
Sage Abdullah
c741351635
Release note for #11485
2024-03-07 09:58:28 +00:00
Matt Westcott
b05c50b3f5
Add reference docs for PageListingViewSet
2024-03-07 09:57:11 +00:00
Matt Westcott
f67b68d8ed
Use double quotes in
...
Co-authored-by: sage <laymonage@gmail.com>
2024-03-07 09:57:10 +00:00
Matt Westcott
16c23ba401
Make ExplorableIndexView.columns neater with classproperty
2024-03-07 09:57:10 +00:00
Matt Westcott
24c984192e
Add documentation for custom page listings via PageListingViewSet
2024-03-07 09:57:10 +00:00
Matt Westcott
2eab0b171d
Remove duplication between explorable_index.html and index.html
2024-03-07 09:57:10 +00:00
Matt Westcott
0bd8c90713
Add tests for custom page listings
2024-03-07 09:57:10 +00:00
Matt Westcott
fcf1a67f1e
Leave out the page type filter from flat page listings by default
2024-03-07 09:57:09 +00:00
Matt Westcott
3c59309932
Leave out the page type column from flat page listings by default
2024-03-07 09:57:09 +00:00
Matt Westcott
af8330d087
Add page model name as page title for flat page listings
2024-03-07 09:57:09 +00:00
Matt Westcott
1efe424b93
Don't show the whole tree / parent toggle for flat page listings
2024-03-07 09:57:09 +00:00
Matt Westcott
c1ec2c495a
Allow filterset_class to be overridden from PageListingViewSet
2024-03-07 09:57:09 +00:00
Matt Westcott
395f093dbe
Allow columns to be specified from PageListingViewSet
2024-03-07 09:57:08 +00:00
Matt Westcott
8c27c3a271
Allow specifying page model from PageListingViewSet
2024-03-07 09:57:08 +00:00
Matt Westcott
9cc96f1435
Make LocaleMixin.locale and translations into cached properties
...
This avoids situations where the corresponding `get_*` functions cannot be evaluated during `setup()` because they depend on information received later (e.g. `parent_page` in the case of the page listing view)
2024-03-07 09:57:08 +00:00
Matt Westcott
72d9b13ddc
Add a PageListingViewset for flat listings of pages, and a corresponding template
2024-03-07 09:57:08 +00:00
Matt Westcott
98d23e1bbf
Rename pages/index.html to pages/explorable_index.html
2024-03-07 09:57:08 +00:00
Matt Westcott
a2defceff8
Split parent page / navigation logic from IndexView into ExplorableIndexView
2024-03-07 09:57:07 +00:00
Matt Westcott
7b88b6bc0c
Add class variables for index_url_name and index_results_url_name
2024-03-07 09:57:07 +00:00
Karthik Ayangar
00474a6152
fix: MutationObserver in dirty form check only tests direct descendants
...
Fixes #11142
2024-03-07 08:09:37 +10:00
LB Johnston
caf9142c5d
Ensure unit tests for preview links are more robust
...
- The word "Preview" can exist in multiple locations, especially for new code
- Instead of checking the word preview exists or does not exist, use Soup to check for the link specifically
2024-03-05 10:52:32 +00:00
LB Johnston
269a0e4d90
Ensure that tests checking for th/td scope the checks to specific tables
2024-03-05 10:51:36 +00:00
Sage Abdullah
049e7dad54
Use ad-hoc styles for generic create/edit form heading instead of using w-header's
2024-03-05 09:56:47 +00:00
Sage Abdullah
6c0e638c9a
Restore icon in views that use slim_header.html
...
Previously removed in 8a7dd1f5a1
and
663f9603ca
2024-03-05 09:56:47 +00:00
Sage Abdullah
24deedea78
Add icon support to generic breadcrumbs template tag
2024-03-05 09:56:47 +00:00
Sage Abdullah
2f5565a996
Enable w-swap's reflection in active_filters.html
...
Missed this in 88bdd397cf
2024-03-05 09:56:47 +00:00
Mark Niehues
c580342a95
Fix date formatting in form builder email content
...
Ensure that the date_format util correctly gets passed a format reference, not the resolved format.
Fixes #11696
2024-03-05 18:33:14 +10:00
Sage Abdullah
28f42bd6a6
Update changelog for backport 6.0.* fix ( #11708 )
2024-03-05 18:12:16 +10:00
Sage Abdullah
a106a3e805
Remove extraneous padding in chooser modal listings
...
Fixes #11704
2024-03-05 18:09:16 +10:00
LB Johnston
a7a09f7348
Add Changelog for #11660 (6.0.2)
...
# Conflicts:
# CHANGELOG.txt
# docs/releases/6.1.md
2024-03-05 07:53:31 +10:00