From 7cebdacd9f138401dfd246891fc836828d8066d9 Mon Sep 17 00:00:00 2001 From: Mathieu Piot Date: Thu, 18 Oct 2018 12:10:02 +0200 Subject: [PATCH 1/2] Add help_attr documentation --- reference/forms/types/birthday.rst | 3 +++ reference/forms/types/checkbox.rst | 3 +++ reference/forms/types/choice.rst | 3 +++ reference/forms/types/collection.rst | 3 +++ reference/forms/types/color.rst | 3 +++ reference/forms/types/country.rst | 3 +++ reference/forms/types/currency.rst | 3 +++ reference/forms/types/date.rst | 3 +++ reference/forms/types/dateinterval.rst | 3 +++ reference/forms/types/datetime.rst | 3 +++ reference/forms/types/email.rst | 3 +++ reference/forms/types/entity.rst | 3 +++ reference/forms/types/file.rst | 3 +++ reference/forms/types/form.rst | 3 +++ reference/forms/types/integer.rst | 3 +++ reference/forms/types/language.rst | 3 +++ reference/forms/types/locale.rst | 3 +++ reference/forms/types/money.rst | 3 +++ reference/forms/types/number.rst | 3 +++ .../forms/types/options/help_attr.rst.inc | 25 +++++++++++++++++++ reference/forms/types/password.rst | 3 +++ reference/forms/types/percent.rst | 3 +++ reference/forms/types/radio.rst | 3 +++ reference/forms/types/range.rst | 3 +++ reference/forms/types/repeated.rst | 3 +++ reference/forms/types/search.rst | 3 +++ reference/forms/types/tel.rst | 3 +++ reference/forms/types/text.rst | 3 +++ reference/forms/types/textarea.rst | 3 +++ reference/forms/types/time.rst | 3 +++ reference/forms/types/timezone.rst | 3 +++ reference/forms/types/url.rst | 3 +++ 32 files changed, 118 insertions(+) create mode 100644 reference/forms/types/options/help_attr.rst.inc diff --git a/reference/forms/types/birthday.rst b/reference/forms/types/birthday.rst index 6d18eeddc70..cb4281fb370 100644 --- a/reference/forms/types/birthday.rst +++ b/reference/forms/types/birthday.rst @@ -39,6 +39,7 @@ option defaults to 120 years ago to the current year. | | - `data`_ | | | - `disabled`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -111,6 +112,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/checkbox.rst b/reference/forms/types/checkbox.rst index 1f9e6d7d456..685a4359c6c 100644 --- a/reference/forms/types/checkbox.rst +++ b/reference/forms/types/checkbox.rst @@ -25,6 +25,7 @@ if you want to handle submitted values like "0" or "false"). | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -83,6 +84,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/choice.rst b/reference/forms/types/choice.rst index 24b41c75ba0..d0cfd644ba7 100644 --- a/reference/forms/types/choice.rst +++ b/reference/forms/types/choice.rst @@ -36,6 +36,7 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op | | - `disabled`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `label`_ | | | - `label_attr`_ | @@ -270,6 +271,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/label.rst.inc diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index ed408ab1de7..80511e44608 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -28,6 +28,7 @@ photos). | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -422,6 +423,8 @@ error_bubbling .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/color.rst b/reference/forms/types/color.rst index 799d826538b..e6cc5fd8424 100644 --- a/reference/forms/types/color.rst +++ b/reference/forms/types/color.rst @@ -23,6 +23,7 @@ element. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -58,6 +59,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/country.rst b/reference/forms/types/country.rst index cb563f7dede..201f2a935cc 100644 --- a/reference/forms/types/country.rst +++ b/reference/forms/types/country.rst @@ -42,6 +42,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly. | | - `disabled`_ | | | - `empty_data`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -113,6 +114,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/currency.rst b/reference/forms/types/currency.rst index 0029d52c842..3fc8d3d07dd 100644 --- a/reference/forms/types/currency.rst +++ b/reference/forms/types/currency.rst @@ -34,6 +34,7 @@ manually, but then you should just use the ``ChoiceType`` directly. | | - `disabled`_ | | | - `empty_data`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -102,6 +103,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/date.rst b/reference/forms/types/date.rst index cac20deb225..16dcae7c1fe 100644 --- a/reference/forms/types/date.rst +++ b/reference/forms/types/date.rst @@ -36,6 +36,7 @@ and can understand a number of different input formats via the `input`_ option. | options | - `disabled`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -209,6 +210,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/dateinterval.rst b/reference/forms/types/dateinterval.rst index 450e14c3132..9a7c0b4a2f8 100644 --- a/reference/forms/types/dateinterval.rst +++ b/reference/forms/types/dateinterval.rst @@ -40,6 +40,7 @@ or an array (see `input`_). | Inherited | - `data`_ | | options | - `disabled`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -310,6 +311,8 @@ These options inherit from the :doc:`form ` type: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/datetime.rst b/reference/forms/types/datetime.rst index afe485728ff..c35ccb4529a 100644 --- a/reference/forms/types/datetime.rst +++ b/reference/forms/types/datetime.rst @@ -45,6 +45,7 @@ the data can be a ``DateTime`` object, a string, a timestamp or an array. | Inherited | - `data`_ | | options | - `disabled`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -234,6 +235,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/email.rst b/reference/forms/types/email.rst index 67eb149506c..abe66e35614 100644 --- a/reference/forms/types/email.rst +++ b/reference/forms/types/email.rst @@ -16,6 +16,7 @@ The ``EmailType`` field is a text field that is rendered using the HTML5 | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -51,6 +52,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 526ac367f3c..3e213c87355 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -42,6 +42,7 @@ objects from the database. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -330,6 +331,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/file.rst b/reference/forms/types/file.rst index d041f41f8d6..b1f05aa7b3c 100644 --- a/reference/forms/types/file.rst +++ b/reference/forms/types/file.rst @@ -19,6 +19,7 @@ The ``FileType`` represents a file input in your form. | options | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -127,6 +128,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/form.rst b/reference/forms/types/form.rst index 700bf80029d..61007c3dc36 100644 --- a/reference/forms/types/form.rst +++ b/reference/forms/types/form.rst @@ -20,6 +20,7 @@ on all types for which ``FormType`` is the parent. | | - `error_mapping`_ | | | - `extra_fields_message`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -103,6 +104,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/integer.rst b/reference/forms/types/integer.rst index b7bdf0662e7..c203701d896 100644 --- a/reference/forms/types/integer.rst +++ b/reference/forms/types/integer.rst @@ -28,6 +28,7 @@ integers. By default, all non-integer values (e.g. 6.78) will round down | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | | | - `label`_ | @@ -113,6 +114,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/invalid_message.rst.inc .. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc diff --git a/reference/forms/types/language.rst b/reference/forms/types/language.rst index de265e60d12..e5e41304ec6 100644 --- a/reference/forms/types/language.rst +++ b/reference/forms/types/language.rst @@ -44,6 +44,7 @@ manually, but then you should just use the ``ChoiceType`` directly. | | - `disabled`_ | | | - `empty_data`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -115,6 +116,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/locale.rst b/reference/forms/types/locale.rst index 200126e5f20..918f5a521ea 100644 --- a/reference/forms/types/locale.rst +++ b/reference/forms/types/locale.rst @@ -45,6 +45,7 @@ manually, but then you should just use the ``ChoiceType`` directly. | | - `disabled`_ | | | - `empty_data`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -116,6 +117,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/money.rst b/reference/forms/types/money.rst index 6350ff8e859..fae4c0513af 100644 --- a/reference/forms/types/money.rst +++ b/reference/forms/types/money.rst @@ -29,6 +29,7 @@ how the input and output of the data is handled. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | | | - `label`_ | @@ -121,6 +122,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/invalid_message.rst.inc .. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc diff --git a/reference/forms/types/number.rst b/reference/forms/types/number.rst index 882bfb75231..e8b0d48f665 100644 --- a/reference/forms/types/number.rst +++ b/reference/forms/types/number.rst @@ -24,6 +24,7 @@ that you want to use for your number. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | | | - `label`_ | @@ -86,6 +87,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/invalid_message.rst.inc .. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc diff --git a/reference/forms/types/options/help_attr.rst.inc b/reference/forms/types/options/help_attr.rst.inc new file mode 100644 index 00000000000..f26f5a8fba7 --- /dev/null +++ b/reference/forms/types/options/help_attr.rst.inc @@ -0,0 +1,25 @@ +help_attr +~~~~ + +**type**: ``array`` **default**: ``array()`` + + Sets the HTML attributes for the help element, which will be used + when rendering the help part for the field. It's an associative array with HTML + attribute as a key. This attributes can also be directly set inside the + template: + + .. configuration-block:: + + .. code-block:: twig + + {{ form_help(form.name, 'Your name', { + 'label_attr': {'class': 'CUSTOM_LABEL_CLASS'} + }) }} + + .. code-block:: php + + echo $view['form']->help( + $form['name'], + 'Your name', + array('label_attr' => array('class' => 'CUSTOM_LABEL_CLASS')) + ); diff --git a/reference/forms/types/password.rst b/reference/forms/types/password.rst index ea42aa6ffde..69393d69a80 100644 --- a/reference/forms/types/password.rst +++ b/reference/forms/types/password.rst @@ -19,6 +19,7 @@ The ``PasswordType`` field renders an input password text box. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -80,6 +81,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/percent.rst b/reference/forms/types/percent.rst index 8d823c34272..f2d2b52a915 100644 --- a/reference/forms/types/percent.rst +++ b/reference/forms/types/percent.rst @@ -26,6 +26,7 @@ This field adds a percentage sign "``%``" after the input box. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | | | - `label`_ | @@ -98,6 +99,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/invalid_message.rst.inc .. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc diff --git a/reference/forms/types/radio.rst b/reference/forms/types/radio.rst index e53a19aae12..10ea257b87d 100644 --- a/reference/forms/types/radio.rst +++ b/reference/forms/types/radio.rst @@ -28,6 +28,7 @@ If you want to have a boolean field, use :doc:`CheckboxType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/range.rst b/reference/forms/types/range.rst index c8a21093211..e3bb860ebef 100644 --- a/reference/forms/types/range.rst +++ b/reference/forms/types/range.rst @@ -17,6 +17,7 @@ The ``RangeType`` field is a slider that is rendered using the HTML5 | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `mapped`_ | @@ -68,6 +69,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/repeated.rst b/reference/forms/types/repeated.rst index 64fdd3d7dae..8c282b187cc 100644 --- a/reference/forms/types/repeated.rst +++ b/reference/forms/types/repeated.rst @@ -25,6 +25,7 @@ accuracy. | Inherited | - `data`_ | | options | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | | | - `mapped`_ | @@ -184,6 +185,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/invalid_message.rst.inc .. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc diff --git a/reference/forms/types/search.rst b/reference/forms/types/search.rst index 9bac82be97c..5ed5c24bb28 100644 --- a/reference/forms/types/search.rst +++ b/reference/forms/types/search.rst @@ -17,6 +17,7 @@ Read about the input search field at `DiveIntoHTML5.info`_ | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -50,6 +51,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/tel.rst b/reference/forms/types/tel.rst index 4f08adfaed4..0d42d653b6e 100644 --- a/reference/forms/types/tel.rst +++ b/reference/forms/types/tel.rst @@ -22,6 +22,7 @@ to input phone numbers. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -57,6 +58,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/text.rst b/reference/forms/types/text.rst index 8290323c510..74a35e637a8 100644 --- a/reference/forms/types/text.rst +++ b/reference/forms/types/text.rst @@ -16,6 +16,7 @@ The TextType field represents the most basic input text field. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -56,6 +57,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/textarea.rst b/reference/forms/types/textarea.rst index 3b4d50d3c4d..cde00e05dab 100644 --- a/reference/forms/types/textarea.rst +++ b/reference/forms/types/textarea.rst @@ -16,6 +16,7 @@ Renders a ``textarea`` HTML element. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -59,6 +60,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/time.rst b/reference/forms/types/time.rst index c3e396fc765..9c39dabccff 100644 --- a/reference/forms/types/time.rst +++ b/reference/forms/types/time.rst @@ -37,6 +37,7 @@ stored as a ``DateTime`` object, a string, a timestamp or an array. | Options | - `disabled`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `inherit_data`_ | | | - `invalid_message`_ | | | - `invalid_message_parameters`_ | @@ -196,6 +197,8 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/inherit_data.rst.inc .. include:: /reference/forms/types/options/invalid_message.rst.inc diff --git a/reference/forms/types/timezone.rst b/reference/forms/types/timezone.rst index 28936c4208f..099b34a6c7b 100644 --- a/reference/forms/types/timezone.rst +++ b/reference/forms/types/timezone.rst @@ -39,6 +39,7 @@ manually, but then you should just use the ``ChoiceType`` directly. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -126,6 +127,8 @@ The actual default value of this option depends on other field options: .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc diff --git a/reference/forms/types/url.rst b/reference/forms/types/url.rst index 38aa1732145..34d34540459 100644 --- a/reference/forms/types/url.rst +++ b/reference/forms/types/url.rst @@ -19,6 +19,7 @@ have a protocol. | | - `error_bubbling`_ | | | - `error_mapping`_ | | | - `help`_ | +| | - `help_attr`_ | | | - `label`_ | | | - `label_attr`_ | | | - `label_format`_ | @@ -66,6 +67,8 @@ The default value is ``''`` (the empty string). .. include:: /reference/forms/types/options/help.rst.inc +.. include:: /reference/forms/types/options/help_attr.rst.inc + .. include:: /reference/forms/types/options/label.rst.inc .. include:: /reference/forms/types/options/label_attr.rst.inc From 1501ff07c20ad07099ba7ebeeebde7c9e2a6544c Mon Sep 17 00:00:00 2001 From: Mathieu Piot Date: Thu, 18 Oct 2018 12:20:52 +0200 Subject: [PATCH 2/2] Fix title underline --- reference/forms/types/options/help_attr.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/options/help_attr.rst.inc b/reference/forms/types/options/help_attr.rst.inc index f26f5a8fba7..a197431482d 100644 --- a/reference/forms/types/options/help_attr.rst.inc +++ b/reference/forms/types/options/help_attr.rst.inc @@ -1,5 +1,5 @@ help_attr -~~~~ +~~~~~~~~~ **type**: ``array`` **default**: ``array()``