Sha256: 2503d478ded1cf2ac19f97ecd12acae1489f3f0b32731e89f0197e364bd6eb50

Contents?: true

Size: 1009 Bytes

Versions: 28

Compression:

Stored size: 1009 Bytes

Contents

# -*- encoding : utf-8 -*-

class AddDatepicker < Card::Migration::Core
  HELP_TEXT = <<-TEXT.strip_heredoc
    Configure the date select tool using these available [[https://tempusdominus.github.io/bootstrap-4/Options/|options]]
  TEXT

  DEFAULT_CONFIG = <<-TEXT.strip_heredoc
    {
      "format": "YY-MM-DD",
      "useCurrent": true,
      "defaultDate": false
    }
  TEXT

  def up
    ensure_card "Date", codename: "date", type_id: Card::CardtypeID
    ensure_card "script: datepicker",
                codename: "script_datepicker", type_id: Card::JavaScriptID
    ensure_card "style: datepicker",
                codename: "style_datepicker", type_id: Card::ScssID
    ensure_card "script: datepicker config",
                codename: "script_datepicker_config", type_id: Card::CoffeeScriptID
    ensure_card "*datepicker",
                codename: "datepicker", type_id: Card::JsonID,
                content: DEFAULT_CONFIG
    ensure_card %i[datepicker self help], content: HELP_TEXT
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
card-mod-date-0.1 db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.100.0 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.6 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.5 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.4 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.3 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.2 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.1 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.99.0 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.98.3 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.98.2 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.98.1 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.98.0 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.97.0.1 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.97.0 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.96.8 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.96.7 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.96.6 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.96.5 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb
card-1.96.4 mod/date/db/migrate_core_cards/20180509141814_add_datepicker.rb