0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
Commit Graph

12620 Commits

Author SHA1 Message Date
Thibaud Colas
14280ad7ea
Convert all UI code to CSS logical properties (#8051)
- Rewrite all styles to use logical properties
- Update Stylelint configuration to include logical properties checks
2022-03-15 13:21:06 +00:00
Nicolas Ferrari
11e7936562
Add alwaysdata among Cloud providers in documentation (#8070)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:29:59 +00:00
PaarthAgarwal
4b07e4214a
Remove most uppercased text styles from admin UI. Fix #7624 (#8111)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:07:07 +00:00
PaarthAgarwal
6a84cf4583
Switch focus outlines implementation to :focus-visible for cross-browser consistency. Fix #7994 (#8113)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 11:33:12 +00:00
LB Johnston
7067c81604 update release notes for #8101
- As this is only a dev/testing dependency, and declaring the dependencies that you use directly is likely standard knowledge
- if anyone does overlook it, it'll presumably fail in an obvious and easily fixed way
- see 8ac683ef5c (r68486362)
2022-03-15 08:12:17 +10:00
LB Johnston
8ac683ef5c add changelog entry for #8101 2022-03-11 15:21:47 +00:00
Thibaud Colas
fc0f76ea9d Switch from jinjalint to curlylint 2022-03-11 15:21:47 +00:00
Thibaud Colas
855486157b Make sure CircleCI build installs all dependencies 2022-03-11 15:21:47 +00:00
Thibaud Colas
4c2f160736 Remove docutils pin 2022-03-11 15:21:47 +00:00
Thibaud Colas
c5aa326565 Switch to Markdown tables for documentation 2022-03-11 15:21:47 +00:00
Thibaud Colas
a21490bb37 Improve spacing in new Sphinx output 2022-03-11 15:21:47 +00:00
Matt Westcott
06eb4c2afd Use released django-modelcluster when testing against Django main
django-modelcluster 5.3 now ships with the provisional Django 4.1 compatibility fix.
2022-03-11 14:30:29 +00:00
LB Johnston
4db71de5a2 add release notes for #8084 2022-03-10 19:21:34 +10:00
LB (Ben Johnston)
e3b6e79a8e
Documentation - migrate form builder docs to markdown (#8007)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-10 08:43:49 +00:00
LB (Ben Johnston)
6ed65f14c6
Move Markdown docs to MyST parser. Fix #8074 (#8084) 2022-03-09 11:48:19 +00:00
LB (Ben Johnston)
58a8a31dd6
docs - add third party tutorials Jan/Feb 2022 (#8067) 2022-03-09 09:19:43 +00:00
LB (Ben Johnston)
f342e073ce Revert "Readme - add badges"
This reverts commit 3d15d2db05.
2022-03-09 06:50:16 +10:00
Steve Stein
5996c5dd29
Switch icons implementation to SVG, with checkbox improvements (#8054) 2022-03-07 17:06:19 +00:00
LB (Ben Johnston)
3d15d2db05 Readme - add badges
Add badges to the readme for Python package info, licence and code tests passing.
2022-03-06 13:10:56 +10:00
Steve Stein
07ee733bbe
Page Editor Improvements: TypeScale configuration (#8064). Fix #7982
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-04 22:55:24 +00:00
Andrii Oriekhov
56a79091b3
Add GitHub URLs for PyPI (#8071) 2022-03-04 16:12:54 +00:00
Matt Westcott
177bc53aa0 test Django main against django-modelcluster and django-taggit main branches, now that fixes have been merged 2022-03-04 16:07:22 +00:00
LB (Ben Johnston)
70aabb5d34
Refine documentation for show_in_menus (#8072)
- this appears to be a point of confusion, where developers are unsure what this field does
- this update makes it more explicit that this field does not do anything, except the queryset usage, by default
2022-03-04 14:34:21 +00:00
Matt Westcott
ef2fa2e394 Release note for #7684 2022-03-02 15:56:06 +00:00
Matt Westcott
92cc026694 Rename docs page to 'Using forms in admin views' 2022-03-02 15:55:25 +00:00
Matt Westcott
bd8d48be96 Use ObjectTypeRegistry for log entry model registry 2022-03-02 15:55:25 +00:00
Matt Westcott
37fe7ae035 Use ObjectTypeRegistry for AdminURLFinder 2022-03-02 15:55:25 +00:00
Matt Westcott
983402d1ad Extract a get_by_type method 2022-03-02 15:55:25 +00:00
Matt Westcott
79a5072a02 Refactor out a general ObjectTypeRegistry from ModelFieldRegistry 2022-03-02 15:55:25 +00:00
Matt Westcott
f619316003 Add upgrade consideration note for third-party packages implementing their own panels 2022-03-02 15:55:25 +00:00
Matt Westcott
31139e8b24 Remove references to StreamFieldPanel and ChooserPanels from docs 2022-03-02 15:55:25 +00:00
Matt Westcott
b8fd95ee86 Remove uses of StreamFieldPanel, including the check that you're using it 2022-03-02 15:55:25 +00:00
Matt Westcott
5fe7aef030 Move special case for StreamField not having a comments button from StreamFieldPanel to FieldPanel 2022-03-02 15:55:25 +00:00
Matt Westcott
6169422ba0 Implement id_for_label on BlockWidget so that StreamFieldPanel doesn't have to override it 2022-03-02 15:55:25 +00:00
Matt Westcott
52ca4ebaab Remove stream-field CSS class; use block_field instead 2022-03-02 15:55:25 +00:00
Matt Westcott
f6889cd88e Check render_with_errors method before adding 'error' classname, instead of hard-coding an exception in StreamFieldPanel 2022-03-02 15:55:25 +00:00
Matt Westcott
7884b13a6e Remove ChooserPanel references from tests 2022-03-02 15:55:25 +00:00
Matt Westcott
eeb354ac5b Eliminate references to RichTextFieldPanel, now that it's functionally identical to FieldPanel 2022-03-02 15:55:25 +00:00
Matt Westcott
179a867669 Register comparison classes at the field level instead of overriding get_comparison_class on panels 2022-03-02 15:55:25 +00:00
Matt Westcott
6e34b2fdcc Use an extensible registry for comparison classes 2022-03-02 15:55:25 +00:00
Matt Westcott
3a561aa934 Pull out ModelFieldRegistry as a reusable pattern 2022-03-02 15:55:25 +00:00
Matt Westcott
5960905662 Remove logic for normalising page_type from PageChooserPanel, now it's handled by the widget 2022-03-02 15:55:25 +00:00
Matt Westcott
e5775fdfc0 Allow AdminPageChooser to accept target_models in the same formats allowed by PageChooserPanel's page_type argument 2022-03-02 15:55:25 +00:00
Matt Westcott
45de375a88 Pass the correct target_models argument to AdminPageChooser when FK is to a page subclass 2022-03-02 15:55:25 +00:00
Matt Westcott
786a4a3384 Provide a documented register_form_field_override method for apps to register their own form fields with WagtailAdminModelForm 2022-03-02 15:55:25 +00:00
Matt Westcott
d7353e80a5 Remove widget_overrides definitions from chooser panels
These are no longer necessary now that the correct widgets are selected at the form level.
2022-03-02 15:55:25 +00:00
Matt Westcott
de85f28d96 Add mechanism for WagtailAdminModelForm to select an appropriate widget for a ForeignKey to a specific model
This means that pages, images, documents and snippets will use the approprate chooser widget automatically without having to specify it explicitly in the form definition or use a *ChooserPanel in the edit handler.
2022-03-02 15:55:25 +00:00
Matt Westcott
9651b098f9 Remove override of media property from WagtailAdminModelForm
This has been part of django-modelcluster's ClusterForm since 3.1: https://github.com/wagtail/django-modelcluster/pull/73
2022-03-02 15:55:25 +00:00
Matt Westcott
c14de035ec Remove unused get_chosen_item method from BaseChooserPanel
Removing the test is justified as this isn't a public-facing method; it's just a helper to get the object data onto the template, and the test_render_as_field test already confirms that's working correctly.
2022-03-02 15:55:25 +00:00
Matt Westcott
d6358836f2 Remove redundant render_as_field override from BaseChooserPanel
All built-in choosers use the standard field_panel_field.html template - it's probably been this way since Wagtail 1.0, when choosers got their own Widget classes rather than just being HTML decoration around a HiddenInput. As a result, the additional template context they pass (e.g. self.object_type_name) is redundant. If any third-party chooser panels exist that do need them (which is unlikely, if they just copy the existing ones), they should override render_as_field themselves to pass whatever context they need.
2022-03-02 15:55:25 +00:00