From f783916624f5f6ad7431927d81e1e46f896f948d Mon Sep 17 00:00:00 2001 From: David Barnes Date: Mon, 11 Sep 2023 20:06:56 -0400 Subject: [PATCH] Add documentation for new required field settings. --- docs/source/configuration/form.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/source/configuration/form.rst b/docs/source/configuration/form.rst index 68839d7..41bd0a3 100644 --- a/docs/source/configuration/form.rst +++ b/docs/source/configuration/form.rst @@ -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