From 2373da944a4bcc18bfe63e2838463ab1bdcaba61 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 23 Oct 2020 16:40:30 +0200 Subject: [PATCH] Also update radio form inputs --- templates/forms/fields/radio/radio.html.twig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/forms/fields/radio/radio.html.twig b/templates/forms/fields/radio/radio.html.twig index 5698f36..ced992a 100644 --- a/templates/forms/fields/radio/radio.html.twig +++ b/templates/forms/fields/radio/radio.html.twig @@ -13,14 +13,13 @@ value="{{ key|e }}" id="{{ id|e }}" name="{{ (scope ~ field.name)|fieldName }}" - {% if field.classes is defined %}class="{{ field.classes }}" {% endif %} + class="{{ form_field_radio_classes }} {{ field.classes }}" {% if key == value %}checked="checked" {% endif %} {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %} {% if required %}required="required"{% endif %} + {% if field.tabindex %}tabindex="{{ field.tabindex }}"{% endif %} /> - - {% if grav.twig.twig.filters['tu'] is defined %}{{ text|tu|raw }}{% else %}{{ text|t|raw }}{% endif %} - + {{ text|t|raw }} {% endfor %} {% endblock %}