Skip to content

Commit 501c96f

Browse files
committed
"disabled" attribute had completely inconsistent formatting
1 parent 86a0161 commit 501c96f

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
* ``disabled`` [type: Boolean, default: false]
2-
If you don't want a user to modify the value of a field, you can set
3-
the disabled option to true. Any submitted value will be ignored.
1+
disabled
2+
~~~~~~~~
3+
**type**: ``boolean`` **default**: ``false``
44

5-
.. code-block:: php
5+
If you don't want a user to modify the value of a field, you can set
6+
the disabled option to true. Any submitted value will be ignored.
67

7-
use Symfony\Component\Form\TextField
8+
.. code-block:: php
9+
10+
use Symfony\Component\Form\TextField
811

9-
$field = new TextField('status', array(
10-
'data' => 'Old data',
11-
'disabled' => true,
12-
));
13-
$field->submit('New data');
12+
$field = new TextField('status', array(
13+
'data' => 'Old data',
14+
'disabled' => true,
15+
));
16+
$field->submit('New data');
1417

15-
// prints "Old data"
16-
echo $field->getData();
18+
// prints "Old data"
19+
echo $field->getData();
1720

1821

0 commit comments

Comments
 (0)