Sha256: 2a3ae7f25fcbff4f5e3a53ccf62ac5cd51687999859bde871e1460f32d55f744

Contents?: true

Size: 1.43 KB

Versions: 14

Compression:

Stored size: 1.43 KB

Contents

/ this gives me a mechanism to test the inputs easily on a site with effective style_guide installed

= form_for Effective::StyleGuide.new(:category => 'Category 2'), :url => '/' do |f|
  / = f.date_field :updated_at, :class => 'my-class'
  / = f.effective_date_picker :updated_at, :class => 'my-class'
  / %hr
  / = f.datetime_field :updated_at
  / = f.effective_date_time_picker :updated_at
  / %hr
  / = f.select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'my-class'}
  / = f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'my-class'}
  / %hr
  / = f.select :category, 10.times.map { |x| "Category #{x}"}, {:multiple => true}, {:class => 'my-class'}
  / = f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:multiple => true}, {:class => 'my-class'}
  / %hr
  / = f.effective_static_control :static_text, :value => 'this is static control value', :class => 'my-class'


  /= f.text_field :title, :class => 'my-text-field'
  /= f.datetime_field :updated_at, :class => 'my-updated-at-class', :something => 'cool'
  /= f.effective_date_time_picker :updated_at, :class => 'my-updated-at-class', :something => 'cool'

  /= f.select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => true}, {:class => 'myclass'}
  /= f.effective_select :category, 10.times.map { |x| "Category #{x}"}, {:include_blank => false}, {:class => 'myclass'}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
effective_form_inputs-0.7.7 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.6 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.5 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.4 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.3 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.2 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.1 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.7.0 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.6.4 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.6.3 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.6.2 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.6.1 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.6.0 app/views/effective/style_guide/_form_default.html.haml
effective_form_inputs-0.5.0 app/views/effective/style_guide/_form_default.html.haml