Sha256: c99a8cb1def16aabd9e1be0f142238592a8525dae62b8abe8ed0b502aa1137a2

Contents?: true

Size: 473 Bytes

Versions: 63

Compression:

Stored size: 473 Bytes

Contents

class DateSelectorComponent < ViewComponent::Base
  def initialize(field_id)
    @field_id = field_id

    @types = [
      ['Días hábiles no feriados', 'business_days_excluding_holidays'],
      ['Días hábiles (L a V)', 'business_days'],
      ['Días corridos (L a D)', 'calendar_days'],
      ['Semanas', 'weeks'],
      ['Meses', 'months']
    ]

    @directions = [
      ['Hacia adelante', 'forward'],
      ['Hacia atrás', 'backward']
    ]
    super
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.27 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.26 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.25 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.24 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.24.pre.5 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.24.pre.4 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.24.pre.3 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.23 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.22 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.22.pre.3 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.22.pre.2 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.22.pre.1 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.11 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.10 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.9 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.8 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.7 pg_engine/app/components/date_selector_component.rb
pg_rails-7.6.21.pre.6 pg_engine/app/components/date_selector_component.rb