Skip to content

Commit

Permalink
Also update radio form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Oct 23, 2020
1 parent 4fbc930 commit 2373da9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions templates/forms/fields/radio/radio.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
/>
<i class="form-icon"></i>
{% if grav.twig.twig.filters['tu'] is defined %}{{ text|tu|raw }}{% else %}{{ text|t|raw }}{% endif %}
</label>
<i class="form-icon"></i>{{ text|t|raw }}</label>
</div>
{% endfor %}
{% endblock %}

0 comments on commit 2373da9

Please sign in to comment.