0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

13253 Commits

Author SHA1 Message Date
Matt Westcott
386799af79 Move data-chooser-url attribute from template override to a context variable 2022-05-25 16:32:07 +10:00
Matt Westcott
7bcf452f8d Move chooser widget icon and classname from template overrides into context variables 2022-05-25 16:32:07 +10:00
Matt Westcott
45ac80bb89 Make cross-link URLs on generic model views optional
Normally, generic model views will be spun up through wagtail.admin.viewsets, which takes care of configuring the add_url_name / edit_url_name etc attributes to ensure that they are cross-linked appropriately. But if you're defining one in isolation, that's an unnecessary hoop to jump through, and the error messages if you don't specify them are fairly opaque. Fix this so that:

1. Non-essential cross-links (e.g. the Add button on the index view, and the Delete button on the edit view) are gracefully omitted if the URLs are undefined;
2. Essential cross-links (e.g. the destination of the redirect after a successful form submission) raise an informative error telling the developer what needs to be defined.
2022-05-25 16:31:12 +10:00
Matt Westcott
55fdafdfe6 Make radio buttons / checkboxes display vertically under Django 4.0
Fixes #8190
Django 4 changed the rendering of radio button / checkbox lists to nested divs rather than ul/li - see 5942ab5eb1. This change simply applies the existing li styles to second-level divs.
2022-05-25 08:31:11 +10:00
Matt Westcott
820c27fca9 lint fix for dialog.js
I'm guessing this was caused by #8541 and #8543 being merged in close succession...
2022-05-20 16:55:06 +01:00
Karl Hobley
25138aed92 Check that page.save_revision() was given a specific page object 2022-05-20 16:21:33 +01:00
LB (Ben Johnston)
7c9b6fd415
Cleanup - eslint config fixes (#8543)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 16:08:13 +01:00
Steve Stein
6343a9558c
Implement new reusable dialog component with a11y-dialog (#8541)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 15:02:32 +01:00
LB (Ben Johnston)
9f206d258c
Make it possible to reuse and customise Wagtail’s fonts with CSS variables. Fix #8406 (#8544)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 14:19:30 +01:00
LB (Ben Johnston)
b817ed2fc4
Resolve npm audit fix items (#8358) 2022-05-20 13:50:06 +01:00
Sage Abdullah
93c9103d8a Use PostgreSQL 12 when testing against Django main 2022-05-20 12:18:20 +01:00
LB (Ben Johnston)
03ce6ea046
Add consistent header & subtitle classes across templates (#8368) 2022-05-20 11:53:10 +01:00
thoang43
2fbac52532 Documentation - Convert rst to md for ModelAdmin section
- Co-authored-by: Vu Pham
- relates to #8383
2022-05-20 08:32:21 +10:00
Karl Hobley
2a40333770 Set referer policy of upgrade notifcation to "strict-origin-when-cross-origin"
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- Since Django 3.1, all Wagtail admin responses have been given a referer-policy: same-origin header. See: https://chipcullen.com/django-3-referrer-policy-change/
2022-05-19 08:37:25 +10:00
sag᠎e
52e5abfe62
Replace PageRevision with generic Revision model (#8441) 2022-05-17 11:46:30 +01:00
Matt Westcott
501b28c62b Fill in release date for 3.0 2022-05-16 14:20:37 +01:00
Matt Westcott
ca03abc935 Fetch new translations from Transifex 2022-05-16 11:41:46 +01:00
Paarth Agarwal
a98f047950 removed trailing slash 2022-05-14 15:50:10 +10:00
Steve Stein
851ec9a5c1 Apply full header breadcrumb spacing fixes for all templates (#8471, #8491) 2022-05-13 17:09:01 +01:00
Steve Stein
c3e13d1d51 Apply simplest fix for breadcrumbs visual regressions in modeladmin 2022-05-13 17:09:01 +01:00
Steve Stein
3355213655
Change description text for switch locales (#8526)
* Add translations total and change copy of sidebar

* Add comment for translations_totle
2022-05-13 12:20:19 +01:00
Matt Westcott
2da1a051c7
Make 'upload one now' link on document chooser work after results refresh (#8529)
* Make 'upload one now' link on document chooser work after results refresh

Fixes #8528
Put the initTabs call inside ajaxifyLinks so that it's reapplied when the results container (including the 'no results message') is replaced.

* Make 'create one now' link on task chooser work after results refresh
2022-05-13 12:13:36 +01:00
Tom Hu
1f3605b98a chore(ci): add informational Codecov status checks
we were usng Codecov but weren't actually getting any notifications on pull requests.
Update codecov.yml
Removing `after_n_builds` as there is only 1 build
2022-05-13 08:16:12 +10:00
Fabien Le Frapper
aad51b2bb2 Update docs/reference/contrib/frontendcache.rst
Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2022-05-13 08:15:35 +10:00
Fabien Le Frapper
aff9b9a623 fix linting issues 2022-05-13 08:15:35 +10:00
Fabien Le Frapper
44456ff4dd Fix typo that broke a link 2022-05-13 08:15:35 +10:00
Fabien Le Frapper
b54e9cbc62 Add instructions about where to find cloudflare zone id 2022-05-13 08:15:35 +10:00
LB Johnston
d9981e0ec7 fix up spelling in documentation & docstrings (should be en-GB not en-US)
- customize -> customise
- color -> colour
- customizing -> customising
- organize -> organise
2022-05-13 08:13:06 +10:00
Stefan Hammer
885b593234 Use FormData for docs/images add-multiple's edit handling
The ajax-request now uses multipart/form-data, similar to
image-chooser-modal.js/document-chooser-modal.js, which allows to add
and use FileFields in the bulk-upload-views.
2022-05-13 08:07:29 +10:00
LB (Ben Johnston)
f5044828b8
2.16 release notes - fix up internal reference (#8525) 2022-05-12 14:22:25 +01:00
Christian Franke
7d6240a489 Throw error if images.Filter.run cannot create output (#8508)
If Filter.run is requested to create an unknown output format,
it should not fail silently without writing any output, but instead
throw an exception.

Fixes #8503
2022-05-12 14:20:45 +01:00
Matt Westcott
7d8d900d10
Set comment position correctly relative to scroll position (#8511)
Fixes #8500. As a consequence of the CSS changes in c6fdb6bbb3, scroll position is no longer reflected in the document element's scrollTop property, but on the `<main>` element instead. As a result, comment positions were not being adjusted for scroll position. To account for this (and any future CSS changes), we walk all ancestor elements to calculate the true scroll position.
2022-05-12 14:11:47 +01:00
LB (Ben Johnston)
ca1c69b8ea
fix issue with image model docstrings (#8524)
* asterisk was being parsed as markdown and not rendering correctly in the documentation
2022-05-12 10:58:31 +01:00
Stefan Hammer
7d384e70c1 Added handling for lazily evaluated page_description, fixes #8523 (#8527) 2022-05-12 10:54:07 +01:00
LB Johnston
091cc45891 fix changelog entry for #8519 2022-05-11 22:26:04 +10:00
th3hamm0r
ec1aea0f20 Fix typo in ResumeWorkflowActionFormatter message 2022-05-11 21:47:53 +10:00
Thibaud Colas
7129ccefc9 Remove logical properties compatibility styles for Safari 13
- update caniuse-db & browserslist
- resolves #8124
2022-05-11 21:41:15 +10:00
jacobtoppm
7e98db7197 Disable webpack css url rewriting
This was causing relative urls to be rewritten to use the publicPath.
This meant that the icon font would be referenced at the wrong location
if sites had changed STATIC_URL
fixes #8517
2022-05-11 19:27:49 +10:00
Cynthia Kiser
399a34bc93
Make nested list render as a nested list (#8516) 2022-05-11 09:05:02 +01:00
Thibaud Colas
74ed301562 Fix cropped descenders in sidebar 2022-05-10 16:56:08 +01:00
Thibaud Colas
5afbd6371a Adjust branding spacing in sidebar 2022-05-10 16:55:37 +01:00
Steve Stein
43ebdbaea9
Update workflow state icon, add workflow state requested by user name (#8469). Fix #8464
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-10 14:52:38 +01:00
Sage Abdullah
2006b94be8 Add missing media context in revisions_revert view 2022-05-10 14:27:49 +01:00
LB Johnston
f220d45e32 Add Wagtail 3 classifier to documentation 2022-05-08 19:27:51 +10:00
Steve Stein
95fcddd9d2
Switch locales selector JS error (#8468). Fix #8466, #8462
* Check for hover tool tip instance to avoid throwing errors

* Remove multiple attr because it is un-needed now
2022-05-06 16:10:09 +01:00
Steve Stein
cc74182c21
Hide side_panel_button if empty (#8492)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-06 15:48:55 +01:00
Steve Stein
3ff6634e7c
Add margin to icons in footer actions menu (#8467) 2022-05-06 15:35:28 +01:00
Sandil Ranasinghe
5cea62b4b8 Ensure InlinePanel.get_comparison passes label for field comparison
- FieldComparison.field_label should pick up labels from InlinePanel
- fixes #4732
- add unit test for InlinePanel label as field label
2022-05-06 07:43:00 +10:00
Josh Woodcock
8a4a6b4ced modeladmin - fix issue where action button class conflicted (#6387)
- It was creating styling issues in the wagtailadmin when list export was enabled
- ensure that all actions are contained within the actionbutton div
2022-05-06 06:40:50 +10:00
sag᠎e
bb2c826cbc
Use PostgreSQL 11 when testing against Django main (#8489)
Django dropped support for PostgreSQL 10 as of Django 4.1
2022-05-05 10:47:38 +01:00