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.

13 satır
707B

  1. {% set item = entity.instance %}
  2. {% set property_name = field.getProperty() %}
  3. {% set id_toggle = 'toggle-'~item.id~'-'~property_name %}
  4. {% block toggle %}
  5. <div class="custom-control custom-switch custom-switch-on-success custom-switch-off-default" data-toggle="tooltip" title="{{ field.getCustomOption('toggle_label') ? field.label : field.property|sov_trans_admin_field(entity.instance) }}"
  6. data-url="{{ ea_url({crudAction: 'edit', entityId: item.id, fieldName: property_name }) }}">
  7. <input type="checkbox" class="custom-control-input" id="{{ id_toggle }}" {{ field.value ? 'checked' }}>
  8. <label class="custom-control-label" for="{{ id_toggle }}" >
  9. </label>
  10. </div>
  11. {% endblock toggle %}