Sha256: f4085b9075eb7dde1a6db02dbd7f3411c7d118238d5ff6bd38a9fa92c88894d5

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

- for_context ||= context
- name ||= "#{for_context.resource.name}[#{field.name}]"
- id ||= "#{for_context.resource.name}_#{field.name}"
- value ||= field.read(for_context.entity)
- opts = { name: name, id: id, value: value == true ? 'true' : 'false' }

.btn-group.btn-group-sm< data-toggle="switch" data-value=(value == true)
  button.btn Да
  input.form-control type="hidden" *opts
  button.btn Нет

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_it-1.3.6 app/views/admin_it/editors/_boolean.html.slim