You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- {% set item = entity.instance %}
- {% set property_name = field.getProperty() %}
- {% set id_toggle = 'toogle-'~item.id~'-'~property_name %}
-
- <div class="custom-control custom-switch custom-switch-on-success custom-switch-off-default"
- data-propertyname="{{ property_name }}" data-id={{ item.id }}>
- <input type="checkbox" class="custom-control-input" id="{{ id_toggle }}" {{ field.value ? 'checked' }}>
- <label class="custom-control-label" for="{{ id_toggle }}">
- {{ field.getCustomOption('toggle_label') ?? field.label }}</label>
- </div>
|