0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

16745 Commits

Author SHA1 Message Date
Sage Abdullah
3bb9f5de46 Rename images/results.html to images/index_results.html for consistency 2023-12-15 21:57:47 +00:00
Sage Abdullah
414caf910c Make image index results template extend from generic index results template 2023-12-15 21:57:47 +00:00
Sage Abdullah
652a40ce49 Create separate before_results and pagination block in generic listing_results.html 2023-12-15 21:57:47 +00:00
Sage Abdullah
e919965047 Apply capfirst to search form placeholder in generic index view
In case the translation starts with model_name
2023-12-15 21:57:47 +00:00
Sage Abdullah
825556339a Convert images listing view to use generic IndexView 2023-12-15 21:57:47 +00:00
Sage Abdullah
7c39cacc5d Convert images listing view to use generic BaseListingView 2023-12-15 21:57:47 +00:00
Sage Abdullah
7e7513542d Use PermissionCheckedMixin in images listing view 2023-12-15 21:57:47 +00:00
Matt Westcott
b4e7bae07b Mention inheriting from ClusterableModel in the text too 2023-12-15 15:44:28 +00:00
Matt Westcott
fda09613a9 Add missing ClusterableModel import to snippet InlinePanel example 2023-12-15 15:44:28 +00:00
Matt Westcott
003993f4da Remove reference to Google group from CONTRIBUTING.md 2023-12-15 11:29:45 +00:00
Matt Westcott
4ee7441f20 Remove mention of Google group from security docs 2023-12-15 11:29:45 +00:00
Matt Westcott
fd05848a3b Remove mention of Wagtail Google group
This list has now been retired.
2023-12-15 11:29:45 +00:00
LB Johnston
a57c63dbd3 Add changelog for #11317 2023-12-15 14:09:41 +10:00
the-r3aper7
bb33e7c508 Add ClipboardController to allow copying to the clipboard (Stimulus) 2023-12-15 13:53:26 +10:00
the-r3aper7
d585fa48dc Adopt clipboard & clone controller to add copy in the URL Generator 2023-12-15 13:53:26 +10:00
LB Johnston
3f38bf7ae8 Add ability for CloneController to auto-clear its own contents 2023-12-15 13:53:26 +10:00
Sage Abdullah
a80c7ca60e
Release note for #11304 2023-12-14 09:13:42 +00:00
Sage Abdullah
2bd273d401
Restore column widths in documents listing view 2023-12-14 09:12:36 +00:00
Sage Abdullah
342d6ef23a
Reduce queries in documents IndexView by using select_related on collection 2023-12-13 10:31:09 +00:00
Sage Abdullah
601a97f8ff
Add missing parent id for bulk actions footer include
Has been missing since it was introduced
2023-12-13 10:31:09 +00:00
Sage Abdullah
24ae9a22e8
Consolidate documents IndexView and ListingResultsView
Use results_only to differentiate. Also, rename listing_results url name to index_results for consistency
2023-12-13 10:31:09 +00:00
Sage Abdullah
7dd00a84f4
Refactor documents index view to make better use of generic index view and template 2023-12-13 10:31:08 +00:00
Sage Abdullah
fa0d55fe34
Update outdated default search_target value in header.html comment
Renamed in b0dc6c1ea5
2023-12-13 10:31:08 +00:00
Sage Abdullah
4836324af5
Rename documents/results.html to documents/index_results.html for consistency 2023-12-13 10:31:08 +00:00
Sage Abdullah
3e140244f6
Make documents index results template extend from generic index results template 2023-12-13 10:31:08 +00:00
Sage Abdullah
0734633afd
Add the ability to show other searches in generic index view 2023-12-13 10:31:08 +00:00
Sage Abdullah
b04d205dd1
Move all variables to BaseListingView
There is no reason to not check for the collections in the search results view as well.
In fact, the inconsistency before this change caused an issue where the
collections column will be shown on first load, but when a search is
performed (or cleared) the column will never be shown again.

Meanwhile, the current_collection is already set in BaseListingView anyway,
so it makes sense to put it in the context from there.
2023-12-13 10:31:08 +00:00
Sage Abdullah
ba18cd3bc5
Remove unused popular tags query in documents listing view
This has been around since the start (see
cba8f851d7/wagtail/wagtaildocs/views/documents.py)

However, its use in the template was removed in
c73d5c6ecc and was never restored.
Even when it was still in place, it wasn't implemented as a proper
filter. Instead, it was treated as a search query string.

For images, this was restored in
233e7f5189 with actual database-level
filtering.
2023-12-13 10:31:07 +00:00
Sage Abdullah
613bd0b144
Reuse variables from generic IndexView 2023-12-13 10:31:07 +00:00
Sage Abdullah
d36e16c18c
Refactor documents listing view to extend generic IndexView instead of BaseListingView 2023-12-13 10:31:07 +00:00
Sage Abdullah
aa530cd09a
Use Django's urlencode in set_query_params util function
For more flexibility
2023-12-13 10:31:07 +00:00
Sage Abdullah
a2b5baee83
Replace IndexView.get_columns() with a cached_property for columns
This defers the instantiation of the columns at the point when they're needed instead of very early on in the view, when other variables needed may not be available yet

This also reduces the divergence between the BaseListingView and the IndexView
2023-12-13 10:31:07 +00:00
Sage Abdullah
d0dac2c629
Convert documents listing view to generic BaseListingView with tables UI framework 2023-12-13 10:31:07 +00:00
Sage Abdullah
1cbfd1cc89
Restore teal color on table header sort link if it's active
Regression in 4426196046
2023-12-13 10:31:07 +00:00
Sage Abdullah
d23206f54b
Move DownloadColumn to generic wagtail.admin.ui.tables 2023-12-13 10:31:06 +00:00
Sage Abdullah
50a81a6187
Update pagination tests on documents index to match Django standard 2023-12-13 10:31:06 +00:00
Sage Abdullah
170d6c74a9
Convert documents listing view to a ListView 2023-12-13 10:31:06 +00:00
Sage Abdullah
49a1b38587
Use PermissionCheckedMixin in documents listing view 2023-12-13 10:31:06 +00:00
Thibaud Colas
346f15e922 Add release notes for #11258 2023-12-13 10:29:03 +00:00
nandini584
0024751a53 ActionController - Be more explicit about element checks for select method
- Move method to alpha order (after `reset`) and check for input/text area explicitly
- Fixes #11307
2023-12-13 11:20:29 +10:00
nandini584
96349aad3e ActionController - Add noop method
- Useful for leveraging data-action approaches without needing a specific method functionality
2023-12-13 11:20:29 +10:00
Andy Chosak
c109c661c1 Docs: Clarify appropriate use of MultipleChooserPanel
This documentation change clarifies that MultipleChooserPanel can only
be used when the inline model has a ForeignKey to a model that
implements Wagtail's chooser interface. Currently the docs mention
"a chooser for a ForeignKey relation" but it's not obvious how that
restricts which models can be pointed to or how to implement this for a
non-(image, document, snippet, page) model.

Relates to #10646.
2023-12-13 07:32:00 +10:00
LB Johnston
5fa29a6c93 Add changelog/release notes - #11299 2023-12-13 07:17:43 +10:00
Sage Abdullah
260df904e9 Remove sr-only dimensions info in image listing
It is only shown for screen readers, which is inconsistent with the actual visible text.

It also makes the captions unnecessarily verbose, as the dimensions info is not very useful in the image listings
2023-12-13 07:17:06 +10:00
Sage Abdullah
3cd0094b36 Allow TitleColumn to have an id for the title text and use it in snippets
This allows the snippets' checkbox column for bulk actions to refer to
the title column correctly.
2023-12-13 07:17:06 +10:00
Sage Abdullah
539c27bc00 Consistently quote pk for title column's id and referring to it in bulk actions column
To safely handle non-integer primary keys. This is mostly useful for
snippets, but do it everywhere for consistency and in case of custom
document and image models.
2023-12-13 07:17:06 +10:00
Sage Abdullah
abe80bd279 Simplify bulk actions checkbox's aria labels to be consistent
If the aria-label is too specific, e.g. 'Select page', 'Select document'
(and in the case of images it's 'Select image <image title> <image
dimensions>), it is hard for voice control users to click on the
checkbox because they have to specify the full label.

Instead, enforce a simple 'Select' aria-label and use aria-describedby
to describe the checkbox by referring to the title in the title column.
2023-12-13 07:17:06 +10:00
Sage Abdullah
e4ec5f24eb Remove unnecessary accessor in snippets' BulkActionsCheckboxColumn
Not necessary after fbfe8fe75f and 32ff36446b
2023-12-13 07:17:06 +10:00
Sage Abdullah
2cb490a767 Simplify BulkActionsCheckboxColumn to reuse BaseColumn's instance variable
Instead of using obj for the sake of not changing the template when it was first introduced (before the column class was made)
2023-12-13 07:17:06 +10:00
LB Johnston
e101c17aea Add Changelog for #11335 2023-12-13 06:40:43 +10:00