Module: Card::Set::Right::InputType::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb,
card/tmpsets/set/mod011-card-mod-edit/right/input_type.rb

Instance Method Summary collapse

Instance Method Details

#default_input_typeObject



19
20
21
# File 'card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb', line 19

def default_input_type
  :radio
end

#quick_editObject

def option_label_text option_name super.downcase end



31
32
33
# File 'card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb', line 31

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

#quick_editorObject



9
10
11
12
# File 'card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb', line 9

def quick_editor
  @submit_on_change = true
  super
end

#quick_form_optsObject



14
15
16
17
# File 'card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb', line 14

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

#raw_help_textObject



23
24
25
# File 'card/tmpsets/set/mod012-card-mod-edit/right/input_type.rb', line 23

def raw_help_text
  "edit interface for list cards"
end