Override core radios template to add class
This commit is contained in:
parent
7a286515ab
commit
4764bda7a4
1 changed files with 13 additions and 0 deletions
13
agaric/templates/form/radios.html.twig
Normal file
13
agaric/templates/form/radios.html.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a 'radios' #type form element.
|
||||
*
|
||||
* Available variables
|
||||
* - attributes: A list of HTML attributes for the wrapper element.
|
||||
* - children: The rendered radios.
|
||||
*
|
||||
* @see template_preprocess_radios()
|
||||
*/
|
||||
#}
|
||||
<div{{ attributes.addClass('form-radios') }}>{{ children }}</div>
|
Loading…
Reference in a new issue