0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
Commit Graph

16834 Commits

Author SHA1 Message Date
Matt Westcott
6e932089b9 Release note for #11472 2024-01-19 11:53:15 +00:00
Matt Westcott
42b8c32176 Tweak aging pages report test to not rely on filtering by content_type=Page 2024-01-19 11:46:04 +00:00
Matt Westcott
2f22ab3a53 Allow the return value of get_page_models to be mutated 🤦 2024-01-19 11:46:04 +00:00
Matt Westcott
b4e219c02d Exclude 'Page' from the page types filter
Add a new get_page_content_types helper function to wagtail.models that's more robust than the old version used here and on the aging_pages report - querying ContentType on the 'model' field (i.e. the model name) may return models from other apps that just happen to share the same name.
2024-01-19 11:46:03 +00:00
Curtis Maloney
5c412d45c9
Update table_block.md (#11474)
* Correct `mergeCells` option.
2024-01-19 11:37:57 +10:00
LB Johnston
18a1101656 Add changelog for #11250 (w-orderable) 2024-01-19 08:48:48 +10:00
Aman Pandey
735aaa95bf Adopt w-orderable for page order drag & drop/move
- Fixes #10909
2024-01-19 08:48:48 +10:00
Aman Pandey
bf3e317a48 Migrate jQuery re-ordering to Stimulus controller w-orderable
- Install and use Sortable.js and not a jQuery plugin
- Set up new controller OrderableController / w-orderable
2024-01-19 08:48:48 +10:00
LB Johnston
e25ba7b228 Update semver & yaml packages
- Reduce Node package security warnings from 9 to 7
2024-01-19 08:33:57 +10:00
Sage Abdullah
6a22f543fa
Add missing period in translation file
Missed this when rebasing #11444
2024-01-18 16:07:14 +00:00
Sage Abdullah
66bd5fbc93
Release note for #11444 2024-01-18 16:00:22 +00:00
Sage Abdullah
092c9967ac
Include 'There are no ... to display' in translatable block with add_url 2024-01-18 15:57:46 +00:00
Sage Abdullah
407c0140e1
Manually update translation files to reflect added period in no_results_message 2024-01-18 15:57:46 +00:00
Sage Abdullah
6a99689443
Add test to ensure no add snippet links are shown for users with no add permission 2024-01-18 15:57:46 +00:00
Sage Abdullah
fcbd2e1a42
Reinstate 'Why not add one?' link in generic index_results.html 2024-01-18 15:57:45 +00:00
Sage Abdullah
aa44168fa9
Create add_url as cached property in generic IndexView and CreateView 2024-01-18 15:57:45 +00:00
Sage Abdullah
e4d0a3879d
Check for add permission in IndexView.get_add_url()
Not adding this to the CreateView, as the view won't be accessible in
the first place if permission_policy is set, because the view already
has permission_required = "add"
2024-01-18 15:57:45 +00:00
Sage Abdullah
2e13f298ea
Change snippets usage and history templates to extend from generic/listing.html template
Per 60f371fae9 and e3bf15d2ca

Keep the files in case people extend from this template instead of the
generic one.

Unfortunately we can't make the results template extend from
listing_results.html template instead, as that template does not support
showing the active filters yet.

Also instead of overriding no_results_message block completely, provide
model_opts using the BaseLogEntry model, so that the message shows up as
"No log entries match your query" when filtering and "There are no log
entries to display" when not.
2024-01-18 15:57:45 +00:00
Sage Abdullah
20db4bd35d
Use generic error_message and success_message in snippets views 2024-01-18 15:57:45 +00:00
Sage Abdullah
d8f92378c6
Add default success_message and error_message to generic Create/Edit views 2024-01-18 15:57:45 +00:00
Sage Abdullah
8219314d92
Simplify snippets DeleteView to make better use of the generic DeleteView 2024-01-18 15:57:44 +00:00
Sage Abdullah
663f9603ca
Simplify snippets EditView to make better use of the generic EditView 2024-01-18 15:57:44 +00:00
Sage Abdullah
dae20c2038
Add status side panel to generic CreateView and simplify snippets CreateView 2024-01-18 15:57:44 +00:00
Sage Abdullah
47d6a8e01f
Move snippets views' url name attributes to the optional features mixin and remove unnecessary attribute overrides 2024-01-18 15:57:44 +00:00
Sage Abdullah
b6679d87e0
Reuse generic/index_results.html template for snippets 2024-01-18 15:57:44 +00:00
Sage Abdullah
f75057759d
Use BaseListingView for snippets ModelIndexView
It doesn't work with a model, so it should use the simpler class.
2024-01-18 15:57:43 +00:00
Sage Abdullah
06a0f8ec04
Fetch new translations from Transifex
Also re-apply visuallyhidden -> w-sr-only change from a previous commit
2024-01-18 15:56:47 +00:00
Thibaud Colas
d538413030 Release notes for #8127 2024-01-18 11:56:18 +00:00
Sage Abdullah
bbe754b063 Apply icon--directional to directional built-in icons 2024-01-18 11:56:18 +00:00
Sage Abdullah
e04d540bd1 Add icon--directional class to mirror icons for RTL languages 2024-01-18 11:56:18 +00:00
Thibaud Colas
9c4d5e4feb Switch styleguide icon preview to use the real icon tag 2024-01-18 11:56:18 +00:00
Thibaud Colas
2abaa7d95a Remove width and height attributes from sliders icon 2024-01-18 11:56:18 +00:00
Sage Abdullah
2531f688f3
Release note for #11467 2024-01-18 11:47:16 +00:00
Sage Abdullah
8c4637cb43
Prevent crash when filtering with an invalid value 2024-01-18 11:44:47 +00:00
Matt Westcott
58d314c5e6
Add 'has child pages' filter 2024-01-18 11:44:33 +00:00
the-r3aper7
78f6990d35 Adopt Stimulus UnsavedController for page edit/create forms 2024-01-18 08:07:16 +10:00
LB Johnston
430a37653c Remove non-functional and inaccessible auto-focus on first field in page create forms 2024-01-18 08:07:16 +10:00
the-r3aper7
422d6a8cbe Migrate enableDirtyFormCheck to Stimulus UnsavedController
- Include backwards compatible global function replacement
2024-01-18 08:07:16 +10:00
Sage Abdullah
dece4fdaf4
Release note for #11456 2024-01-17 19:22:23 +00:00
Thibaud Colas
d79bac199f Adjust footer action styles based on new designs 2024-01-17 16:42:00 +00:00
Thibaud Colas
6668f23beb Switch workflow and workflow task editing to use a button when enable/disable are not allowed 2024-01-17 16:42:00 +00:00
Thibaud Colas
7c057661ff Remove legacy dropdown component 2024-01-17 16:42:00 +00:00
Thibaud Colas
885cf7b76c Clean up footer actions styles 2024-01-17 16:42:00 +00:00
Thibaud Colas
e801e6cec4 Convert pages footer actions to dropdown_button 2024-01-17 16:39:31 +00:00
Thibaud Colas
b68735a3be Convert workflow and workflow task create/edit views to dropdown_button 2024-01-17 16:39:30 +00:00
Thibaud Colas
ee2d274da4 Apply new footer styles to contrib.settings 2024-01-17 16:39:30 +00:00
Thibaud Colas
568256fb67 Convert snippets action menus to dropdown_button 2024-01-17 16:39:30 +00:00
Thibaud Colas
67c97b2168 Add warning styles for dropdown-button 2024-01-17 16:39:30 +00:00
Thibaud Colas
bc461d4de3 Convert all header dropdowns to new dropdown_button component 2024-01-17 16:39:30 +00:00
Thibaud Colas
91aa28b11a Add new dropdown-button component 2024-01-17 16:39:30 +00:00