File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -420,18 +420,21 @@ corresponding errors printed out with the form.
420
420
but are being prevented by your browser from, for example, submitting
421
421
blank fields.
422
422
423
- .. code-block :: html+jinja
424
-
425
- {# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
426
-
427
- {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
428
-
429
- .. code-block :: html+php
430
- <!-- src/Acme/DemoBundle/Resources/views/Default/new.html.php -->
431
-
432
- <?php echo $view['form']->form($form, array(
433
- 'attr' => array('novalidate' => 'novalidate'),
434
- )) ?>
423
+ .. configuration-block ::
424
+
425
+ .. code-block :: html+jinja
426
+
427
+ {# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
428
+
429
+ {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
430
+
431
+ .. code-block :: html+php
432
+
433
+ <!-- src/Acme/DemoBundle/Resources/views/Default/new.html.php -->
434
+
435
+ <?php echo $view['form']->form($form, array(
436
+ 'attr' => array('novalidate' => 'novalidate'),
437
+ )) ?>
435
438
436
439
Validation is a very powerful feature of Symfony2 and has its own
437
440
:doc: `dedicated chapter </book/validation >`.
You can’t perform that action at this time.
0 commit comments