Sha256: 0c5700b4f3dbc59a645d40e1bfa9cd1b0214c146de8e7f1147f9dbf85c84b03a

Contents?: true

Size: 1.49 KB

Versions: 10

Compression:

Stored size: 1.49 KB

Contents

-# buttons
%button(disabled='disabled')
  Disabled button #1

%button(disabled=true)
  Disabled button #2

%button(disabled='')
  Disabled button #3

%button(disabled='aaa')
  Disabled button #4

%button(disabled=false)
  Enabled button #1

%button
  Enabled button #2

-# checkboxes
= form_tag do
  - checked = false
  = label_tag 'disabled_name_1', 'Disabled checkbox #1'
  = check_box_tag 'disabled_name_1', 'value', checked, disabled: true

  = label_tag 'disabled_name_2', 'Disabled checkbox #2'
  = check_box_tag 'disabled_name_2', 'value', checked, disabled: ''

  = label_tag 'disabled_name_3', 'Disabled checkbox #3'
  = check_box_tag 'disabled_name_3', 'value', checked, disabled: 'aaa'

  = label_tag 'enabled_name_1', 'Enabled checkbox #1'
  = check_box_tag 'enabled_name_1', 'value', checked, disabled: false

  = label_tag 'enabled_name_2', 'Enabled checkbox #2'
  = check_box_tag 'enabled_name_2', 'value', checked

-# fields
= form_tag do
  = label_tag 'disabled_field_1', 'Disabled field #1'
  = text_field_tag 'disabled_field_1', 'value', disabled: true

  = label_tag 'disabled_field_2', 'Disabled field #2'
  = text_field_tag 'disabled_field_2', 'value', disabled: ''

  = label_tag 'disabled_field_3', 'Disabled field #3'
  = text_field_tag 'disabled_field_3', 'value', disabled: 'aaa'

  = label_tag 'enabled_field_1', 'Enabled field #1'
  = text_field_tag 'enabled_field_1', 'value', disabled: false

  = label_tag 'enabled_field_2', 'Enabled field #2'
  = text_field_tag 'enabled_field_2', 'value'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spreewald-2.7.1 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.7.0 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.6.0 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.5.0 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.4.2 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.4.0 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.3.0 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.2.4 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.2.3 tests/shared/app/views/forms/disabled_elements.html.haml
spreewald-2.2.2 tests/shared/app/views/forms/disabled_elements.html.haml