Module: Card::Set::Right::ContentOptions::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod009-card-mod-list/right/content_options.rb,
card/tmpsets/set/mod008-card-mod-list/right/content_options.rb

Instance Method Summary collapse

Instance Method Details

#quick_editObject



14
15
16
# File 'card/tmpsets/set/mod009-card-mod-list/right/content_options.rb', line 14

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

#quick_editorObject



18
19
20
21
22
23
24
25
# File 'card/tmpsets/set/mod009-card-mod-list/right/content_options.rb', line 18

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

#visible_cardtype_groupsObject



27
28
29
# File 'card/tmpsets/set/mod009-card-mod-list/right/content_options.rb', line 27

def visible_cardtype_groups
  { "Organize" => %w[List Pointer] }
end