Module: Card::Set::All::EditInline::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod023-edit/all/edit_inline.rb

Instance Method Summary collapse

Instance Method Details

#cancel_in_place_button(args = {}) ⇒ Object



51
52
53
54
# File 'tmpsets/set/mod023-edit/all/edit_inline.rb', line 51

def cancel_in_place_button args={}
  args.reverse_merge! class: "cancel-button btn-sm", href: path
  cancel_button args
end


46
47
48
49
# File 'tmpsets/set/mod023-edit/all/edit_inline.rb', line 46

def edit_inline_link view=:edit_inline, align: :left
  align = align == :left ? "ml-2" : "ml-auto"
  link_to_view view, menu_icon, class: "#{align} edit-link", "data-cy": "edit-link"
end

#edit_row_fixed_width(title, content, edit_view) ⇒ Object



37
38
39
40
41
42
43
44
# File 'tmpsets/set/mod023-edit/all/edit_inline.rb', line 37

def edit_row_fixed_width title, content, edit_view
  class_up "card-slot", "d-flex"
  wrap do
    ["<label class='w-50px'>#{title}</label>",
     content,
     edit_inline_link(edit_view, align: :right)]
  end
end