0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

4206 Commits

Author SHA1 Message Date
Sage Abdullah
4d27fd1f54 Add docs for saving draft changes of snippets 2022-08-21 07:18:27 +10:00
Sage Abdullah
9407be3d24 Add docs for saving revisions of snippets 2022-08-21 07:18:27 +10:00
Sage Abdullah
a3255c1ee9 Add docs for making snippets previewable 2022-08-21 07:18:27 +10:00
Sage Abdullah
cc0e14c38d Improve snippets usage guide
- Use sentence case for headers in snippets usage guide
- Fix broken link to Django custom template tags
2022-08-21 07:18:27 +10:00
Matt Westcott
5ec55fd474 Release note for #8973 in 4.0 2022-08-19 11:29:56 +01:00
Matt Westcott
5713d57692 Release notes for #8940 and #8973 in 3.0.2 2022-08-19 11:29:49 +01:00
PaarthAgarwal
520dfa8005 Ensure screen readers are made aware of page level messages
- when added dynamically to the top of the page
- already added to the authentication pages via #8925
2022-08-19 17:48:18 +10:00
Matt Westcott
1504eb7812 Fix dead Transifex links 2022-08-19 17:28:31 +10:00
Thibaud Colas
1fcf4cacbb
Add more items to 4.0 release notes (#9032) 2022-08-18 08:47:30 +01:00
Matt Westcott
9aeb2e3e49 Ensure telepath adapter gets registered for document chooser widget
Fixes #9010. `wagtail.documents.widgets` is no longer reliably imported on startup now that the chooser widget is constructed within wagtail.documents.views.chooser instead, so the telepath adapter wasn't getting register. This meant that DocumentChooserBlocks in StreamField were using the base chooser implementation, which didn't include customisations such as populating the title field from the file upload field. Fix this by making ChooserViewSet responsible for registering the telepath adapter.
2022-08-17 18:24:18 +01:00
Matt Westcott
cc4675aa5e Use correct classnames for showing/hiding edit button on chooser widget
Fixes #9008
2022-08-17 07:50:29 +10:00
Stefan Hammer
3bf4a0693c Fixed init method of legacy BaseSetting class
The "return" statement was only a minor improvement, the breaking code was the passed "self" argument.

- fixes #8996
- fixes #9006
2022-08-17 07:45:31 +10:00
Matt Westcott
b4bc681865 Fix DocumentChooserBlock deconstruction for custom document models
Fixes #8989. The previous fix #9004 failed for custom document models because ChooserViewset assigns an internal name for the ChooserBlock class based on the model name, and if this is anything other than Document it won't match the name DocumentChooserBlock that it's exposed under in wagtail.documents.blocks. Fix this by replacing the `block_class` property with a `get_block_class` method that lets us specify the class name. As a bonus, user code that defines chooser blocks no longer has to directly hack the `__module__` attribute.
2022-08-16 20:50:04 +01:00
LB Johnston
666cc5e8e5 fix up legacy release note refs & use consistent format
- fix some broken refs that were lost in the migration to markdown files
- use lower_snake_case for all internal refs (most follow this convention)
- release process sub-section in docs should be named release schedule instead
2022-08-16 12:42:42 +01:00
LB Johnston
401e84dfd9 fix various typos and backtick usage in 4.0 changelog/release notes
- adds a ref to the new setting added for `WAGTAILADMIN_UNSAFE_PAGE_DELETION_LIMIT` - see #8703
2022-08-16 12:36:46 +01:00
LB Johnston
23ee3d8924 add changelog for #9000 2022-08-16 07:58:28 +10:00
Sage Abdullah
e4509f3432 Improve Revision model docs 2022-08-16 07:58:28 +10:00
Sage Abdullah
e864b9c4d1 Add docs for PreviewableMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
fb6ec3ad00 Add docs for DraftStateMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
cf3cea9a5b Add docs for RevisionMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah
3151200288 Improve Page model reference documentation
- Use inline code for `Locale` and `TranslatableMixin` headers to be consistent with other classes in the page
- Move `locale` and `translation_key` of `TranslatableMixin` to its own "Database fields" section
- Add missing periods in Page.update_aliases parameter description
2022-08-16 07:58:28 +10:00
LB Johnston
92204aa0bb add changelog for #8993 & #9005 2022-08-16 07:37:30 +10:00
Matt Westcott
a6a94a9a04 Ensure DocumentChooserBlock can be deconstructed for migrations
Fixes #8989. Now that DocumentChooserBlock is constructed dynamically via wagtail.documents.viewsets.chooser, we need to explicitly set its `__module__` attribute so that the result of calling `deconstruct()` for migrations points back to the wagtail.documents.blocks module.

Also update the documentation for defining custom choosers, and add tests for deconstructing the other chooser blocks.
2022-08-15 15:38:54 -04:00
Thibaud Colas
ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
Sage Abdullah
2d23aea9bd Create new UnpublishView for reuse outside of pages 2022-08-12 14:00:59 +02:00
LB Johnston
51dfcd2fd9 changelog entry for #8873 2022-08-12 17:35:42 +10:00
LB Johnston
3e6e9eb618 update docs/test spelling of colour 2022-08-12 17:29:16 +10:00
LB Johnston
9321cd9404 documentation - extending generic views - fix typo
- closing ``` (backticks) were missing
2022-08-12 17:20:24 +10:00
Xabier Bello
e29bb7e062 Update images.md
BASE_URL no longer works.
2022-08-12 17:17:33 +10:00
Matt Westcott
e5dd080fce Release note for #8917 2022-08-11 13:45:35 +01:00
LB Johnston
fd9a4a8745 add documentation for overriding the password reset form content
- relates to work done via #8925
- relates to request for override capacity in #2309
2022-08-10 20:32:35 +01:00
Matt Westcott
5de877967d Reword static files docs to fix formatting error 2022-08-10 20:01:17 +01:00
Matt Westcott
61ed6caa57 Add upgrade consideration note for change to BaseSetting 2022-08-10 19:56:57 +01:00
Matt Westcott
29d564c238 Release note for #6411 2022-08-10 19:42:00 +01:00
LB Johnston
4151b8ae21 add changelog for #8964 2022-08-10 15:15:20 +10:00
LB Johnston
41db4c62c4 add changelog for #8934 2022-08-10 15:08:57 +10:00
Thibaud Colas
21b5ad5ce9 Update chooser styles across all types 2022-08-10 15:08:57 +10:00
LB Johnston
8068d6f233 add changelog for #8820 2022-08-10 14:53:41 +10:00
Matt Westcott
f9fe6d0ca8 Documentation for generating chooser blocks via ChooserViewSet 2022-08-10 14:53:41 +10:00
Matt Westcott
161dd69c8a Implement generating a StreamField ChooserBlock from ChooserViewSet 2022-08-10 14:53:41 +10:00
Akash-Kumar-Sen
46bb760319 Ensure page explorer header item aligns with toggle on sm device
- fixes #8939
2022-08-09 21:29:20 +10:00
Akash Kumar Sen
71dfb4090b fix overlapping of report filters/table & form submissions
- as of 3.0 - report filters would overflow the viewport in Wagtail
- fix layout issue with form submission lists introduced with filtering changes
- remove invalid css grid-column-start (unused)
- adopt theme variables for all main spacing instead of hard-coded em/rem/px values
- fixes #8929
2022-08-08 22:05:01 +10:00
tijani
61f6aeeb1a Add path & re_path pattern types for RoutablePageMixin
* Modified route decorator so it adds new route to view depending on pattern type; default to path
* Made a separate decorator
* Renamed route to path and updated RoutablePage models
* Added a check to warn user when using regex with path decorator
* Made @route alias of @re_path, added tests for @re_path
* resolves #7031
2022-08-08 20:09:38 +10:00
anujaraj
3576e27ab0 added border to tooltip dropdown for high contrast & fix arrow
- fixes #8830
2022-08-06 23:07:01 +10:00
LB Johnston
c731369bfe changelog - add additional fix mapped against #8925 2022-08-06 22:13:05 +10:00
LB Johnston
c9248725e2 add changelog for #8948 2022-08-06 21:56:48 +10:00
Akash-Kumar-Sen
827bcf3dbf Documentation - improve organisation of settings reference #8950
- fixes #8863
2022-08-06 21:20:22 +10:00
LB Johnston
167b4c9302 changelog entry for #8925 2022-08-06 19:06:19 +10:00
PaarthAgarwal
d2529cad92 Restyling all log in & password reset flow pages
- add id=main to all login flow form templates for non-JS skip link usage
- remove inline script to focus on username field in login form
- adopt a consistent DOM layout for all log in & password reset flow forms
- ensure h1 is at the top of the DOM in all forms
- add wagtail logo to sign in form and document the ability to override it
- fixes #2309
2022-08-06 19:06:19 +10:00
Thibaud Colas
eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00