webseite-grav/plugins/form/templates/forms/default/toggleable.html.twig

10 lines
368 B
Twig
Raw Permalink Normal View History

2021-04-30 11:23:26 +02:00
<span class="checkboxes toggleable" data-grav-field="toggleable" data-grav-field-name="{{ field_name }}">
<input type="checkbox"
id="toggleable_{{ field.name }}"
name="toggleable_{{ field_name }}"
value="1"
{% if checked %}checked="checked"{% endif %}
>
<label for="toggleable_{{ field.name }}"></label>
</span>