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

15230 Commits

Author SHA1 Message Date
Sage Abdullah
d696009a36 Revamp panel types documentation and other docs that reference it
This removes the parameters that come from the base Panel class (e.g.
heading, classname, etc.) from the specific panel types to avoid
repetition. Instead, these parameters are properly documented in the
separate "Panel customisation" section. They are also explicitly listed
in the Panel API reference.
2023-04-18 02:49:04 +01:00
Sage Abdullah
b74f280b47 Allow PageChooserPanel to accept arbitrary kwargs to pass to superclasses 2023-04-18 02:49:04 +01:00
Sage Abdullah
d08ba5ba89 Use widget override's icon for ForeignKey's default FieldPanel icon 2023-04-18 02:49:04 +01:00
Sage Abdullah
eb49f3cdf0 Add docs for FieldPanel's icon parameter 2023-04-18 02:49:04 +01:00
Sage Abdullah
ff1c9c8aa0 Add docs for Panel class parameters and improve class description clarity 2023-04-18 02:49:04 +01:00
Sage Abdullah
b017157818 Fix extraneous period typo in page editing interface docs 2023-04-18 02:49:04 +01:00
Sage Abdullah
1801a10c2f Add default icon for RichTextField and add notes for RegexField 2023-04-18 02:49:04 +01:00
Sage Abdullah
abeb837611 Check for field superclasses to when resolving FieldPanel's default icon 2023-04-18 02:49:04 +01:00
Sage Abdullah
ef23d08a06 Extract default icons into FieldPanel.BoundPanel.default_field_icons 2023-04-18 02:49:04 +01:00
Sage Abdullah
c7b7e18d3c Use db_field to resolve FieldPanel icons
self.bound_field.field refers to the form field instance.

