Recognise title and template attributes on item_forms signal (#3492)

This commit is contained in:
Kian Cross
2023-07-24 16:35:39 +01:00
committed by GitHub
parent 63ae0724cf
commit 65ecdc184e
3 changed files with 37 additions and 4 deletions

View File

@@ -304,6 +304,10 @@ an instance of a form class that you bind yourself when appropriate. Your form w
as part of the standard validation and rendering cycle and rendered using default bootstrap
styles. It is advisable to set a prefix for your form to avoid clashes with other plugins.
Your forms may also have two special properties: ``template`` with a template that will be
included to render the form, and ``title``, which will be used as a headline. Your template
will be passed a ``form`` variable with your form.
As with all plugin signals, the ``sender`` keyword argument will contain the event.
"""