Skip to content

Commit

Permalink
Add documentation for new required field settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJBarnes committed Sep 12, 2023
1 parent 7bfb877 commit f783916
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/source/configuration/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,31 @@ Additionally, you can use ``jquery`` to use the JS jquery-datetimepicker.js libr
Example::

ADMINLTE2_TIME_WIDGET = 'jquery'

ADMINLTE2_BOLD_REQUIRED_FIELDS
------------------------------

Set whether required fields on a form should render out with bolded labels to
denote that the field is required when using any of the template tags that
help render out forms.

:Type: ``bool``
:Default: ``True``

Example::

ADMINLTE2_BOLD_REQUIRED_FIELDS = False

ADMINLTE2_ASTERISK_REQUIRED_FIELDS
----------------------------------

Set whether required fields on a form should render out an asterisk next to the
labels for a form field to denote that the field is required when using any of
the template tags that help render out forms.

:Type: ``bool``
:Default: ``True``

Example::

ADMINLTE2_ASTERISK_REQUIRED_FIELDS = False

0 comments on commit f783916

Please sign in to comment.