Some model fields share the same form field type by default, e.g. models.TextField uses forms.CharField
2023-04-18 02:49:04 +01:00
Sage Abdullah
30eb23c0cf Uncomment FieldPanel's default icons 2023-04-18 02:49:04 +01:00
Karl Hobley
7f297cd019
Update comment list positioning so that they slide in/out with the sidebar (#8345) 2023-04-18 00:58:14 +01:00
Sage Abdullah
167471b1f7 Allow customising the search_fields and search backend to use via SnippetViewSet (#10290) 2023-04-18 00:06:09 +01:00
Sage Abdullah
3965ceedfa Allow default ordering of Snippets IndexView to be specified via SnippetViewSet (#10276) 2023-04-17 23:58:20 +01:00
Aadi jindal
ed58c692ca Allow Action controller to trigger a redirect
- Migrate site switcher to use Stimulus approach via w-action
- Closes #10035
2023-04-18 08:30:22 +10:00
LB Johnston
37192f847b Fix changelog for #10212 2023-04-18 08:07:54 +10:00
Suyash Srivastava
39fa706ff2 Update ActionController with a click method
- Partial change towards #10167
2023-04-18 08:04:01 +10:00
Suyash Srivastava
e72e454ba5 Migrate autosize jQuery to stimulus controller w-autosize
- Closes #10170
2023-04-18 05:41:00 +10:00
Lovelyfin00
cc23aa6be7 Migrated initDismissibles to a Stimulus controller w-dismissible
- Closes #10166
2023-04-17 23:27:24 +10:00
LB Johnston
39dfa020fe Rename initDismissible to DismissibleController 2023-04-17 23:27:24 +10:00
Albina
935d29e2f5
Accessibility checker outlines feature (#10176)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-17 09:59:55 +01:00
Thibaud Colas
f944d744b4 Release notes for #9755 2023-04-17 09:28:16 +01:00
Thibaud Colas
a13af28aac Fix spacing of TableBlock fields 2023-04-17 09:28:16 +01:00
Thibaud Colas
aa7ce61cef Revise alignment, position, size of StreamField/InlinePanel/RichTextField "Add" buttons 2023-04-17 09:28:16 +01:00
Thibaud Colas
9f47052150 Add target StreamField / InlinePanel nesting highlighting effect with :has 2023-04-17 09:28:16 +01:00
Thibaud Colas
f0a5a16bf6 Implement correct indentation of StreamField and InlinePanel with nesting 2023-04-17 09:28:16 +01:00
Thibaud Colas
859d59b765 Implement vertical alignment of field inputs and panels 2023-04-17 09:28:16 +01:00
Thibaud Colas
9f23b19b17 Rework type scale according to latest designs 2023-04-17 09:28:16 +01:00
Thibaud Colas
e0f9014c91 Add missing w-field__help class to other field markup implementations 2023-04-17 09:28:16 +01:00
Matt Westcott
09fb848288 Release notes for #10271 / #10275 / #10294 2023-04-14 15:38:24 +01:00
Sage Abdullah
9e914dbe87 Remove usage_url and get_usage methods from snippet models
The usage_url can be resolved from the SnippetViewSet,
and the get_usage can be replaced with ReferenceIndex.get_grouped_references_to
2023-04-14 15:35:10 +01:00
Sage Abdullah
885b4783ee Add ReferenceIndex.get_grouped_references_to() method 2023-04-14 15:35:03 +01:00
Sage Abdullah
ff363dee87 Remove get_admin_url_namespace() and get_admin_base_path() from snippet models 2023-04-14 15:34:58 +01:00
Sage Abdullah
1d838fbce0 Make SnippetViewSet extend ModelViewSet 2023-04-14 15:34:02 +01:00
Sage Abdullah
fbd3cca30f Pass SnippetViewSet.get_queryset function as the queryset instead of accessing the viewset directly 2023-04-14 12:34:17 +01:00
Sage Abdullah
87cbf01894 Add docs and tests for overriding SnippetViewSet.get_queryset() 2023-04-14 12:34:11 +01:00
Sage Abdullah
6e6680bd75 Extract BaseSnippetViewSetTests class for custom SnippetViewSet tests 2023-04-14 12:33:59 +01:00
Sage Abdullah
cbcecd0b01 Allow overriding base queryset of Snippets IndexView via SnippetViewSet.get_queryset() 2023-04-14 12:33:50 +01:00
Sage Abdullah
c973f5e118 Split initial logic of generic IndexView's get_queryset to get_base_queryset() 2023-04-14 12:33:39 +01:00
Thibaud Colas
8aa0bf9275 Release notes for #10303 2023-04-14 08:38:01 +01:00
Thibaud Colas
8ee0141361 Update wagtail_icons_table.txt 2023-04-14 08:38:01 +01:00
Thibaud Colas
b307549e3c Use an SVG icon for rich text horizontal line 2023-04-14 08:38:01 +01:00
Thibaud Colas
6866293d4e Styling tweaks for new icons 2023-04-14 08:38:01 +01:00
Thibaud Colas
93732690a3 Update icon visuals to FontAwesome 6, with deprecation warnings for removed icons 2023-04-14 08:38:01 +01:00
Sage Abdullah
dc6c0b0949 Allow overriding SnippetViewSet template prefix 2023-04-13 17:53:58 +01:00
Sage Abdullah
f0857770a7 Do not pass SnippetViewSet into the views and pass template_name instead 2023-04-13 17:53:58 +01:00
Sage Abdullah
b0177333f8 Override get_template_names() to allow WagtailAdminTemplateMixin.template_name to be a list 2023-04-13 17:53:58 +01:00
Sage Abdullah
f2ab3ae774 Add docs and tests for Snippets template overrides 2023-04-13 17:53:58 +01:00
Sage Abdullah
1638695d12 Look for model_index.html before using the generic template for snippets ModelIndexView 2023-04-13 17:53:58 +01:00
Sage Abdullah
0ded23402e Allow template overrides for Snippets views that use generic templates 2023-04-13 17:53:58 +01:00