Sha256: cecffd173f5d437bad6b8cbc2a181f49feedcff48e0f33bea9a5cbd029dd7336

Contents?: true

Size: 1.68 KB

Versions: 25

Compression:

Stored size: 1.68 KB

Contents

= form_tag do

  = label_tag 'text_control', 'Text control'
  = text_field_tag 'text_control', 'Text control value'

  = label_tag 'disabled_text_control', 'Disabled text control'
  = text_field_tag 'disabled_text_control', 'Disabled text control value', disabled: true

  = label_tag 'select_control', 'Select control'
  = select_tag 'select_control', options_for_select([['Label 1', 'value1'], ['Label 2', 'value2'], ['Label 3', 'value3']], 'value2')

  = label_tag 'select_control_without_selection', 'Select control without selection'
  = select_tag 'select_control_without_selection', options_for_select([['Label 1', 'value1'], ['Label 2', 'value2'], ['Label 3', 'value3']])

  =# This select has a blank first option, but it is not selected
  = label_tag 'select_control_with_blank_option', 'Select control with blank option'
  = select_tag 'select_control_with_blank_option', options_for_select([['', ''], ['Label 1', 'label1'], ['Label 2', 'label2'], ['Label 3', 'value3']])

  =# This select has a blank first option that is also selected
  = label_tag 'select_control_with_blank_selection', 'Select control with blank selection'
  = select_tag 'select_control_with_blank_selection', options_for_select([['', ''], ['Label 1', 'label1'], ['Label 2', 'label2'], ['Label 3', 'value3']], '')

  = label_tag 'textarea_control', 'Textarea control'
  = text_area_tag 'textarea_control', 'Textarea control value'

  = label_tag 'empty_control', 'Empty control'
  = text_field_tag 'empty_control'

  = label_tag 'radio_button_control_radio1', 'Radio 1'
  = radio_button_tag 'radio_button_control', 'radio1'
  = label_tag 'radio_button_control_radio2', 'Radio 2'
  = radio_button_tag 'radio_button_control', 'radio2'

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
spreewald-4.6.3 tests/shared/app/views/forms/form1.html.haml
spreewald-4.6.2 tests/shared/app/views/forms/form1.html.haml
spreewald-4.6.1 tests/shared/app/views/forms/form1.html.haml
spreewald-4.6.0 tests/shared/app/views/forms/form1.html.haml
spreewald-4.5.1 tests/shared/app/views/forms/form1.html.haml
spreewald-4.5.0 tests/shared/app/views/forms/form1.html.haml
spreewald-4.4.4 tests/shared/app/views/forms/form1.html.haml
spreewald-4.4.3 tests/shared/app/views/forms/form1.html.haml
spreewald-4.4.2 tests/shared/app/views/forms/form1.html.haml
spreewald-4.4.1 tests/shared/app/views/forms/form1.html.haml
spreewald-4.4.0 tests/shared/app/views/forms/form1.html.haml
spreewald-4.3.6 tests/shared/app/views/forms/form1.html.haml
spreewald-4.3.5 tests/shared/app/views/forms/form1.html.haml
spreewald-4.3.4 tests/shared/app/views/forms/form1.html.haml
spreewald-4.3.3 tests/shared/app/views/forms/form1.html.haml
spreewald-4.3.2 tests/shared/app/views/forms/form1.html.haml
spreewald-4.2.3 tests/shared/app/views/forms/form1.html.haml
spreewald-4.2.2 tests/shared/app/views/forms/form1.html.haml
spreewald-4.1.2 tests/shared/app/views/forms/form1.html.haml
spreewald-4.1.1 tests/shared/app/views/forms/form1.html.haml