Sha256: 21a544f48994258b313284217e312b8d3ab2345ef768dd78d7c2c95f71254d83

Contents?: true

Size: 689 Bytes

Versions: 23

Compression:

Stored size: 689 Bytes

Contents

format :html do
  def quick_editor
    @submit_on_change = true
    super
  end

  def quick_form_opts
    super.merge "data-update-foreign-slot":
                ".card-slot.quick_edit-view.RIGHT-Xcontent_option_view"
  end

  def default_input_type
    :radio
  end

  def raw_help_text
    "edit interface for list cards"
  end

  # def option_label_text option_name
  #   super.downcase
  # end

  def quick_edit
    card.left.prototype_default_card.try(:show_input_type?) ? super : ""
  end
end

def option_names
  left.prototype_default_card&.try(:input_type_content_options) || super
end

def supports_content_option_view?
  item_name.in? ["checkbox", "radio", "filtered list"]
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
card-mod-edit-0.14.2 set/right/input_type.rb
card-mod-edit-0.14.1 set/right/input_type.rb
card-mod-edit-0.14.0 set/right/input_type.rb
card-mod-edit-0.13.4 set/right/input_type.rb
card-mod-edit-0.13.3 set/right/input_type.rb
card-mod-edit-0.13.2 set/right/input_type.rb
card-mod-edit-0.13.1 set/right/input_type.rb
card-mod-edit-0.13.0 set/right/input_type.rb
card-mod-edit-0.11.7 set/right/input_type.rb
card-mod-edit-0.12.0 set/right/input_type.rb
card-mod-edit-0.11.6 set/right/input_type.rb
card-mod-edit-0.11.5 set/right/input_type.rb
card-mod-edit-0.11.4 set/right/input_type.rb
card-mod-edit-0.11.3 set/right/input_type.rb
card-mod-edit-0.11.2 set/right/input_type.rb
card-mod-edit-0.11.1 set/right/input_type.rb
card-mod-edit-0.11.0 set/right/input_type.rb
card-1.100.0 mod/settings/set/right/input_type.rb
card-1.99.6 mod/settings/set/right/input_type.rb
card-1.99.5 mod/settings/set/right/input_type.rb