From bd31386ab0eb4916625642c17537fa0fa3b88aab Mon Sep 17 00:00:00 2001 From: Liviu Balan Date: Sun, 15 Apr 2018 12:36:37 +0300 Subject: [PATCH] Fix "radio-custom" and "checkbox-custom" usage See "radio_widget" block from https://github.com/symfony/twig-bridge/blob/3.4/Resources/views/Form/bootstrap_4_layout.html.twig --- form/bootstrap4.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form/bootstrap4.rst b/form/bootstrap4.rst index 685d47f0313..6831ef775b2 100644 --- a/form/bootstrap4.rst +++ b/form/bootstrap4.rst @@ -97,8 +97,8 @@ and ``checkbox-custom`` respectively. .. code-block:: html+twig - {{ form_row(form.myRadio, {attr: {class: 'radio-custom'} }) }} - {{ form_row(form.myCheckbox, {attr: {class: 'checkbox-custom'} }) }} + {{ form_row(form.myRadio, {label_attr: {class: 'radio-custom'} }) }} + {{ form_row(form.myCheckbox, {label_attr: {class: 'checkbox-custom'} }) }} Labels and Errors -----------------