Wykres commitów

660 Commity (f77229da2a0dc93520b9083552d312217382de1a)

Autor SHA1 Wiadomość Data
Matt Westcott c4966e3684 Ensure all panels output their own help_text (#9240)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-09-28 10:54:21 +01:00
Thibaud Colas 735c4616af Add alternative text for all documentation screenshots 2022-09-12 22:00:25 +10:00
Sage Abdullah 5a09034cf2 Add links to topic guide from mixin reference docs 2022-08-21 07:20:30 +10:00
Matt Westcott b824ec026b 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:45 +01:00
Matt Westcott 8e5d5d635f 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:22 +01:00
LB Johnston c579a93eae 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:43:24 +01:00
LB Johnston eada3b4f8b 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:37:41 +01:00
Sage Abdullah 55c1f35ea8 Improve Revision model docs 2022-08-16 07:59:09 +10:00
Sage Abdullah 3ce83f8fe8 Add docs for PreviewableMixin 2022-08-16 07:59:09 +10:00
Sage Abdullah b04607adfb Add docs for DraftStateMixin 2022-08-16 07:59:09 +10:00
Sage Abdullah dc2c5f5d90 Add docs for RevisionMixin 2022-08-16 07:59:09 +10:00
Sage Abdullah 8036fc65f4 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:59:09 +10:00
Thibaud Colas ca7f23d176
Update InlinePanel and StreamField styles for new designs (#8983) 2022-08-12 13:17:40 +01:00
Matt Westcott 61ed6caa57 Add upgrade consideration note for change to BaseSetting 2022-08-10 19:56:57 +01: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
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
Akash-Kumar-Sen 827bcf3dbf Documentation - improve organisation of settings reference #8950
- fixes #8863
2022-08-06 21:20:22 +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
Thibaud Colas 3d96e7fbe7 Implement collapsible and linkable panels
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Thibaud Colas af9b16e93d Re-implement base form field styles based on new page editor designs
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00
Matt Westcott 5521e3b59f Update panel templates for new designs (EditHandler rewrite)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-08-05 10:36:52 +02:00
Matt Westcott 02d836fe3e Make per_page configurable on viewsets 2022-08-05 08:34:14 +10:00
Matt Westcott 9667088e98 Move setting metadata / reindexing into form.save() 2022-08-02 18:53:56 +02:00
PaarthAgarwal 887a259723 added translate button to header actions dropdown, removed all the instances of is_parent
- Fixed failing tests, added check for simple_translations enabled
- resolves #8866
2022-07-26 22:36:35 +10:00
LB Johnston 1849122e5f documentation - update reference/contrib content to markdown 2022-07-23 10:42:06 +10:00
LB Johnston 4169d959fc documentation - rename reference/contrib files to .md 2022-07-23 10:42:06 +10:00
LB (Ben Johnston) aa55457c82
Convert reference pages documentation section to Markdown (#8881)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-20 16:49:25 +01:00
Matt Westcott 8f34e47b68 Note that paragraph / line breaks are not counted toward the limit 2022-07-20 13:59:03 +01:00
Matt Westcott 3fa5eb125c Implement max_length validation on RichTextBlock 2022-07-20 13:59:03 +01:00
LB Johnston c8d1a6b00a documentation - fix a few internal references 2022-07-20 17:30:08 +10:00
LB Johnston 0c9d72669c documentation - fix table of contents issue for pages reference 2022-07-20 17:11:23 +10:00
Dolidodzik b131b4813e replace latin abbreviations with english phrases & updated docs guidelines
- added sub-section to language part of general_guidelines.md
- fixes #8860
2022-07-20 16:11:38 +10:00
Paarth Agarwal 35b5ed350a
Adopt slim header in page listing views (#8792)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-18 18:28:51 +01:00
Matt Westcott d07ff422d8 Documentation and release note for #8703 2022-07-18 15:53:32 +01:00
vupham04 53e2bdbd0d Add option to set name to MenuItems generated by modeladmin (#8553)
Co-authored-by: Alexander Rogovskyy <A.rogovskyy@intershop.de>
2022-07-18 14:44:58 +01:00
Karl Hobley ed239157fd
Release note for #8327 (#8825)
* Delete unused settings.rst

* Release note for #8327

* Use single backticks in changelog/release notes
2022-07-18 13:01:29 +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
Kyle d967eccef2
Add generic settings to compliment site-specific settings (#8327) 2022-07-06 11:01:02 +01:00
Sandeep M A bc0f561240 documentation - migrate reference/pages/theory + index to markdown 2022-07-05 22:05:20 +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
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
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
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
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
LB Johnston c76579fc1e migrate docs contrib redirects & searchpromotions to md
- relates to #8383
2022-06-24 22:01:53 +10:00