Thibaud Colas
bc6ef43522
Replace visuallyhidden utility class with w-sr-only
2024-01-09 15:42:08 +00:00
Thibaud Colas
8e4285a04e
Remove unused visuallyvisible styles
2024-01-09 15:42:08 +00:00
Thibaud Colas
df9f759cd4
Remove divider-after class use that does nothing
2024-01-09 15:42:08 +00:00
Thibaud Colas
b8e7a84a72
Remove invalid CSS styles / Sass selector concatenation
2024-01-09 15:42:08 +00:00
Thibaud Colas
7e213eadde
Document correct class prefix in CSS comments
2024-01-09 15:42:08 +00:00
Thibaud Colas
bdb8ebdd82
Remove unused inline, inline-block, block classes
2024-01-09 15:42:08 +00:00
Thibaud Colas
43b858913f
Remove unneeded classes from test suite
2024-01-09 15:42:08 +00:00
Thibaud Colas
294040dc82
Drop c- prefix for transition group
2024-01-09 15:42:08 +00:00
Thibaud Colas
02b4444369
Drop c- prefix for loading spinner component
2024-01-09 15:42:08 +00:00
Thibaud Colas
0865b9d716
Remove more unused class name prefixes
2024-01-09 15:42:08 +00:00
Thibaud Colas
77af0541be
Remove usage of is- CSS class prefix
2024-01-09 15:42:08 +00:00
Thibaud Colas
9e65559d0e
Replace u-hidden with Tailwind equivalent with and without !important
2024-01-09 15:42:08 +00:00
Thibaud Colas
27cc553dd8
Remove unused clearfix utility
2024-01-09 15:42:08 +00:00
Thibaud Colas
bfd23e4536
Remove unused divider-before utility
2024-01-09 15:42:08 +00:00
Thibaud Colas
d799f491c4
Replace reordering utility with generic tailwind
2024-01-09 15:42:08 +00:00
Thibaud Colas
5158dd688e
Replace overflow utility with Tailwind
2024-01-09 15:42:08 +00:00
Thibaud Colas
38c0557434
Remove unused CSS layers
2024-01-09 15:42:08 +00:00
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