Sha256: 5fdc236c4920540578e2814e9edf95fb37737c8dec39c550f1fc27a54c471b0c

Contents?: true

Size: 930 Bytes

Versions: 14

Compression:

Stored size: 930 Bytes

Contents

include_set Abstract::TemplatedNests

format :html do
  view :one_line_content do
    raw = _render_raw
    "#{card.type_name} : #{raw.present? ? raw : '<em>empty</em>'}"
  end

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

  def quick_editor
    wrap_type_formgroup do
      type_field class: "type-field rule-type-field _submit-on-select"
    end +
      wrap_content_formgroup do
        text_field :content, class: "d0-card-content _submit-after-typing"
      end
  end

  def visible_cardtype_groups
    hash = ::Card::Set::Self::Cardtype::GROUP.slice("Text",  "Data", "Upload")
    hash["Organize"] = ["List", "Pointer", "Link list", "Nest list"]
    hash
  end
end

def empty_ok?
  true
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
card-mod-content-0.13.4 set/right/default.rb
card-mod-content-0.13.3 set/right/default.rb
card-mod-content-0.13.2 set/right/default.rb
card-mod-content-0.13.1 set/right/default.rb
card-mod-content-0.13.0 set/right/default.rb
card-mod-content-0.11.7 set/right/default.rb
card-mod-content-0.12.0 set/right/default.rb
card-mod-content-0.11.6 set/right/default.rb
card-mod-content-0.11.5 set/right/default.rb
card-mod-content-0.11.4 set/right/default.rb
card-mod-content-0.11.3 set/right/default.rb
card-mod-content-0.11.2 set/right/default.rb
card-mod-content-0.11.1 set/right/default.rb
card-mod-content-0.11.0 set/right/default.rb