@@ -968,10 +968,12 @@ Now, when the form is submitted, it will execute the ``save()`` method
968968via Ajax. If the form fails validation, it will re-render with the
969969errors. And if it's successful, it will redirect.
970970
971- **NOTE **: Make sure that each time the user changes a field, you update
972- the component's model. If you don't do this, when you trigger the
973- action, it will *not * contain the form's data because the data in the
974- fields and the component's data will be out of sync.
971+ .. note ::
972+
973+ Make sure that each time the user changes a field, you update the
974+ component's model. If you don't do this, when you trigger the action, it
975+ will *not * contain the form's data because the data in the fields and the
976+ component's data will be out of sync.
975977
976978An easy way to accomplish this (explained more in the :ref: `Forms <forms >`
977979section above) is to add:
@@ -1064,8 +1066,10 @@ property.
10641066Validation (without a Form)
10651067~~~~~~~~~~~~~~~~~~~~~~~~~~~
10661068
1067- **NOTE ** If your component :ref: `contains a form <forms >`, then validation
1068- is built-in automatically. Follow those docs for more details.
1069+ .. note ::
1070+
1071+ If your component :ref: `contains a form <forms >`, then validation
1072+ is built-in automatically. Follow those docs for more details.
10691073
10701074If you're building some sort of form *without * using Symfony's form
10711075component, you *can * still validate your data.
@@ -1328,9 +1332,11 @@ Thanks to the ``data-model-map``, whenever the ``markdown_value`` model
13281332updates in the child component, the ``post.content `` model will be
13291333updated in the parent component.
13301334
1331- **NOTE **: If you *change * a ``LiveProp `` of a child component on the
1332- server (e.g. during re-rendering or via an action), that change will
1333- *not * be reflected on any parent components that share that model.
1335+ .. note ::
1336+
1337+ If you *change * a ``LiveProp `` of a child component on the server
1338+ (e.g. during re-rendering or via an action), that change will
1339+ *not * be reflected on any parent components that share that model.
13341340
13351341Full Embedded Component Example
13361342~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments