您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

10 行
636B

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