Move HelpPanel documentation to avoid redefinition of wagtail.admin.edit_handlers module

This commit is contained in:
Matt Westcott 2018-05-15 14:57:07 +01:00
parent 5bd47f46d4
commit 5c1c9a6e2f

View file

@ -91,6 +91,27 @@ FieldRowPanel
A class to apply to the FieldRowPanel as a whole
HelpPanel
---------
.. class:: HelpPanel(content='', template='wagtailadmin/edit_handlers/help_panel.html', heading='', classname='')
.. attribute:: HelpPanel.content
HTML string that gets displayed in the panel.
.. attribute:: HelpPanel.template
Path to a template rendering the full panel HTML.
.. attribute:: HelpPanel.heading
A heading for the help content.
.. attribute:: HelpPanel.classname
String of CSS classes given to the panel which are used in formatting and scripted interactivity.
PageChooserPanel
----------------
@ -239,30 +260,6 @@ SnippetChooserPanel
See :ref:`snippets` for more information.
HelpPanel
---------
.. module:: wagtail.admin.edit_handlers
.. class:: HelpPanel(content='', template='wagtailadmin/edit_handlers/help_panel.html', heading='', classname='')
.. attribute:: HelpPanel.content
HTML string that gets displayed in the panel.
.. attribute:: HelpPanel.template
Path to a template rendering the full panel HTML.
.. attribute:: HelpPanel.heading
A heading for the help content.
.. attribute:: HelpPanel.classname
String of CSS classes given to the panel which are used in formatting and scripted interactivity.
Built-in Fields and Choosers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~