Skip to content

Commit 6f6fcca

Browse files
committed
Applied some changes according to comments.
1 parent e3b20d8 commit 6f6fcca

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

cookbook/form/form_customization.rst

+5-9
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,9 @@ field) are rendered separately, usually at the top of your form:
794794
<?php echo $view['form']->render($form); ?>
795795
796796
To customize *only* the markup used for these errors, follow the same directions
797-
as above, but now check if the ``compound`` variable is set to ``true``.
798-
799-
.. tip::
800-
801-
If the ``compound`` variable is ``true``, it means that what's being
802-
currently rendered is a collection of fields (e.g. a whole form), and not
803-
just an individual field.
797+
as above, but now check if the ``compound`` variable is set to ``true``. If it
798+
is ``true``, it means that what's being currently rendered is a collection of
799+
fields (e.g. a whole form), and not just an individual field.
804800

805801
.. configuration-block::
806802

@@ -817,7 +813,7 @@ as above, but now check if the ``compound`` variable is set to ``true``.
817813
{% endfor %}
818814
</ul>
819815
{% else %}
820-
{# display the errors for a single field #}
816+
{# ... display the errors for a single field #}
821817
{% endif %}
822818
{% endif %}
823819
{% endspaceless %}
@@ -834,7 +830,7 @@ as above, but now check if the ``compound`` variable is set to ``true``.
834830
<?php endforeach; ?>
835831
</ul>
836832
<?php else: ?>
837-
<?php // render the errors for a single field ?>
833+
<!-- ... render the errors for a single field -->
838834
<?php endif; ?>
839835
<?php endif ?>
840836

0 commit comments

Comments
 (0)