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

16657 Commits

Author SHA1 Message Date
Thibaud Colas
484428b2d9 Combine o-pill and c-status styles, as they are always used together 2024-01-09 15:42:08 +00:00
Thibaud Colas
22fd74a451 Remove now-unused o-icon styles 2024-01-09 15:42:08 +00:00
Thibaud Colas
7077eb02c9 Move avatar styles from objects to components 2024-01-09 15:42:08 +00:00
sheepman4267
b7605a4c15 Fix typo in customisation.md
I'm pretty sure that "modal" should be "model" in this context.
2024-01-09 19:40:24 +10:00
Badr Fourane
e25c1bb1a0
Add right-to-left (RTL) support for the caret of select inputs (#11313)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-01-08 16:07:52 +00:00
Matt Westcott
432532457d Release note for #11416 2024-01-08 12:51:35 +00:00
Matt Westcott
39a611e4a4 Remove guard against filtering locale when queryset doesn't match model
This is no longer necessary now that ReportView and HistoryView are not inheriting from models.IndexView - using IndexView for anything other than a listing of available models for editing is now considered invalid, and those things should inherit from BaseListingView instead.
2024-01-08 12:49:46 +00:00
Matt Westcott
e3bf15d2ca Make HistoryView inherit from BaseListingView instead of models.IndexView
along the way, make filtering work again by setting up a history_results view - the search/filter form in slim_header is hard-coded to use index_results_url as the action URL, which caused it to replace the results with a fragment from the index view instead.
2024-01-08 12:49:46 +00:00
Matt Westcott
bd0a3d51b7 Make ReportView inherit from BaseListingView rather than models.IndexView 2024-01-08 12:49:45 +00:00
Matt Westcott
bc57414986 Add filter form to generic/listing.html (when not included in slim_header) 2024-01-08 12:49:45 +00:00
Matt Westcott
aace5f7719 Move locale selector out of listing-results
This ensures it won't be deleted if listing-results is replaced in an AJAX refresh, e.g. when searching.
2024-01-08 12:49:45 +00:00
Matt Westcott
130c7ff3c5 Move filtering logic from views.generic.models.IndexView to views.generic.base.BaseListingView
BaseListingView now supports passing a django-filters filterset class as `self.filterset_class`, provides properties `filters` and `is_filtering`, and provides a `filter_queryset` method. If a filterset class is specified, this will be used to filter the queryset within `get_queryset`; `filters` and `is_filtering` will be added to the template context; and the `media` context variable will include the filter form's media.
2024-01-08 12:49:45 +00:00
Matt Westcott
7af866f1c7 Refactor filter_queryset and get_filtered_queryset to just return queryset 2024-01-08 12:49:45 +00:00
Matt Westcott
11937a602c Bump dependencies to django-taggit>=4.0, django-modelcluster>=6.2.1 2024-01-08 13:48:59 +01:00
Salvo Polizzi
6f9aadc86d Add missing import to tutorial BlogPage example (#11426) 2024-01-08 12:47:00 +00:00
Thibaud Colas
eade6be969 Add 5.2.3 to releases index 2024-01-05 08:19:53 +00:00
Thibaud Colas
7f8b283576 Add release notes for #11406 2024-01-05 08:05:05 +00:00
Matt Westcott
c5d92ebe6e Fix FormSubmissionsPanel on Django 5.0 when creating a new form page
Fixes #11405

Django 5.0 rejects `FormSubmission.objects.filter(page=page)` when `page` is an unsaved in-memory instance. Since these can clearly not have any submissions, return an empty queryset in this case.

Also add end-to-end tests for the create and edit views with FormSubmissionsPanel in place.
2024-01-05 08:05:05 +00:00
Matt Westcott
5fa1bd15f3 Release notes for #11395 2024-01-02 19:05:21 +00:00
Matt Westcott
5a524cb90f Add tests for maxlength on RichTextBlock 2024-01-02 19:05:21 +00:00
elhussein almasri
96b5f45fad display-character-count-to-RichTextBlock 2024-01-02 19:05:21 +00:00
Matt Westcott
361c89ba9b
Upgrade sphinxcontrib-spelling to 7.x (#11407)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-01-02 13:48:04 +00:00
LB Johnston
6bec1eed9c Use admin SlugInput as the default widget for models.SlugField (#11341)
- Register the admin SlugInput as the default widget for model SlugField usage
- Add a docstring to SlugInput to make it a bit clearer what it's doing
- Add SlugInput to the admin widgets module exports file
- Copy form is still needed as it's not a model field but a form field
- Closes #11185
2024-01-02 13:43:43 +00:00
Matt Westcott
b1920b0bce Update Nikhil S Kalburgi's name as per https://github.com/wagtail/wagtail/pull/11408#issuecomment-1873961960 2024-01-02 12:49:20 +00:00
nikhilkalburgi
4f24171b3b docs: update contributing/developing.md guidelines (#11408)
Fixes #11399

Signed-off-by: nikhilkalburgi <nikhilkalburgi19@gmail.com>
2024-01-02 10:35:33 +00:00
Thibaud Colas
2cf9730c23 Release notes for #11332 2024-01-02 09:00:58 +00:00
Thibaud Colas
cd61adbd31 Disable header buttons for snippet models index 2024-01-02 09:00:58 +00:00
Thibaud Colas
fbed2788ce Add missing sliders icon to icon table 2024-01-02 09:00:58 +00:00
Sage Abdullah
ae6a4fe516 Add aria-label to icon-only header buttons
Even though they have tooltips on hover/focus, axe will complain if they don't have aria-label
2024-01-02 09:00:58 +00:00
Sage Abdullah
7e65b453b4 Refactor snippets index_results.html template to extend generic index_results.html template
Missed this in 4082acca9b
2024-01-02 09:00:58 +00:00
Sage Abdullah
df8a5ea329 Fix is_searching value when an empty query string is used
Before c8edfd13b2, empty q is considered invalid, so is_searching is False. After that commit, empty q is valid so set is_searching based on the truthiness of the search_query instead
2024-01-02 09:00:58 +00:00
Sage Abdullah
d792346752 Move filters to be inside the search form and use AJAX to submit the form
Also make the search form optional. The <form> element may still be
rendered as if there is either the search form or the filters, or both.
2024-01-02 09:00:58 +00:00
Sage Abdullah
a0a0b1343c Don't add padding to first column on report pages
Report pages have styles for .report that adds margins similar to nice-padding
2024-01-02 09:00:58 +00:00
Sage Abdullah
81ea6d6266 Remove nice-padding from documents, users, and generic listing views tables
The added CSS handles the case when nice padding is removed (to make the listing
go full-width) and no bulk actions are available (e.g. a ModelViewSet index view
or some other view that extends generic listing view).

This allows us to not rely on the full-width class (which should
eventually be removed) while correctly apply the spacing regardless
whether nice-padding is used or not, and whether bulk actions are
available or not.

If nice-padding is used, then the listing view will look as they
previously do.
2024-01-02 09:00:58 +00:00
Sage Abdullah
1ad22f530d Enforce bulk action checkbox column via CSS
10px was never the right width.

Using CSS instead of the column's width attribute allows us to use media queries to change the width responsively
2024-01-02 09:00:58 +00:00
Sage Abdullah
174146edef Reuse search_form block from slim_header in page_listing_header.html
And rename get_results_url() in pages' BaseIndexView to
get_index_results_url to match the method in generic IndexView
2024-01-02 09:00:58 +00:00
Sage Abdullah
28d21bf066 Make styles for header buttons consistent 2024-01-02 09:00:58 +00:00
Sage Abdullah
73f7a1abc4 Use button components pattern for slim header buttons 2024-01-02 09:00:58 +00:00
Sage Abdullah
2274a44572 Add default template for Button component 2024-01-02 09:00:58 +00:00
Sage Abdullah
4554dbdf4f Rename main_actions and more_actions to header_buttons and header_more_buttons
To follow the pattern for get_list_buttons and get_list_more_buttons

This will be made clearer in the next commit
2024-01-02 09:00:58 +00:00
Sage Abdullah
c900ba6c8e Reduce slim header search bar height to match filter button 2024-01-02 09:00:58 +00:00
Sage Abdullah
8a7dd1f5a1 Don't use legacy header when breadcrumbs are used 2024-01-02 09:00:58 +00:00
Sage Abdullah
5ede8a132d Show edit as a main action in generic history and usage views 2024-01-02 09:00:58 +00:00
Sage Abdullah
2e23981021 Change 'Usage of' page title to 'Usage'
page_title and page_subtitle are not meant to be read as one phrase
2024-01-02 09:00:58 +00:00
Sage Abdullah
e7e9ae5a1e Use border instead of underline in breadcrumbs to prevent gap with sublabel 2024-01-02 09:00:58 +00:00
Sage Abdullah
62f4ebe0d1 Add sublabel to history, usage, and inspect breadcrumb items 2024-01-02 09:00:58 +00:00
Sage Abdullah
3cbf3b4b6a Add sublabel support to breadcrumbs 2024-01-02 09:00:58 +00:00
Sage Abdullah
4407c5b5b0 Improve styles of slim header's search and filters for better vertical alignment 2024-01-02 09:00:58 +00:00
Sage Abdullah
71f826575a Add filters to slim_header.html 2024-01-02 09:00:58 +00:00
Sage Abdullah
b8ad40170a Add header actions in generic index view 2024-01-02 09:00:58 +00:00