Skip to content

Commit 74efffb

Browse files
authored
Update README.rst
1 parent c11bcf1 commit 74efffb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,18 @@ Creating forms using django CMS' structure board
6767

6868
First create a ``Form`` plugin to add a form. Each form created with help of the structure board needs a unique identifier (formatted as a slug).
6969

70-
Add form fields by adding child classes to the form plugin.
70+
Add form fields by adding child classes to the form plugin. Child classes can be form fields but also any other CMS Plugin. CMS Plugins may, e.g., be used to add custom formatting or additional help texts to a form.
71+
72+
Currently the following form fields are supported:
73+
74+
* CharField, EmailField, URLField
75+
* DecimalField, IntegerField
76+
* Textarea
77+
* DateField, DateTimeField, TimeField
78+
* SelectField
79+
* BooleanField
80+
81+
A Form plugin must not be used within another Form plugin.
7182

7283
Using (existing) Django forms with djangocms-form-builder
7384
=========================================================
@@ -90,7 +101,7 @@ By default the class name is translated to a human readable form (``MyGreatForm`
90101
verbose_name = _("My great form") # can be localized
91102
redirect = "https://somewhere.org" # string or object with get_absolute_url() method
92103
floating_labels = True # switch on floating labels
93-
field_sep = "mp-3" # separator used between fields (depends on css framework)
104+
field_sep = "mb-3" # separator used between fields (depends on css framework)
94105

95106
The verbose name will be shown in a Select field of the Form plugin.
96107

0 commit comments

Comments
 (0)