Skip to content

Commit 66d5272

Browse files
committed
[#3170] Tabbing out the code example so it's in the sidebar
1 parent 34d0be4 commit 66d5272

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

book/forms.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,21 +420,21 @@ corresponding errors printed out with the form.
420420
but are being prevented by your browser from, for example, submitting
421421
blank fields.
422422

423-
.. configuration-block::
423+
.. configuration-block::
424424

425-
.. code-block:: html+jinja
425+
.. code-block:: html+jinja
426426

427-
{# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
427+
{# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
428428

429-
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
429+
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
430430

431-
.. code-block:: html+php
431+
.. code-block:: html+php
432432

433-
<!-- src/Acme/DemoBundle/Resources/views/Default/new.html.php -->
433+
<!-- src/Acme/DemoBundle/Resources/views/Default/new.html.php -->
434434

435-
<?php echo $view['form']->form($form, array(
436-
'attr' => array('novalidate' => 'novalidate'),
437-
)) ?>
435+
<?php echo $view['form']->form($form, array(
436+
'attr' => array('novalidate' => 'novalidate'),
437+
)) ?>
438438

439439
Validation is a very powerful feature of Symfony2 and has its own
440440
:doc:`dedicated chapter </book/validation>`.

0 commit comments

Comments
 (0)