0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

3840 Commits

Author SHA1 Message Date
Krzysztof Jeziorny
8fa614eaf7 Render horizontal listing as a flex container
- Don't set fixed height on listed images
- Improve display of image listing for long image titles
2022-01-15 22:21:46 +10:00
Jason Attwood
bc3ce80f8c Fix gulp to correctly watch files 2022-01-15 22:11:48 +10:00
Matt Westcott
064f1926cd Set default submit button label on generic create views to 'Create' instead of 'Save'
As per #7763
2022-01-15 22:02:53 +10:00
LB Johnston
7def921880 update changelog for #7751 2022-01-15 21:46:21 +10:00
Thibaud Colas
940fd1d041 Document full integration test steps 2022-01-15 21:44:36 +10:00
Thibaud Colas
1c2ef89957 Support changing which origin the integration tests are run on 2022-01-15 21:44:36 +10:00
Thibaud Colas
44fd1852ee Trial browser tests in CircleCI 2022-01-15 21:44:36 +10:00
Scott Cranfill
bc7566104c
TypedTableBlock: Add borders to help visualize rows and columns (#7670)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-15 10:57:12 +00:00
Jake Howard
0a9b23979b Update links to wagtail.io website to point to wagtail.org
This covers only links to the website, not other sites
2022-01-15 20:23:44 +10:00
Jake Howard
e9183a95c8 Update docs links to reference new domain 2022-01-15 20:04:24 +10:00
LB (Ben Johnston)
1deed5f5af
Rename admin/expanding-formset.js (using kebab-case file) (#7833) 2022-01-15 01:00:02 +00:00
LB (Ben Johnston)
a7aabf76ac
modal-workflow - block additional opens & add trigger focus management (#7568). Fix #4006
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-15 00:47:23 +00:00
Matt Westcott
317f100a78 Release note for #7805 2022-01-14 17:21:27 +00:00
Matt Westcott
a7f53a0dca Upgrade taggit to 2.x 2022-01-14 14:23:56 +00:00
Matt Westcott
d6d43338ef Drop support for Django <3.2 2022-01-14 14:23:56 +00:00
Matt Westcott
daa46b216c Fix BaseDeleteView subclassing for Django 4.0
As of Django 4.0 BaseDeleteView has switched to a new implementation based on FormMixin where custom deletion logic now lives in form_valid:
https://docs.djangoproject.com/en/4.0/releases/4.0/#deleteview-changes

Here we copy the Django 4.0 implementation for use on older Django versions to keep everything consistent, and provide a delete_action method for views that override wagtail.views.generic.models.DeleteView further (e.g. the workflow deactivation views).
2022-01-14 14:23:56 +00:00
Matt Westcott
d450621a42 Add changelog entry for #7847 to 2.16 docs page 2022-01-14 11:38:22 +00:00
Matt Westcott
88150bf8d3 Increase Pillow dependency range to include 9.x (#7831)
Fixes #7817
2022-01-14 11:25:54 +00:00
Tidiane Dia
f3f35f6322 Add workflow submitted by data in home panel 2022-01-14 11:08:25 +00:00
Matt Westcott
4550bba562 Release note for non-fts sqlite support 2022-01-14 10:18:15 +00:00
Thibaud Colas
5a9761a70f Update browser support targets following UI team discussion
Small but important changes:

- We should always be testing in Windows, even if MS Edge is now available on macOS as well.
- We should make a better effort to support older Safari releases, as Safari is tied to OS updates, and device management isn’t always keeping up with releases
2022-01-14 11:31:58 +10:00
Matt Westcott
e3c2237ccc Release note for #7837 2022-01-13 10:56:03 +00:00
LB Johnston
4de5f3652c fix all basic linting rules (mostly formatting) 2022-01-13 07:50:24 +00:00
Martin Coote
f8d76b4bd1
Improve implementations of visually-hidden text in explorer and main menu toggle (#5793). Fix #5269
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-13 07:42:28 +00:00
Wicked
88c7d46282
Improve the visibility of field error messages, in Windows high-contrast mode and out (#7663) Fix #7241
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-01-13 06:46:35 +00:00
Tidiane Dia
bafb4352ce Redirect to correct collection listing view after editing member
Add tests

Use f-string for edit_url

Redirect to collection listing after deleting an item from it

Use current url to avoid losing information(e.g tags)

Update tests
2022-01-12 10:27:37 +00:00
Matt Westcott
d938052e8c Release note for #7726 in 2.15.2 2022-01-10 19:41:41 +00:00
Michael Karamuth
10f54bc11a feature: Login remember me functionality
- Improve wagtail/admin/views/account.py
- Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2022-01-08 22:53:08 +10:00
LB Johnston
472d522288 Add changelog / release notes for #7746 2022-01-08 21:57:05 +10:00
thoang43
3651e5f21b Add draftail padding to fix cut off ol items
- fixes #7019
2022-01-08 21:44:11 +10:00
Vu Pham
0055be331b Modify responsive size for buttons on mobile
- fixes #6618
2022-01-08 21:30:14 +10:00
LB Johnston
d964675ee8 add check for correct search_fields on pages
- fixes #4940
2022-01-08 21:25:35 +10:00
LB Johnston
4b91d6b7ee Add changelog for #7778 (2.15.2)
- relates to fix for #7768
2022-01-08 21:18:25 +10:00
LB (Ben Johnston)
707ea54f4f Update blocks.rst
Docs does not currently include the `rows` kwarg that is available on `TextBlock`.

See Question on slack https://wagtailcms.slack.com/archives/C81FGJR2S/p1635825388225100
2022-01-08 20:54:20 +10:00
Matt Westcott
dd0b398d9c Release note for #7783 2022-01-07 16:37:21 +00:00
Tidiane Dia
802ce2fc50 Add line in editor guide about secondary actions menu and update screenshot 2022-01-07 16:23:17 +00:00
Tidiane Dia
11e1ff03df Add register_page_header_buttons hook documentation 2022-01-07 16:23:17 +00:00
Tidiane Dia
0a3dd7e1f7 Improve workflow modal formatting (#7786) 2022-01-07 16:20:22 +00:00
Matt Westcott
3a9a2815c0 Release note for #7741 2022-01-07 16:11:45 +00:00
Matt Westcott
07f1c777e7 Document the bound_blocks property of ListValue 2022-01-07 16:11:45 +00:00
Matt Westcott
4a848bfb4e Implement a ListValue type for ListBlocks 2022-01-07 16:11:45 +00:00
Matt Westcott
93229cfc14 Release note / fixed test for #7801 2022-01-05 15:35:19 +00:00
Matt Westcott
946a9a8071 Release note for #7821 2022-01-05 14:04:14 +00:00
Dan Braghis
731cc540b0 Refresh page on create before passing to hooks 2022-01-05 09:30:06 +00:00
Dan Braghis
614ec3fc2a Remove woff fonts 2021-12-20 18:17:04 +00:00
Dan Braghis
670ad8cfa2 Release notes for #7721 2021-12-20 18:10:08 +00:00
Tibor Leupold
783f0d4a16 Update the mentioning of default_app_config in the docs 2021-12-20 18:09:32 +00:00
Karl Hobley
247030df14
Revert "Implement page_url_path_changed signal (RFC 34) (1 of 3)" (#7797)
* Revert "Release notes for #7761"

This reverts commit b062c22331.

* Revert "Fix incorrect logging of move VS reorder"

This reverts commit 0086c7ba7a.

* Revert "Update docs"

This reverts commit e602990e39.

* Revert "Add tests"

This reverts commit b10e545b14.

* Revert "Prevent the 'old_record' query being unnecessary triggered by page.move()"

This reverts commit 4fed675d7a.

* Revert "Implement the page_url_path_changed signal"

This reverts commit 2f86eda372.
2021-12-18 16:54:44 +00:00
Karl Hobley
6f2c576da0
Revert "Add ever_live() and never_live() filters to PageQuerySet (RFC 34) (2 of 3)" (#7796)
* Revert "Release notes for #7776"

This reverts commit a7e58e9c67.

* Revert "Tests for #7776"

This reverts commit 1f5734ce3f.

* Revert "Add PageQuerySet.ever_live() and PageQueryset.never_live() filters"

This reverts commit d8c2e33505.
2021-12-18 16:54:26 +00:00
Karl Hobley
7999cbf2c4
Revert "Add signal handler for automatic redirect creation (RFC 34) (3 of 3)" (#7795)
* Revert "Release notes for #7774"

This reverts commit e9eadb65c7.

* Revert "Docs for #7774"

This reverts commit d00a4c8a65.

* Revert "Automatically create redirects for when pages are moved or have their slug updated"

This reverts commit 31a7b11932.
2021-12-18 16:54:04 +00:00
Andy Babic
e9eadb65c7 Release notes for #7774 2021-12-16 16:06:11 +00:00
Andy Babic
d00a4c8a65 Docs for #7774 2021-12-16 16:06:11 +00:00
Andy Babic
a7e58e9c67 Release notes for #7776 2021-12-16 14:10:16 +00:00
Andy Babic
d8c2e33505 Add PageQuerySet.ever_live() and PageQueryset.never_live() filters 2021-12-16 14:10:16 +00:00
Andy Babic
b062c22331 Release notes for #7761 2021-12-16 13:35:11 +00:00
Andy Babic
e602990e39 Update docs 2021-12-16 13:35:11 +00:00
Matt Westcott
361c3d5d54 Remove release note for #7704 in 2.16, as it's in 2.15.2 2021-12-09 16:40:06 +00:00
Matt Westcott
cf0ee13b49 Remove Python 3.6 support 2021-12-09 16:36:29 +00:00
Matt Westcott
c37786679a Release note for #7762 in 2.15.2 2021-12-08 17:08:21 +00:00
Matt Westcott
80ecec334a Release note for #7704 in 2.15.2 2021-12-08 16:29:28 +00:00
LB (Ben Johnston)
c9aa26e887
Documentation - remove all jQuery usage (#7658) 2021-12-07 15:37:33 +00:00
Tomasz Knapik
2c169a8d38 Add Azure CDN and Front Door backends 2021-12-03 08:05:12 +10:00
Karl Hobley
4803133fee Changelogs/release notes/contributors for #7385 #7669 #7704 2021-12-02 13:47:52 +00:00
Dmitrii Faiazov
b314f28f37
Add alias_of field into pages API 2021-12-02 13:36:55 +00:00
Matt Westcott
980d2c435e collapse option on StreamField, StreamBlock, ListBlock
Fixes #7705
2021-12-01 07:36:54 +10:00
JS
40e6e1c803 Docs - Update API configuration example
Code correction - date format was incorrect.
2021-11-30 07:58:13 +10:00
Kevin Gutiérrez
131cd076b7 Change spin animation name 2021-11-18 07:05:53 +10:00
sakshi uppoor
e6f7c62360 Fix dashboard icons colour & opacity (Windows High Contrast)
- fixes #7325
2021-11-18 06:38:25 +10:00
Tom Usher
344dfcf02b Add more SketchFab oEmbed patterns
The /models pattern is what is documented in the Sketchfab oEmbed docs.
The /3d-models pattern is what you'd get by copying and pasting the URL from browsing the site.
https://sketchfab.com/developers/oembed
2021-11-18 06:32:16 +10:00
Matt Westcott
660b00b7a6 Release note for #7696 2021-11-17 16:22:20 +00:00
Thibaud Colas
cb70218166
Language tweaks 2021-11-16 09:59:36 +00:00
Matt Westcott
12243e7e77 Ensure csrf token is available on dashboard panels
Fixes #7688
2021-11-11 08:29:30 +10:00
Matt Westcott
80905ea0f3 Release note for #7702 2021-11-10 21:08:20 +00:00
Matt Westcott
33445188e7 Release note for #7701 in 2.15.1 2021-11-10 16:06:29 +00:00
Matt Westcott
bcaf129cef Release note for #7695 in 2.15.1 2021-11-10 12:05:16 +00:00
Matt Westcott
364398be7f Changelog note for #7694 in 2.15.1 2021-11-09 20:58:26 +00:00
Eric Sherman
d8e7fdf1ee
Adding anchor link to list of documented links in the editor manual (#7672) 2021-11-05 15:21:03 +00:00
Matt Westcott
87dda77a2d Fill in release date for 2.15 2021-11-04 11:29:43 +00:00
Matt Westcott
abf408d8f6 Formally deprecate old db search backends (#7651)
As per #7633
2021-10-28 10:53:32 +01:00
Matt Westcott
3e64deb1ac Label edit actions as 'Edited' instead of 'Draft saved' for non Page models
Fixes #7622
2021-10-26 07:53:12 +10:00
Matt Westcott
a2856fc52d Start changelog for 2.16 2021-10-25 11:23:35 +01:00
Coen van der Kamp
73f65e9357 Fix TableBlock -> TypedTableBlock in code samples 2021-10-18 12:42:20 +01:00
Coen van der Kamp
ac928a443e Fix reference 2021-10-18 12:38:14 +01:00
Coen van der Kamp
b03ab850d6 Fix Python code blocks, indent lines with multiple of 4 spaces 2021-10-18 12:37:26 +01:00
LB Johnston
e8285b99f3 Revert "Upgrade modernizr" back to v2.6.2
This partially reverts commit 50f55507d8.
Fixes #7625
2021-10-18 12:29:19 +01:00
Thibaud Colas
f819d975dc
Add dedicated release notes section for Windows high contrast mode support (#7618) 2021-10-15 17:51:19 +01:00
Jacob Topp-Mugglestone
412c26201a Add changelog and release notes for bulk actions (#7615)
* Add changelog and release notes for bulk actions
2021-10-15 16:51:18 +01:00
Shohan
4624d2d540 Fix typos and remove unwanted code from bulk actions (#7613)
* [refactor] Fix typos and documentation

* [refactor] Remove unused attribute object_key

* [refactor] Remove filters from page explorer

* [refactor] Remove unused code of page filters
2021-10-15 16:51:18 +01:00
Dan Braghis
247bfe883f Further tidy up following code review
Co-Authored-By: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-15 16:51:18 +01:00
Dan Braghis
d19e1b4380 Tidy up based on code review 2021-10-15 16:51:18 +01:00
Shohan
e0df3f30d7 Update editorial images and add content for bulk actions 2021-10-15 16:51:18 +01:00
Shohan
24f987db49 Add bulk actions documentation
Co-Authored-By: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-15 16:51:18 +01:00
Jérôme Lebleu
025a28f238 Set the bound field label with the heading argument
When a FielPanel is rendered as a field, the label is outputted with the
`bound_field.label_tag()` method. Thus, the field's label is not
overridden with the `heading` argument.

This attempts to fix that by set the `bound_field.label` property with
the `heading` argument.

Fix s#6855.
2021-10-15 23:43:17 +10:00
Matt Westcott
20ed834132 Release note for typed table block #7470 2021-10-15 14:33:00 +01:00
Shariq Jamil
c4422b2bec add border to comments dropdown
- for windows high contrast mode
- fixes #7458
2021-10-15 23:25:09 +10:00
Matt Westcott
78389caa95 Remove unnecessary indentation from code examples 2021-10-15 14:20:56 +01:00
Matt Westcott
6012291707 Documentation formatting fixes
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2021-10-15 14:20:56 +01:00
Matt Westcott
55c72fd3ba Docs for typed table block 2021-10-15 14:20:56 +01:00
Karl Hobley
ff76931aa4 Change log and release note for new database search backend 2021-10-15 11:15:03 +01:00
LB Johnston
b3366749d9 update release notes 2021-10-15 19:12:17 +10:00
LB Johnston
307d0126a2 add ability to customise the pre-filled document title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- add documentation
- fixes #7508
- see also #4945
- update image docs for same behaviour to be more readable
2021-10-15 18:25:23 +10:00
Noah Hall
300163b845 replace hard-coded colors for admin filters with variables
- fixes #7584
2021-10-15 17:49:20 +10:00
Matt Westcott
f7fcae0a1d Release note for #6945 2021-10-15 01:16:33 +01:00
Cynthia Kiser
c8d2562002 Create new permission policy CollectionMangementPermissionPolicy
Also updated tests, docs, and made a migration to move from model-level permissions to new granular collection management
2021-10-15 00:44:05 +01:00
Cynthia Kiser
a84c04af19 Document add, change, delete permissions when managing permissions 2021-10-15 00:26:37 +01:00
LB Johnston
5a7ae4280d add release notes for #7605 2021-10-15 07:07:00 +10:00
Matt Westcott
e17647e466 Formally define / use COMMENTS_RELATION_NAME as a constant on wagtail.core.models
Follow-up to #7591 as per https://github.com/wagtail/wagtail/pull/7591#issuecomment-943217628
2021-10-15 06:49:58 +10:00
Matt Westcott
b57448eeef Fill in release date for 2.14.2 2021-10-14 17:14:14 +01:00
Matt Westcott
6197ada10d Fill in release date for 2.13.5 2021-10-14 17:13:44 +01:00
Matt Westcott
871da88a7f Release note for #7524 backport in 2.13.5 2021-10-14 17:02:09 +01:00
Matt Westcott
bf14954d80 Release note for #7524 in 2.14.2 2021-10-14 17:02:02 +01:00
Matt Westcott
7eab06de10 Release note for translation fixes in 2.14.2 2021-10-14 17:01:53 +01:00
Matt Westcott
b5e7af9ebc Release note for translation fixes in 2.13.5 2021-10-14 17:01:45 +01:00
Matt Westcott
20ef0dcf7f Document the COMMENTS_RELATION_NAME constant in 2.14.2 release notes 2021-10-14 17:01:33 +01:00
Matt Westcott
d3f2305601 Document the COMMENTS_RELATION_NAME constant in 2.13.5 release notes 2021-10-14 17:01:24 +01:00
Matt Westcott
740451c351 Release note for #7591 in 2.14.2 2021-10-14 17:01:05 +01:00
Matt Westcott
80d2f2bc36 Release note for #7591 in 2.13.5 2021-10-14 16:59:34 +01:00
Fab
77913bc220 Replace unneeded length filter
I asked the question about using the `length` filter in https://github.com/wagtail/wagtail/discussions/7598 and I'm thinking it may not be needed anymore with the current version of Django that Wagtail supports.
2021-10-14 13:25:03 +01:00
Andy Chosak
5a65cb7554 Expose preview mode to page and template rendering
Currently Wagtail defines `request.is_preview` as a way for both page
rendering and template rendering to modify logic based on whether the
page is being previewed.

If a page supports multiple preview modes, though, the information about
which mode is being previewed isn't made available. So, for example,
it's not possible to customize `Page.serve` or `Page.get_context` based
on a different preview mode. Or, consider customizing
`Page.get_template` so that it uses a different page template depending
on the mode being previewed.

This commit adds `request.preview_mode` so that the mode is available
downstream of previews, both in the page rendering logic and also in the
template itself.

A minor documentation change mentions this new property.
2021-10-14 06:47:26 +10:00
Matt Westcott
ba3a527230 Release note for #7591 2021-10-13 19:10:56 +01:00
LB Johnston
196a368cdc add contributors for #7588 2021-10-13 17:54:04 +10:00
indreshp135
6e90c877ec fix issue with __prefix__ in nested inline panel
changed following:
change only first __prefix__ when multiple __prefix__ are present in
same name when orderable and blocks are nested

Co-authored-by: anirudhvs <54744932+anirudhvs@users.noreply.github.com>
Co-authored-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com>

- fixes #7587
- fixes #5770
2021-10-13 07:37:27 +10:00
Karl Hobley
e2ddd52030 Updates to docs for new database search backend
A more detailed comparison of the features supported in different
databases will come later.
2021-10-11 20:12:24 +01:00
Jérôme Lebleu
a714de8038 Use SVG icon instead of font icon in modeladmin index view
- This uses the same classes and tags than 'wagtailadmin/shared/header.html'
- constructs the <header> element and its children and blocks to that convention
2021-10-10 13:12:51 +10:00
Fabien Le Frapper
50f55507d8 Upgrade modernizr and jquery
- https://blog.jquery.com/2021/03/02/jquery-3-6-0-released/
- https://github.com/Modernizr/Modernizr/compare/v2.6.2...v2.8.3
2021-10-10 13:01:53 +10:00
LB Johnston
443f5b3fa0 add missing release notes items
- items included in changelog but not in 2.15 release notes
2021-10-10 12:53:37 +10:00
Sakshi Uppoor
da1e4d9a99
Fix toggle switch bug in high-contrast mode (#7561)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-08 22:32:55 +01:00
Jérôme Lebleu
5522992c29 Use SVG icons in StreamField buttons and headers
- Simplify rendering of .c-sf-button and its elements
- replaces the rendering of `.c-sf-button` as a flexbox by a simple
- block element - as it is enough here - and moves text related rules to the <button> element.
- Use SVG icon in StreamField's action buttons
2021-10-07 17:04:13 +10:00
Dmitrii F
932762c9f1 windows high contrast mode - multiple fixes
- fix search header field border in Windows High Contrast mode
- fix tab-nav active in Windows High Contrast mode
- add border for c-sf-button. This fix view in WHC mode.
- add justify-content - center for better view on mobile devices.
2021-10-07 15:59:14 +10:00
LB Johnston
02d6d27a9c add release notes
- autocomplete API - #4937 & #5960 & #4938
- Python 3.10 #7577
- unit tests #7578
2021-10-07 15:42:32 +10:00
Karl Hobley
160b44ed09 Documentation for autocomplete API 2021-10-07 15:26:23 +10:00
Matt Westcott
b6b3a0c4ac Add support for Python 3.10
Quote all versions in test.yml (so that 3.10 isn't interpreted as 3.1)
2021-10-07 15:20:28 +10:00
LB Johnston
f453092d0c update hooks documentation to use mark_safe as no variables are used 2021-10-06 20:57:32 +10:00
LB Johnston
e03c86f3f8 add ability to customise the pre-filled Image title
- leveraging a custom DOM event provides the ability to update the title before being added to the form
- multiple image upload (view) needs to be able to read the title POST data
- add documentation
2021-10-06 19:53:30 +10:00
LB (Ben Johnston)
2eb7232055 Deployment docs - update wagtail getting started 2021-10-05 21:00:48 +10:00
Matt Westcott
9aa2f68dfa Release note for model audit logging 2021-10-04 14:01:25 +01:00
Matt Westcott
4db9be469f Release note for #7409 2021-10-04 13:01:19 +01:00
LB Johnston
3e2012373a update documentation & 2.15 release to drop IE11 support
- update browserslist
- fixes #6170
2021-10-04 12:35:58 +01:00
LB Johnston
3ef14c0d62 fix typo in changelog 2021-10-04 19:53:29 +10:00
Nick Smith
781c2d14d3 Add How-To instructions for landing-page redirects
This uses both the forms and routable_page contrib modules to redirect
without using a separate landing page.
2021-10-04 14:12:28 +10:00
Matt Westcott
37e19c3d71 Fix link to node.js download
https://nodejs.org/download/ just points to a directory listing now; the download link is now on the https://nodejs.org/ homepage, and there are no instructions to speak of.
2021-10-02 12:52:47 +10:00
Matt Westcott
6cb463dd41 Document the new 'log' method 2021-10-01 16:30:05 +01:00
Matt Westcott
f8e7a049c0 Release note for #7540 2021-10-01 16:28:20 +01:00
Coen van der Kamp
f1175658bc Add release note about default Dutch (nl) 2021-10-01 13:19:39 +01:00
LB Johnston
a8636781b0 release notes for #7554 & #7545
- #7554 & #7545
2021-10-01 07:23:53 +10:00
Daniel
381b11f54f Include custom permissions hook documentation 2021-10-01 06:52:43 +10:00
Matt Westcott
1b9dfc81ba Add section about CSV exports to security docs
Security researchers frequently report CSV formula injection as a security vulnerability in Wagtail, but that's the responsibility of the software consuming the CSV, not creating it. Hopefully this explanation will stop them from doing that (or at least give us a ready-made response to point at when they do).
2021-10-01 06:38:32 +10:00
Joe Howard
4ab7080fb8 Documentation - Remove ambiguity about ModelAdmin templates
- The modeladmin folder needs to be inside the templates folder of the relevant app.
- The way it was written makes it seem like /modeladmin/ should be placed in the project root directory.
2021-09-30 21:32:57 +10:00
JaneLiu
92381698d0 Add code example for before_delete_page hook 2021-09-30 21:15:33 +10:00
Fabien Le Frapper
cbd7b028d5 images - move shared file handling methods to mixins
- add ImageFileMixin to house contextmanager (file opening & willow image handling) + is_stored_locally method
- use mixin in AbstractImage & AbstractRendition
2021-09-30 19:11:37 +10:00
Matt Westcott
81f8f99215 Link to Github discussion boards 2021-09-30 19:00:18 +10:00
Kamil Marut
8d42bec5e6 Add "other permissions" to group permissions
- instead of a separate table containing all discrete permissions for each object, show these in the object's table
- Wagtail admin access will still show inside 'other permissions'
- resolves #5482
2021-09-30 18:54:46 +10:00
Desaiakshata
997ac738b0 dropdown - improve focus and high contrast mode visibility
- Update _dropdown.legacy.scss
- improvement to existing styles for dropdown/up button on focus and windows high contrast mode
- see #7366
2021-09-30 08:12:00 +10:00
Karl Hobley
607d356076 Changelog / release note for #7548 2021-09-29 12:02:59 +01:00
Mitchel Cabuloy
d026632894
Add page synchronization to simple_translation 2021-09-29 11:43:45 +01:00
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
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
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
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
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
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
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
Justin Slay
85faf19211 Change initial value of publish_copies to False 2021-09-01 17:47:12 +10:00
FDGod99
c2347a6d35 fix - high-contrast mode - sidebar needs visual separation
- Due to how high-contrast mode works, there was no visual separation between the sidebar and the main content, adding a transparent border resolves this without having any visual impact in non-high contrast mode
- fixes #7456
2021-09-01 08:02:42 +10:00
Matt Westcott
7f27e0abbc Support calling get_image_model and get_document_model at import time
Attempting to call get_image_model or get_document_model at the top level of a models.py file currently fails with "Models aren't loaded yet". This can be avoided by passing `require_ready=False` to apps.get_model.

This change makes it possible for third-party apps to define abstract models with foreign key references to the possibly-custom image or document model (which can then be subclassed into concrete models in the project itself - defining concrete models in the third-party app probably still isn't safe, as the model will end up being baked into the third-party app's migrations).
2021-08-31 21:15:12 +10:00
LB Johnston
d43c203c29 add release notes for #7480 & #7474 2021-08-31 21:06:37 +10:00
Alex Tomkins
9812d606a9 Add a style fallback to avoid invalid inline styles
- fixes #7387
2021-08-31 21:02:43 +10:00
Gordon Pendleton
b6c172cf20 Allow html in multi image upload errors
- fixes #6824
2021-08-31 20:45:36 +10:00
Matt Westcott
f8f7f543b3
Update contributing docs to specify Node 14 2021-08-31 10:32:40 +01:00
infinityplusone
5f3207ca43 add object count to modeladmin header listing view 2021-08-31 11:53:34 +10:00
Chris
5593b8b42e Fix: Update elasticsearch path in documentation
New location: https://github.com/wagtail/wagtail/blob/main/wagtail/search/backends/elasticsearch7.py
2021-08-31 11:29:56 +10:00
fabienheureux
cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Chakita
b5abd8b155 High-contrast mode: restored vertical separation between field panels
- fixes #7455
2021-08-30 20:10:15 +10:00
Stefan Hammer
22a35b70d2 Fix home icon in breadcrumbs for limited-permission users, fixes #7348
- The html has just been synced with the html for unlimited users
2021-08-30 19:56:17 +10:00
amychan331@yahoo.com
f1b3bbc52f Update form label css to be readable by screen reader
- login screen
2021-08-30 19:12:22 +10:00
LB Johnston
5d2794b932 add release note for #7381 2021-08-25 07:38:44 +10:00
Matt Westcott
c919d4c3b3 release note for #7425 2021-08-24 15:57:03 +01:00
Matt Westcott
1d5c696785 double backticks 2021-08-24 15:55:17 +01:00
Matt Westcott
1155373d72 "simplest way" -> "preferred way" 2021-08-24 15:42:04 +01:00
Matt Westcott
e777517950 Update docs on action menu items to cover new API 2021-08-24 15:42:04 +01:00
Matt Westcott
83d24c8346 Link to release notes from deprecation warnings 2021-08-24 15:42:04 +01:00
Matt Westcott
1ad6f3518c Update docs to cover use of components in homepage panels / summary items 2021-08-24 15:42:04 +01:00
Matt Westcott
428c4c7a3f Documentation for template components 2021-08-24 15:42:04 +01:00
Seb
a9f13d2dfb Apply list styles for MultipleChoceFields 2021-08-24 08:34:40 +10:00
LB Johnston
1b50c74424 add release notes for #7209 #7251 #7446 2021-08-23 20:46:09 +10:00
Dmitrii Faiazov
fb66c1fd17 Styling for Windows high contrast
- add media queries for icons & logos
- fix issue with color problems
2021-08-23 20:15:08 +10:00