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

4298 Commits

Author SHA1 Message Date
Paarth Agarwal
d8c3d26de7
Adopt shared header template in workflows (#8850)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 22:51:50 +01:00
Paarth Agarwal
d4b37357ab
Adopted shared header for redirects listing view (#8849)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 22:35:11 +01:00
anujaraj
8daf1554ae
Display the correct color for icons in forced colors mode. Fix #8816 (#8852)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 15:41:59 +01:00
Paarth Agarwal
e10648ffc2
Display data for Twitter embed blocks (#8167)
Co-authored-by: Iman Syed <52247241+imansyed000@users.noreply.github.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 14:38:03 +01:00
Paarth Agarwal
1545417cc5
Add pagination to docs search results page (#8178)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 13:35:26 +01:00
sag᠎e
5ee5acb7ce
Introduce a new auto-updating preview panel inside the page editor (#8671)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-14 13:59:05 +01:00
Paarth Agarwal
1859e64275
Switch all report views to use Wagtail’s reusable header component (#8839)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-13 07:14:12 +01:00
Thibaud Colas
27ff5bfeaf
Remove button-group from ModelAdmin InspectView footer actions (#8832) 2022-07-13 03:11:41 +01:00
Thibaud Colas
b070ce1cd3
Add new Draftail toolbars and command palette, with new styles (#8806) 2022-07-13 01:35:22 +01:00
Thibaud Colas
d30eec40a8 Update to Draftail v2 alpha 2022-07-11 20:35:27 +01:00
Shohan
7286c530e9
Snippets bulk actions (#8574) 2022-07-10 11:42:38 +01:00
anujaraj
3cb9b70d12
Make checkboxes visible in forced colors mode. Fix #8334 (#8718)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-10 02:05:07 +01:00
anujaraj
3f0a648181
Make progress bars’ progress visible in forced colors mode (#8719)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-10 00:18:39 +01:00
Jaap Roes
12ba7d8161 Fixed #8809 -- ExcelDateFormatter generates invalid format strings (#8811)
The format strings generated previously would not work correctly in macOs Preview and Numbers
2022-07-07 13:23:54 +01:00
Kyle
d967eccef2
Add generic settings to compliment site-specific settings (#8327) 2022-07-06 11:01:02 +01:00
LB Johnston
dbac4335c2 update changelog for eslint clean up items
- #8749
- #8764
- #8750
- #8748
- #8737
2022-07-06 19:28:25 +10:00
PaarthAgarwal
79a212b4b5 added prefix w- before header classes
- refine existing scss to use classes & remove unused scss
2022-07-06 19:13:19 +10:00
PaarthAgarwal
3b9c9fce5b adopt the shared header include in the dashboard (home) view 2022-07-06 18:30:08 +10:00
PaarthAgarwal
e2d4cb7745 add classnames template tag for generating classnames
- use classnames template tag in shared header template
- add classname as documented variable for the shared header template
2022-07-06 18:30:08 +10:00
Thibaud Colas
524cab82e3 Introduce new template fragment composition tags 2022-07-06 18:18:21 +10:00
Sandeep M A
bc0f561240 documentation - migrate reference/pages/theory + index to markdown 2022-07-05 22:05:20 +10:00
Sævar Öfjörð Magnússon
4ef7323fdb documentation - convert contributing files from rst to markdown 2022-07-05 21:45:28 +10:00
Sævar Öfjörð Magnússon
a33563b685 documentation - contributing - rename files to markdown 2022-07-05 21:45:28 +10:00
LB Johnston
77a8f76c97 documentation - add cross-reference to field panel permissions
- permissions page had no reference to the newly introduced permission kwarg on FieldPanel
- fix minor typo
2022-07-05 20:45:13 +10:00
LB Johnston
bdf0f21fdb add file names to general guidelines 2022-07-05 20:44:10 +10:00
LB Johnston
286a26a23d rename files to lower_snake_case 2022-07-05 20:44:10 +10:00
LB Johnston
6b4a551c0b Revert "Add legacy and new status tags to the pattern library" #8665
This reverts commit daa47baddd.
Resolves #8798
2022-07-05 20:41:17 +10:00
Matt Westcott
dbdd218864 Upgrade consideration note for change of document/snippet URL route names 2022-07-04 19:01:28 +01:00
Matt Westcott
30054eda39 Add a 'create' view with a GET request handler 2022-07-04 13:48:35 +01:00
Matt Westcott
4dd3483617 Add a (non-functional) 'create' form to generic chooser modal 2022-07-04 13:48:35 +01:00
Matt Westcott
ffda558015 Remove outdated references to old db search backend in docs 2022-07-04 07:59:23 +10:00
LB Johnston
c577554838 documentation - upgrading - fix formatting issue
- fix issue introduced by #8769
2022-07-04 07:58:46 +10:00
Sævar Öfjörð Magnússon
34734d252f Remove the edit link from edit bird in previews to avoid confusion 2022-07-03 13:34:57 +01:00
LB Johnston
d4f6773940 fix documentation markdown conversion issue
- introduced in #8569
2022-06-30 16:55:42 +10:00
LB Johnston
cda437804e fix up markdown docs conversion issues
- introduced in #8759 & #8569
2022-06-30 16:36:37 +10:00
SilvestriStefano
f535a0cc43 Documentation - migrate reference/** files to markdown content
- relates to #8383
2022-06-30 09:57:26 +10:00
LB Johnston
0afe2f9c89 Documentation - rename docs/reference/**
- rename all files from rst to md so git history is preserved
2022-06-30 09:57:26 +10:00
LB Johnston
86cb09a534 Documentation - fix streamfield reference issue
- myst was building a doc link `streamfield` and also had a ref link `streamfield` which was causing conflicts
2022-06-30 09:57:26 +10:00
LB Johnston
4e7accda55 documentation migrate rest of topics/search/** to markdown 2022-06-30 09:16:42 +10:00
LB Johnston
7d2545cddc documentation - topics/search - rename files
- adding as separate commit to preserve file history
2022-06-30 09:16:42 +10:00
Tidiane Dia
b4fded5958 Prefetch workflow states in page edit view
- Add test to show initial number of performed queries
- Add test to show number of queries performed when workflow states are prefetched
2022-06-29 14:45:01 +10:00
Josh Michael Karamuth
3374ccee5e Make password reset form customisable
- Use a setting called WAGTAILADMIN_USER_PASSWORD_RESET_FORM to allow
users to specify a custom form for use in PasswordResetView

- Add an extra_fields property so that fields other than the
mandatory email field can be easily rendered in the template.

- Add extra blocks to the default template to allow users to
easily add their own stuff.

- Render extra fields in the template like we're doing in the
login template.
2022-06-29 14:40:24 +10:00
Steve Steinwand
daa47baddd Add legacy and new status tags to the pattern library 2022-06-29 13:58:04 +10:00
Matt Westcott
be5b8c41c7 Deprecate createSnippetChooser 2022-06-29 13:42:04 +10:00
anujaraj
8766277e44 fix issue where linting/formatting npm scripts would not work on Windows
- linting bug changes to allow it working for both windows and mac
- resolving linting issues for windows in lint:format to allow prettier to run
2022-06-29 11:13:13 +10:00
Bernd de Ridder
013ff2179b Update human-readable-date with accessible tooltip
- resolves #8697
2022-06-29 11:02:16 +10:00
LB Johnston
65a9c9a1cd documentation - upgrading page - migrate content to markdown 2022-06-29 10:18:05 +10:00
Sandeep M A
480de77bad Rename upgrading.rst to upgrading.md 2022-06-29 10:18:05 +10:00
PaarthAgarwal
688891c108 remove ModelAdmin breadcrumbs
- replace with the existing convention of the back to listing link
- fixes #6904
2022-06-28 22:28:21 +10:00
PaarthAgarwal
87172278a9 Remove old legacy breadcrumbs completely 2022-06-28 22:13:06 +10:00
Sævar Öfjörð Magnússon
0705f1d765
Document the prefix_default_language parameter to i18n_patterns (#8763)
* Document the prefix_default_language parameter to i18n_patterns
* Update docs/advanced_topics/i18n.md

Co-authored-by: Dan Braghis <dan@zerolab.org>
2022-06-28 10:41:08 +01:00
Matt Westcott
b8a9a2d319 Deprecate wagtail.contrib.modeladmin.menus.SubMenu in favour of wagtail.admin.menu.Menu
The Menu class was not originally designed to accept menu items at constructor time (instead requiring them to be passed via hooks); ModelAdmin's SubMenu class patched this functionality in, and the documentation for extending admin views piggybacked on this. Add this functionality to the base Menu class so that we don't have this unnecessary dependency on ModelAdmin.
2022-06-28 16:32:15 +10:00
LB Johnston
b9f6776600 documentation - migrate docs/support to markdown 2022-06-28 16:16:09 +10:00
LB Johnston
0f9c20e6c6 documentation - rename docs/support to md 2022-06-28 16:16:09 +10:00
Karl Hobley
920c0afdf4 Changelog/release note/contributors for #8747 #8751 #8725 #8724 #8722 2022-06-27 14:56:13 +01:00
LB Johnston
e140c41a89 documentation - markdown formatting
- apply general fixes to existing markdown documentation
- various cases of rst syntax still used
- update some links to be the new format
- clean up line breaks (prettier)
2022-06-25 22:44:42 +10:00
Matt Westcott
97b3ab2c39 Fix 'create one now' link on snippet choosers
Regression introduced in #8422
2022-06-25 22:27:08 +10:00
LB Johnston
409c840adb add changelog for #8741 2022-06-25 22:23:42 +10:00
Tibor Leupold
081f46c07f Documentation - search indexing - Add link to the Postgres docs
- Postgres does not provide true control the search ranking using the database search backend.
- Postgres only supports four weight levels and this should be clarified in the documentation
2022-06-25 21:49:04 +10:00
Sage Abdullah
c634fc11cc Move get_snippet_panel to get_model_panel and fix missing return in get_snippet_edit_handler 2022-06-24 15:12:49 +01:00
LB Johnston
c76579fc1e migrate docs contrib redirects & searchpromotions to md
- relates to #8383
2022-06-24 22:01:53 +10:00
Yves Serrano
c5c93cba67 convert DecimalBlock value back to Decimal (#8694)
Fixes #4647
2022-06-24 12:15:23 +01:00
Viggodevries
d294617544 change the admin page move interface to a page chooser panel
- fixes #8647
2022-06-24 16:48:41 +10:00
Sævar Öfjörð Magnússon
a316408928 convert the docs/topics/** from RST to Markdown
Relates to #8383

* Convert the image tag topic to Markdown
* Convert the permissions usage to Markdown
* Convert the topic of snippets to Markdown
* Convert the streamfield topic to markdown
* Convert the writing templates doc to Markdown
2022-06-23 08:12:07 +10:00
LB Johnston
58095cde30 documentation minor fixes 2022-06-23 08:12:07 +10:00
Stefan Hammer
82ff0f935a Added new get_primary_button_for_obj() to ButtonHelper
- This method is now used to add links to the IndexView's rows, where
possible.
- If the user does not have permissions to edit, the inspect view will be used (if enabled), otherwise the item till not be clickable
- fixes #8261
2022-06-23 07:51:47 +10:00
LB Johnston
73c8178d0d add additional release note for #8702
- fixed as part of 4411b76388
- see wagtail/admin/templates/wagtailadmin/chooser/_browse_results.html
- removed aria-label on `u-btn-current` as content was already in the button
2022-06-23 07:19:51 +10:00
PaarthAgarwal
4411b76388 Added new non collapsible breadcrumbs to page chooser 2022-06-23 07:16:19 +10:00
Tidiane Dia
cb4017c649 Cache model permission codenames in PermissionHelper 2022-06-22 17:25:42 +01:00
igor
fd7ef0a68a
Fix assert type in test_content_page_subpages method (#8725)
Co-authored-by: Igor Strapko <igor@goodpraxis.coop>
2022-06-22 11:03:50 +01:00
Andy Babic
9ac3877980
Use iterator() wherever PageQueryset result caching is not needed (#8722) 2022-06-22 11:03:17 +01:00
Sage Abdullah
dba42161e7 Move revision ForeignKey from PageLogEntry to BaseLogEntry 2022-06-22 09:31:25 +01:00
Matt Westcott
911f17bf8f
Typo in generic views docs - People -> Person (#8720) 2022-06-21 17:11:56 +01:00
Sage Abdullah
3215bebddf Rename Page.get_latest_revision_as_page to Page.get_latest_revision_as_object 2022-06-21 15:19:32 +01:00
Sævar Öfjörð Magnússon
9dd4d6c6c4
Update documentation for the serve method override so that it does not mention a specific demo site. (#8714) 2022-06-21 09:13:58 +01:00
Karl Hobley
50200f94c0 Release note for #8498 2022-06-20 14:18:29 +01:00
Matt Westcott
90c3a71c16 Release note for #8634 2022-06-20 14:13:47 +01:00
Oliver Parker
97d0d14cd8
Add add_to_admin_menu option for modeladmin (#8634) 2022-06-20 14:10:18 +01:00
Nick Smith
db7a0c96e3
Add Fuzzy() search query class (#8498) 2022-06-20 10:41:05 +01:00
Noble Mittal
0be024e024 documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
Tibor Leupold
adc2ea6a86
Use RichText object for adding rich text blocks (#8675)
I have just tried to follow the original instructions and got an `AttributeError: 'str' object has no attribute 'source'` when trying to append a rich text block to a `StreamField` programmatically. 

Wrapping the value in a `RichText` object solved the issue. This seems to be in line with the behavior described further down the page.
2022-06-16 16:06:09 +02:00
Hugh Rawlinson
8e4a4fae5d Add release dates to release notes (#8692)
Fixes #8691

* Add dates to markdown based release notes
* Add dates to rst based release notes
2022-06-16 14:04:18 +02:00
Nick Moreton
eec8c0088d
Update example code - Adding a group of menu items (#8683) 2022-06-16 12:01:06 +02:00
Yves Serrano
e2e356d0ae use an empty list instead of [None] if revision.user doesn't exists fixes #7879 (#8685) 2022-06-16 11:46:01 +02:00
Karl Hobley
996866fc06 Changelog/release note for #8686 2022-06-16 10:10:00 +01:00
Matt Westcott
9e7e2fa9e5 Fill in release date for 3.0.1 2022-06-16 10:48:40 +02:00
Sævar Öfjörð Magnússon
e660326075
Adding multi site support to the pages API. (#8686) 2022-06-16 09:33:47 +01:00
LB Johnston
b0eb471c19 update changelog for #8676
move items to 3.0.1 only
2022-06-16 06:50:44 +10:00
LB Johnston
1bc37f791c add changelog for #8676 2022-06-16 06:42:06 +10:00
Jaspreet-singh-1032
c7a0d6ef95 show different message if no page_type available (#8672)
Fixes #8173
2022-06-15 14:39:50 +02:00
PaarthAgarwal
8c2c4a1098 Add new breadcrumbs to page explorer
- added test and updated existing test for breadcrumbs-next
- fix background issue so that the breadcrumbs work correctly on any background
2022-06-15 17:27:33 +10:00
Matt Westcott
cba208bfe8 Release note for #8680 2022-06-14 15:59:13 +02:00
Matt Westcott
cb43536f07 Release note for #8668 2022-06-13 17:00:29 +01:00
Matt Westcott
a86a89e803 Update release notes to reflect #8494 being backported to 3.0.1 2022-06-13 15:46:18 +01:00
Matt Westcott
1e385572cc Remove release notes in 4.0 for things backported to 3.0.1 2022-06-13 15:36:09 +01:00
Matt Westcott
4f1da06bb7 Use original wording for 3.0.1 release notes 2022-06-13 15:35:04 +01:00
Matt Westcott
ac2a190543 Release notes for 3.0.1 2022-06-13 15:32:00 +01:00
PaarthAgarwal
25b82aef76 Removed breadcrumbs next's reliance on data-slim-header
- fixes #8644
2022-06-13 21:24:38 +10:00
LB Johnston
73a79fd394 add changelog for #8662 2022-06-12 15:51:45 +10:00
Matt Westcott
372965ef6a Put headers in markdown rather than rst 2022-06-12 15:47:24 +10:00
Matt Westcott
865df1153b Documentation for ChooserViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott
b00d19b3a0 Documentation for ModelViewSet 2022-06-12 15:47:24 +10:00
Matt Westcott
b4d3cf1c30 Docs for base ViewSet class 2022-06-12 15:47:24 +10:00
Stefan Hammer
46977d6442 Ignore common places for tests from makemessages
This also replaces some of the existing tweaks, which avoided strings
getting parsed by makemessages.
2022-06-12 15:34:39 +10:00
LB Johnston
2abe439064 ensure non-square avatar image will correctly overlay content
- fixes #8428
2022-06-12 15:26:11 +10:00
LB Johnston
06bf71296c redirects import page does not need header search JS
- relates to #7053
2022-06-12 15:23:59 +10:00
Lucie Le Frapper
1297b930e5 add accessible label for image focal point chooser input
- fixes #5309
2022-06-10 08:14:03 +10:00
Sage Abdullah
052115f261 Fix locale selector background color
- fixes #8588
2022-06-10 07:38:20 +10:00
Steve Steinwand
ab92256b09 Fix sidebar rtl styles, add wagtail branding module to sidebar stories
- fixes #8641
2022-06-09 22:03:03 +10:00
PaarthAgarwal
1c3ae1ae92 Add tabs to pattern library
- Added tabbed interface to pattern library (storybook)
- Added tab nav link to pattern library (storybook)
- fixes #8632
2022-06-09 21:32:24 +10:00
Thiago Costa de Souza
f42ec9ed6b convert documentation in advanced_topics from rst to md
- relates to #8383
2022-06-09 20:32:56 +10:00
BenedictFaw
952e57b916 Migrate docs for StreamField from md to rst
- relates to #8383
2022-06-09 20:21:50 +10:00
Sage Abdullah
bd04b631b4 Make ReportView extend from generic IndexView 2022-06-09 20:06:17 +10:00
PaarthAgarwal
764d3bc1fd Adopted new Tabs in Workflow History Detail page
- resolves #8562
2022-06-09 17:32:47 +10:00
PaarthAgarwal
dce74375d7 added new breadcrumbs to pattern library (storybook)
- resolves #8631
2022-06-09 17:23:30 +10:00
Matt Westcott
a3b1cb6c28 Add a page_type_display_name shortcut property 2022-06-08 17:35:40 +01:00
Thibaud Colas
4eb35dbc0a Refactor styles to be loaded via single core.css file (#8419) 2022-06-07 13:26:58 +01:00
PaarthAgarwal
1f43d8ef51 Ensure TabbedInterface will not show a tab if no panels are shown
- If no panels show (due to permissions) the tab was still showing
- instead it is expected that the tabs should not show at all if empty
2022-06-02 22:12:55 +10:00
Stefan Hammer
c2e366600f Add missing can_reorder_children() check, fixes #8458
Users which weren't allowed to reorder child pages (e.g. due to missing
"publish" permission), still saw the menu item to start reordering.
2022-06-02 08:26:31 +10:00
LB Johnston
d253f4784f migrate Home (dashboard) to class based view
- resolves #8366
2022-06-02 08:17:37 +10:00
LB Johnston
fd5218220e form builder - allow clean_name generation to be overridden
- adds a new class method to AbstractFormField `get_field_clean_name`
- resolves #6903
2022-06-02 08:07:24 +10:00
LB Johnston
6d0659333d fix spelling - behaviour vs behavior
- documentation should be using the British english spelling
- most other spelling is `behaviour` so this aligns with the majority
2022-06-02 07:56:05 +10:00
Tidiane Dia
25c43273a9 Add docs and releases notes for prefetch_renditions method
Also add tests to ensure example in docs works fine.
2022-06-01 16:51:35 +01:00
jacobtoppm
ec649331a3 Release notes for #8590 and #8430 2022-06-01 16:51:33 +01:00
Tidiane Dia
ffa4530d1e Update screenshots in the editor guide's section for images 2022-06-01 16:50:25 +01:00
Steve Stein
910844eb30
Implement redesign of the Workflow Status dialog, fixing accessibility issues. Fix #8476 (#8538)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-06-01 16:21:11 +01:00
LB (Ben Johnston)
0012c344d9
auto-format core markdown files (#8603)
- clean up formatting on existing martkdown files to align with prettier
2022-06-01 23:08:56 +10:00
Paarth Agarwal
1a49cae272
make integration tests' documentation more clear (#8608)
* updated integration test documentation
2022-05-30 20:06:34 +10:00
Dan Swain
b53f12d394 Include missing import of FieldPanel 2022-05-28 06:40:25 +10:00
Thiago Costa de Souza
e6865e7b0f documentation - migrate advanced_topics/customisation/** to md 2022-05-27 08:02:16 +10:00
Thiago Costa de Souza
4424d23fa4 documentation - migrate advanced_topics/images/** to md 2022-05-27 07:51:45 +10:00
LB Johnston
52e87968e2 fix up changelog entry for #7752
- release number is the same but the link is now adaptive
2022-05-27 07:25:30 +10:00
Tibor Leupold
4f5d688021 Add ability for upgrade notification to show the relevant release to the user
This now implements the logic to link to the next minor's release notes
when such a version difference is computed. If a patch release
difference is computed, then those release notes are linked.

The utils.tests.js seemed a bit unexpected location, because there is no
`utils.js` module. Now the module defining the tests and the one
defining the functionality are named similarly, as is common in the rest
of the code base.

- resolves #7336
- resolves #7405
- resolves #3938
- fixes #8537

Fix issue where upgrade notification was not using translated content.
2022-05-26 19:57:46 +10:00
sag᠎e
f4d5207fbd
Use GenericForeignKey and GenericRelation for Revision (#8571) 2022-05-26 00:08:30 +01:00
Hitansh Shah
f8a7c6f4ae Added functionality in bulk actions: ability to use shift+click to select multiple items at once
- Signed-off-by: Hitansh Shah <shah.hitanshsanjay.mat20@itbhu.ac.in>
- resolves #8490
2022-05-25 21:45:12 +10:00
Thiago Costa de Souza
7e73349dc1 documentation - migrate api section to markdown 2022-05-25 21:01:38 +10:00
Stefan Hammer
906dfa2773 Added missing gettext calls to the CommentComponent 2022-05-25 20:45:09 +10:00
LB Johnston
115879c519 add changelog for #7897 2022-05-25 19:34:52 +10:00
LB Johnston
46efee9eeb add changelog for #8532 2022-05-25 19:02:46 +10:00
LB Johnston
48d397f74f Add changelog for #8501 2022-05-25 17:07:55 +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
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
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
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
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
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
LB Johnston
f220d45e32 Add Wagtail 3 classifier to documentation 2022-05-08 19:27:51 +10: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
Matt Westcott
e4d563e492 Fix typo in BoundPanel subclassing example 2022-05-03 11:26:36 +01:00
Thibaud Colas
d2aefa547c
Re-add Pages explorer focus trap. Fixes #8035 (#8447) 2022-04-29 11:33:29 +01:00
Matt Westcott
d308d6930a Ensure wagtail updatemodulepaths works when system locale is not UTF-8 (#8450)
Prompted by https://github.com/wagtail/wagtail/discussions/8362#discussioncomment-2647505 - Python files are expected to be in UTF-8, but `open()` will use the system default encoding, which is likely to be Windows-1252 on Windows. Unfortunately [fileinput](https://docs.python.org/3/library/fileinput.html) doesn't provide an encoding argument until Python 3.10, so we have to over-engineer things a bit to keep things consistent across the rewrite / list / diff modes - opening files in binary mode and explicitly decoding each line as utf-8 (with graceful fallback behaviour on UnicodeDecodeError, so that we don't end up clobbering a file mid-write).
2022-04-29 09:38:27 +01:00
LB (Ben Johnston)
54daa01116
3.0 - add JSON1 SQLite compatibility requirements (#8433) 2022-04-26 13:22:03 +01:00
Thibaud Colas
1cd784adb7 Add basic "multilingual support" section 2022-04-23 01:05:27 +01:00
Thibaud Colas
eedc7fb11c Convert Developing page to Markdown 2022-04-23 01:05:27 +01:00
Thibaud Colas
48e080965b Move JavaScript guidelines to the same page 2022-04-23 01:05:27 +01:00
Thibaud Colas
949362e802 Move HTML and CSS guidelines to a single "UI guidelines" page 2022-04-23 01:05:27 +01:00
Matt Westcott
37784643e9 API docs for Panel 2022-04-22 17:25:30 +01:00
Matt Westcott
06abc49712 Add documentation for the panel rendering mechanism 2022-04-22 17:25:30 +01:00
Matt Westcott
262e94401a
Housekeeping to start work on 4.0 (#8420)
* Add release notes page for 4.0

* Version bump to 4.0

* Rotate deprecation warnings
2022-04-22 14:25:16 +01:00
Matt Westcott
86aa38329d
Fix release notes and updatemodulepaths to cover coreutils module rename (#8396)
Fixes #8376
2022-04-20 17:42:34 +01:00
Paarth Agarwal
da78e0f449 added full_url field for image rendition field api
- resolves #7558
2022-04-20 07:08:24 +10:00
Dan Swain
484ca159d2
Change 2.17 reference to 3.0 (#8389)
There will not be a 2.17 release
2022-04-19 16:56:51 +01:00
Vu Pham
68287e97e1 Add base_url_path functionality to ModelAdmin
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- adds ability to set `base_url_path` on ModelAdmin to override the `app_name`/`model` URL building behaviour
- fixes #8038
2022-04-18 14:32:18 +10:00
Simon Krull
4f3ec696ff Fix minor typo in the documentation - third party tutorial 2022-04-18 08:26:22 +10:00
luz paz
5c894345b9 Fix various user-facing and non-user-facing typos
- Found via `codespell -q 3 -S *.po,*.js`
2022-04-18 08:18:03 +10:00
Daniel Kirkham
c877bf9886 convert various documentation pages to Markdown
- Removes use of topic:: in docs as this directive is not needed
- resolves #8323
2022-04-18 08:16:27 +10:00
Karl Hobley
b48e1c083c
Update myst_parser to v0.17.2 (#8380)
To resolve issue with the removed `attrs` module.

See: https://github.com/executablebooks/MyST-Parser/pull/557
2022-04-17 17:57:30 +01:00
Dan Braghis
4cc10322a1
Sync tree: cascade unpublish, move and delete (#7984)
* Add construct_synced_page_tree_list hook and use in page unpublish view

* Implement construct_synced_page_tree_list in simple_translation

but only when sync page tree is enabled

* Add hook documentation

* Add construct_synced_page_tree_list hook tests (#8058)

* Move translated and alias pages when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are enabled

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Delete corresponding translations when WAGTAIL_I18N_ENABLED and WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE are true

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>

* Rename the hook to be more specific

* Update singular string version in confirm_move.html

* Update test test_translation_count_in_context

Co-authored-by: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-17 17:34:38 +01:00
Andy Babic
0c1ecc35f1
Add guidance on rendition prefetching to docs (#8363) 2022-04-16 11:18:23 +01:00
Matt Westcott
f5919513d5 Cut down release note for image prefetching and add changelog entry 2022-04-14 12:56:04 +01:00
Andy Babic
7838e58095 Update release notes 2022-04-14 12:12:23 +01:00
Andy Babic
2d5571f316 Include the new methods in the docs 2022-04-14 12:12:23 +01:00
Matt Westcott
6d2dcee4b9
Remove a stray reference to ChooserPanels (#8360)
These are no longer required in Wagtail 3
2022-04-14 11:09:31 +01:00
Matt Westcott
cdeb1cf479
Add use_json_field=True to all StreamField examples (#8359)
This argument should be used on all new StreamFields created under Wagtail 3. It does add some clutter to the examples, but only using it in select cases would create more confusion...
2022-04-14 11:09:19 +01:00
Rishank
7861014316 add Monospace system UI font stack
resolves #8043

ui-monospace, Menlo, Monaco, ... "Courier New", monospace

Operating Systems and their fonts:
ui-monospace -> MacOS (Menlo, Monaco fallback)
Cascadia  ->Windows (since Vista)
Roboto -> Android (since 4.0)
Fira -> Firefox OS
Droid -> Android (<4.0)
Oxygen -> KDE
Ubuntu -> Ubuntu
In addition, ui-monospace is supported for Safari/MacOS (only way to access SF Mono in Mac);

Cascadia is a new Microsoft font-face, and Segue is the fallback.
2022-04-14 19:44:29 +10:00
jacobtoppm
d9aaf8e581 Changelog and release notes for image deduplication 2022-04-13 17:59:51 +01:00
Matt Westcott
90307f9deb Add upgrade note for removal of panel types 2022-04-13 15:44:26 +01:00
Matt Westcott
7223fd2b4e Release note for #8317 2022-04-13 15:40:07 +01:00
Matt Westcott
d63801b533 Update release note for page editor redesign 2022-04-13 14:46:05 +01:00
LB Johnston
edf881e4ea 3.0 release notes - move 'fix' to fix section 2022-04-13 23:41:54 +10:00
Jake Howard
59f901fb82 Use JSONField to store form submissions 2022-04-13 23:40:56 +10:00
Abdul
1822d7eee2 display help text message for tag field
- resolves #1874
- ensure message is dynamic based on the setting TAG_SPACES_ALLOWED
- Update wagtail/admin/templates/wagtailadmin/widgets/tag_widget.html
2022-04-13 13:37:30 +10:00
Steve Stein
f323d88765
Move page meta information from the header to a new status side panel component inside of the page editing UI (#8285)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-13 03:21:51 +01:00
Matt Westcott
bd3efa40cb Reorganise 3.0 upgrade consideration notes 2022-04-13 08:36:08 +10:00
Steve Stein
629ced01ca
Page editor underline tabs (#8266)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-12 16:11:08 +01:00
Matt Westcott
be6526e95d Release note for #8271 2022-04-12 13:09:59 +01:00
Matt Westcott
8f3fdc5365 Fill in release date for 2.16.2 2022-04-11 15:59:07 +01:00
Matt Westcott
31fc598b2f Release note for #8298 in 2.16.2 2022-04-11 15:58:40 +01:00
Matt Westcott
999e745de5 Fill in release date for 2.15.5 2022-04-11 14:39:59 +01:00
Matt Westcott
93e92c1528 Release note for #8328 in 2.16.2 2022-04-11 13:12:16 +01:00
Matt Westcott
d42eb4ed01 Release note for #8302 in 2.16.2 2022-04-11 10:28:49 +01:00
Dan Braghis
13b60a2688 Update changelog/release notes for 2.15.5 and 2.16.2 backports 2022-04-10 10:10:08 +01:00
AndresMRM
483b7d27b3 Add internationalisation UI to modeladmin
Includes changes from #6230

Co-Authored-By: Dan Braghis <dan@zerolab.org>
2022-04-10 09:17:41 +01:00
John-Scott Atlakson
e7758d58cb Automatically ignore GenericRelation when copying pages 2022-04-10 09:00:06 +01:00
Abdul
134bd19bef add ability for form builder to split choices by newline
- fixes #3001
- keep support for comma separated lists if supplied
2022-04-09 22:30:10 +10:00
Dan Braghis
54e9d09421 Release notes for #8161 2022-04-08 17:47:10 +01:00
Steve Stein
8bbf41627b
Implement new slim page editor header with breadcrumb (#8231)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Karl Hobley <karl@kaed.uk>
2022-04-08 17:36:47 +01:00
Thibaud Colas
a34e267b9d Add release notes for #8310 2022-04-08 11:51:09 -04:00
Thibaud Colas
4dc5f3c595 Remove legacy sidebar, refactoring slim sidebar implementation 2022-04-08 11:51:09 -04:00
John-Scott Atlakson
38f2e0b5b5 Fix page copy in Wagtail admin ignores exclude_fields_in_copy 2022-04-08 10:01:17 +01:00
Coen van der Kamp
5c31aad368 Pin sphinx-wagtail-theme==5.1.1 2022-04-08 09:10:22 +10:00
Coen van der Kamp
7edb577d94 Pin sphinx-wagtail-theme==5.1.0 2022-04-07 18:53:52 +01:00
Kevin
0ed4375c3d Fixes incorrect link to Wand docs 2022-04-07 16:20:43 +01:00
Kyle J. Roux
844efa696a Ensure thumb_col_header_text is used by ThumbnailMixin correctly
- fixes #8269
because you cannot dynamically set attributes on bound methods, we need to update the current classes version of admin_thumb so it can be accessed in sub classes
2022-04-08 00:23:45 +10:00
Hitansh Shah
0b8a8c2024 Added image management command to purge and regenerate renditions
- resolves #8107
2022-04-07 23:57:44 +10:00
eevel
1c7c5cfc0b Allow specifying an alternative storage backend for image renditions
- add setting `WAGTAILIMAGES_RENDITION_STORAGE`
- add AbstractRendition file storage to use new setting
- resolves #3183
2022-04-07 23:33:46 +10:00
LB Johnston
7d3ee400fe 3.0 release notes - fix heading 2022-04-07 23:28:03 +10:00
Jake Howard
5522769a9c Validate to and from addresses on email form
This will result in a migration, but the migration from a `CharField` to an `EmailField` won't hit the database, as `EmailField` is just a `CharField` with extra default validation.
2022-04-07 22:52:12 +10:00
LB Johnston
5f4942f9ad documentation - fix broken docs references
- remove 2.16 reference to setting that no longer exists
2022-04-07 12:52:03 +01:00
Caio Jhonny
21202e421e Add missing import django models (#8301)
Django models need to be imported
2022-04-07 12:18:37 +01:00
Matt Westcott
096ab2a8b4 Release note for #8059 in 2.16.2 2022-04-06 19:26:39 +01:00
Matt Westcott
7f46688741 Fix banner date logic
Months in `new Date(y, m, d)` are 0-based, just to be awkward
2022-04-06 18:01:54 +01:00
Matt Westcott
ad64ac3e91 Release note for #8292 2022-04-06 17:39:50 +01:00
Matt Westcott
d65d10d3de Release note for #8293 2022-04-06 17:38:44 +01:00
Matt Westcott
c732b2bedd Add upgrade note about dropping Jinja2 2.x support 2022-04-06 14:13:32 +01:00
Matt Westcott
db6e0adbc0 Add Jinja2 note to 2.16.2 release notes 2022-04-06 13:21:37 +01:00
Matt Westcott
84605d8b88 Add 2.15.5 release notes 2022-04-06 13:21:33 +01:00
Sandil Ranasinghe
cb7fc4cb14 Rename BASE_URL to WAGTAILADMIN_BASE_URL & add docs
- add documentation for WAGTAILADMIN_BASE_URL
- ensure that WAGTAILADMIN_BASE_URL is used via a util so that it can fallback from request
- resolves #3248
- remove settings URL from pagination template - not required for query string URLs
2022-04-06 19:43:46 +10:00
vuph
5ac259f682 Add ValidationError for tags with more than 100 characters
- Co-Authored-By: Khanh Hoang <39248704+thoang43@users.noreply.github.com>
- Add max_tag_length field to avoid hard coding 100
- fixes #4564
2022-04-06 07:39:17 +10:00
Abdul
9007bda686 documentation - add admin tag manager doc
- add documentation that describes how to use `ModelAdmin` to manage tags
- resolves #1220
2022-04-06 07:21:34 +10:00
Matt Westcott
c8564b0be4 Upgrade notes for #8115 / #8123 2022-04-05 22:07:59 +01:00
ShwetKhatri2001
177f005a20 documentation - migrate editor's guide to markdown from RST
- resolves #8106
2022-04-06 06:48:43 +10:00
saurabh
a641057fc2 fixed the errors in deploying.rst and i18n.rst 2022-04-04 06:48:02 +10:00
PaarthAgarwal
1d22985912 Fix issue where normalize.css would introduce font issues
- global font family on some elements set by normalize.css would override the desired font
- font stack was not correctly used across some elements
- fixes #8016
2022-04-03 22:27:09 +10:00
talkshrey
7f7fd15831 docs - fix spacing added between -m and http command
- see #8257
2022-04-03 22:12:04 +10:00
anujaraj
f3720a7652 Fix missing translations in workflow templates
- fixes #8214
- see #8240 & #8238
2022-04-03 22:03:50 +10:00
James Ray
2cae3083f5
Add missing lang attributes to <html> elements. Fix #8212 (#8220)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-01 23:50:47 +01:00
Harris Bard Lapiroff
1adc82c044
Add trimmed to blocktrans tags. Fix #8217 (#8226) 2022-04-01 23:16:51 +01:00
Jesse Menn
5eeb8cca40
Stop skipping heading levels in Wagtail welcome page (#8223)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-01 22:30:55 +01:00
Matt Westcott
113005aa05
Page description (#8164)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Co-authored-by: Kalob Taulien <kalob.taulien@gmail.com>
2022-04-01 22:16:41 +01:00
Thibaud Colas
34cd9e2aaa Code review cleanup 2022-04-01 17:01:26 -04:00
Andy Chosak
00adeb8cf2 Fix bulk publishing of pages without revisions
Currently bulk publishing raises an error if you include pages that
exist in the database without any revisions. This commit ensures
that a revision exists before the page is published.

Fixes issue 8187.
2022-04-01 14:50:53 -04:00
Saurabh
a70aefe243
fixed punctuation issues and modified text in wagtail documentation. (#8262) 2022-04-01 17:12:57 +01:00