Stefan Hammer
f533726de3
Add missing bind_to call to PreviewOnEdit
...
Added test for page preview with custom edit handlers
fixes #7537
2021-09-28 08:17:59 +10:00
Matt Westcott
3b972775fc
Deprecate passing callables as log messages
2021-09-27 19:54:25 +01:00
Matt Westcott
9bd83fd0a3
Consistently use 'message' and 'comment' properties on BaseLogEntry
...
This avoids bouncing control between BaseLogEntry and LogRegistry, and saves report-side code from having to explicitly import the registry
2021-09-27 19:54:24 +01:00
Matt Westcott
d84a967f17
Add LogFormatter classes to handle formatting log messages
...
This makes registering actions cleaner, and avoids having a bundle of different lookup tables within the log registry
2021-09-27 19:54:24 +01:00
Matt Westcott
de549b4288
Register admin URL finder for site settings
2021-09-27 19:32:54 +01:00
Matt Westcott
5b48fed3d6
Register admin URL finder for users
2021-09-27 19:32:54 +01:00
Matt Westcott
b292e44771
Register admin URL finders for generic model viewsets
2021-09-27 19:32:54 +01:00
Matt Westcott
baeababe61
Register admin URL finder for search promotions
2021-09-27 19:32:53 +01:00
Matt Westcott
1a7e6e46b3
Register admin URL finder for redirects
2021-09-27 19:32:53 +01:00
Matt Westcott
1af986c49f
Register admin URL finders for modeladmin
2021-09-27 19:32:53 +01:00
Matt Westcott
d377ee4c54
Register admin URL finders for snippets
2021-09-27 19:32:53 +01:00
Matt Westcott
eee75590fb
Register admin URL finder for documents
2021-09-27 19:32:52 +01:00
Matt Westcott
52bf22b5dd
Register admin URL finder for images
2021-09-27 19:32:52 +01:00
Matt Westcott
40707ec199
Implement AdminURLFinder
2021-09-27 19:32:52 +01:00
Matt Westcott
0380f01b24
Allow specifying a format for the label of a collapsed StructBlock
...
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
Scott Cranfill
27c3e7921a
Docs: Clarify Jinja2 template configuration
...
Emphasizing and clarifying some parts that are easy to overlook, based on a Slack support conversation.
2021-09-26 20:48:28 +10:00
Victor Miti
f59658c6ca
Adding Notifications docs - update sample code
...
Update sample code in the section
Extending Wagtail -> Adding new Task types -> Adding notifications
The previous example did not work because of changes in
`wagtail.admin.mail`
`EmailNotifier` doesn't exist, so we need to import
`EmailNotificationMixin` and `Notifier` instead, and
update `BaseUserApprovalTaskStateEmailNotifier`
accordingly
2021-09-26 20:46:29 +10:00
Victor Miti
bb802509d2
Model Reference docs - correct field name
...
change `page revision` to `page_revision`
on the `TaskState` model
2021-09-26 20:46:29 +10:00
dependabot[bot]
4c3992bd47
Bump tmpl from 1.0.4 to 1.0.5
...
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases )
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5 )
---
updated-dependencies:
- dependency-name: tmpl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-26 20:42:00 +10:00
Wout De Puysseleir
348aec32e5
Add TIDAL support to oembed
...
Adds TIDAL support for embedding playlists/tracks
2021-09-26 20:17:51 +10:00
Storm Heg
19ad01ddd5
Fix userbar tabbing behaviour
...
Tabbing (navigation using Tab or Shift + Tab keys) will now close
the menu and move to the next focusable element on the page instead
of focusing the next menu item.
The previous behaviour was a deviation from the ARIA menu practices:
https://w3c.github.io/aria-practices/#menu
Further changes / cleanup:
* Consume keyboard events like arrow down to prevent the browser
from interpreting them.
* Refactor repeated setTimeout and `.focus()` calls into single
`focusElement(el)` function. Let's keep it DRY!
Fixes #7290
2021-09-19 14:46:28 +10:00
Matt Westcott
a96035a619
Refactor context setting to reduce duplication and remove unnecessary helper functions
2021-09-19 14:24:34 +10:00
Matt Westcott
107d1a8aeb
On upload form validation error, only re-render the form rather than the whole modal
2021-09-19 14:24:34 +10:00
Matt Westcott
d285fb1e16
Use form.serialize for posting the search form, and remove redundant currentTag variable
2021-09-19 14:24:34 +10:00
Matt Westcott
f3bc528203
replace ajax_pagination_nav with pagination_nav
2021-09-19 14:24:34 +10:00
Matt Westcott
cbad4fd94a
Make the results-only version of the chooser a distinct view
2021-09-19 14:24:34 +10:00
Matt Westcott
f10b6d8540
Split response rendering into its own method
2021-09-19 14:24:34 +10:00
Matt Westcott
33b9fec962
Convert image chooser to a class-based view
2021-09-19 14:24:34 +10:00
amychan331@yahoo.com
218e728f34
Make hamburger menu a button for tab accessibility
...
- Adding type to button element
- Co-authored-by: Dan Braghis <dan@zerolab.org>
- fixes #7327
2021-09-19 14:18:34 +10:00
Andrew Stone
55950a3586
Use date format from current locale for xlsx export
2021-09-19 13:57:29 +10:00
Karl Hobley
b3c35e5f7f
Update Circle CI base image ( #7518 )
...
[...] CircleCI’s latest pre-built container images were designed from the ground up to help your team build more reliably. Our new images were built specifically for continuous integration projects and they are our most deterministic, performant, and efficient images yet.
2021-09-18 17:11:43 +01:00
Matt Westcott
2f518eb147
Use gettext_lazy in modeladmin views where required
...
Class-level strings were using gettext, which meant that they were not respecting user language settings.
2021-09-18 21:25:41 +10:00
Dan Braghis
a87acf5b17
Fix page history with deleted user
2021-09-18 21:17:26 +10:00
Storm Heg
e565ecb618
Explicitly use port 80 for squash.io ( #7523 )
...
Hopefully prevents scenarios where Squash prompts for a port number and a
wrong port number is entered. This leads to the Squash deployment never finishing and eventually timing out.
2021-09-17 18:22:44 +02:00
LB Johnston
d949946434
fix warning message for disabling workflow task
...
- show the states_in_progress number based on the current Task only, not all tasks
- fixes #7492
2021-09-14 19:34:03 +10:00
bwilliams3
fb4a5a6961
Send notifications to active users only
2021-09-11 14:16:48 +10:00
Andrew Stone
7d9e90fdbd
Ensure admin tab events are handled on page load
...
The `shown.bs.tab` event was being bound after showTab() was already
called, so on page load, the tabs weren't being updated correctly.
2021-09-10 07:06:59 +10:00
LB Johnston
eba4ac1563
add release notes for #7489
2021-09-10 07:01:37 +10:00
LB (Ben Johnston)
b4f0f56a05
update package lock - caniuse-lite db ( #7478 )
...
caniuse-lite has been successfully updated to 1.0.30001252
Target browser changes:
- and_chr 85
+ and_chr 92
- chrome 86
- chrome 85
+ chrome 92
+ chrome 91
- edge 86
- edge 85
+ edge 92
+ edge 91
- firefox 81
+ firefox 91
- ios_saf 14
- ios_saf 13.4-13.7
+ ios_saf 14.5-14.7
+ ios_saf 14.0-14.4
- safari 13.1
+ safari 14.1
Co-authored-by: LB Johnston <lb.johnston@virginaustralia.com>
2021-09-09 10:06:02 +02:00
Nick Moreton
e86901ac2b
Set default_auto_field in wagtail.contrib.postgres_search AppConfig
...
Add default_auto_field = 'django.db.models.AutoField'
Co-authored-by: Nick Moreton <nick.moreton@torchbox.com>
2021-09-08 13:42:21 +01:00
Krzysztof Jeziorny
cf064f2b99
Fix width on comment notifications dropdown
...
- Other languages' word can break the dropdown's layout
2021-09-07 20:54:43 +10:00
Sagar Agarwal
592408ac3d
Remove target: _blank from 'view live' and 'view draft'
...
- Change new_window=True to False for 'view live' and 'view draft'
- fixes #6123
2021-09-07 20:43:33 +10:00
Jake Howard
4dc2967d26
Settings docs - remove duplicate word
2021-09-07 20:23:11 +10:00
Desaiakshata
22cdd89b68
Fix Window high contrast mode - tag field
...
-edit background color for form input field-forced color mode
2021-09-07 20:11:00 +10:00
Tibor Leupold
9ae4ab6084
Document how to limit a page parent to root
...
Closes #2768
Issue #2768 was created because a way how to limit a page to be only
available under the root page was unknown.
The implementation has allowed this for a while now, but the issue was
not closed (presumably due to missing documentation).
The documentation of the `parent_page_types` filed now includes this
"special" case.
2021-09-07 09:52:33 +01:00
Karl Hobley
45b7788c6d
Completely hide sidebar in mobile mode ( #7481 )
...
* Add bars.svg icon
* Add Open/Close button for mobile mode
* Completely hide sidebar in mobile mode
* mobile state tweaks
* Rename 'open' to 'visibleOnMobile'
* Don't initialise 'collapsed' state based on screen size (old code)
* Remove main.sidebar--open (not used)
Co-authored-by: Storm Heg <storm@stormbase.digital>
2021-09-02 16:38:03 +01:00
Matt Westcott
dcd920d0e8
add a shared get_context_data method to both chooser views to avoid repetition
...
This has the side-effect of adding searchform to the results-only context, but that doesn't add any extra processing or have any visible effect.
2021-09-01 20:46:41 +10:00
Matt Westcott
17e8fc22eb
Refactor helper methods in chooser.py
...
JS context variables are only needed in one place now
2021-09-01 20:46:41 +10:00
Matt Westcott
2911878d21
On upload form validation error, only re-render the form rather than the whole modal
2021-09-01 20:46:41 +10:00
Matt Westcott
c894d8f619
Add 'collections' to the context in the results view too
...
This prevents the 'collection' column from disappearing once you search / paginate / choose a collection
2021-09-01 20:46:41 +10:00