8000 [Reference][Forms] Improvements to the form type by xabbuh · Pull Request #3789 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ The ``form`` type predefines a couple of options that are then available
on all types for which ``form`` is the parent type.

+-----------+--------------------------------------------------------------------+
| Options | - `compound`_ |
| | - `data`_ |
| Options | - `data`_ |
| | - `data_class`_ |
| | - `empty_data`_ |
| | - `compound`_ |
| | - `required`_ |
| | - `label_attr`_ |
| | - `constraints`_ |
< C0E9 tool-tip id="tooltip-0cab5a5d-be52-48ee-81d5-31f0b7801374" for="expand-link-13-diff-84dd347bce54bc3fcfa9f72dc192200ee9cd197d1c40826ac0aaa7746b901f41" popover="manual" data-direction="ne" data-type="label" data-view-component="true" class="sr-only position-absolute">Expand All @@ -30,6 +30,8 @@ on all types for which ``form`` is the parent type.
| | - `extra_fields_message`_ |
| | - `post_max_size_message`_ |
| | - `pattern`_ |
| | - `action`_ |
| | - `method`_ |
+-----------+--------------------------------------------------------------------+
| Inherited | - `block_name`_ |
| options | - `disabled`_ |
Expand All @@ -50,10 +52,6 @@ Options

.. include:: /reference/forms/types/options/data_class.rst.inc

.. include:: /reference/forms/types/options/action.rst.inc

.. include:: /reference/forms/types/options/method.rst.inc

.. include:: /reference/forms/types/options/empty_data.rst.inc

.. include:: /reference/forms/types/options/compound.rst.inc
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/compound.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
compound
~~~~~~~~

**type**: ``boolean``
**type**: ``boolean`` **default**: ``true``

This option specifies if a form is compound. This is independent of whether the
form actually has children. A form can be compound but not have any children
Expand Down
0