Sha256: 0f247350de1d28be001236fb5aec7c10fb3cf511bb822729603399361c71a164

Contents?: true

Size: 1.76 KB

Versions: 17

Compression:

Stored size: 1.76 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.effective_ckeditor_text_area :content

  / = f.input :updated_at, as: :effective_date_picker
  / = f.input :updated_at, as: :effective_date_time_picker
  / = f.input :price, as: :effective_price
  / = f.input :category, as: :effective_select, collection: 10.times.map { |x| "Category #{x}"}
  / = f.input :number, as: :effective_tel

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

17 entries across 17 versions & 1 rubygems

Version Path
effective_form_inputs-0.8.16 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.15 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.14 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.13 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.12 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.11 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.10 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.9 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.8 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.7 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.6 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.5 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.4 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.3 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.2 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.1 app/views/effective/style_guide/_effective_form_inputs.html.haml
effective_form_inputs-0.8.0 app/views/effective/style_guide/_effective_form_inputs.html.haml