Sha256: 58475332448f246ef654595b2433797de096e2c920accb2c9066b192ffa48169

Contents?: true

Size: 1.31 KB

Versions: 19

Compression:

Stored size: 1.31 KB

Contents

= form_tag do

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

  = 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'

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spreewald-1.12.6 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.5 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.4 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.3 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.2 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.1 tests/shared/app/views/forms/form1.html.haml
spreewald-1.12.0 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.6 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.5 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.4 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.3 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.2 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.1 tests/shared/app/views/forms/form1.html.haml
spreewald-1.11.0 tests/shared/app/views/forms/form1.html.haml
spreewald-1.10.4 tests/shared/app/views/forms/form1.html.haml
spreewald-1.10.3 tests/shared/app/views/forms/form1.html.haml
spreewald-1.10.2 tests/shared/app/views/forms/form1.html.haml
spreewald-1.10.1 tests/shared/app/views/forms/form1.html.haml
spreewald-1.10.0 tests/shared/app/views/forms/form1.html.haml