Class: Alchemy::Admin::LinkDialog::ProductTab

Inherits:
BaseTab
  • Object
show all
Defined in:
app/components/alchemy/admin/link_dialog/product_tab.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.panel_nameObject



17
18
19
# File 'app/components/alchemy/admin/link_dialog/product_tab.rb', line 17

def self.panel_name
  :product
end

.product_select_classObject



9
10
11
# File 'app/components/alchemy/admin/link_dialog/product_tab.rb', line 9

def self.product_select_class
  ProductSelect
end

Instance Method Details

#fieldsObject



21
22
23
24
25
26
27
# File 'app/components/alchemy/admin/link_dialog/product_tab.rb', line 21

def fields
  [
    product_select,
    title_input,
    target_select
  ]
end

#messageObject



29
30
31
# File 'app/components/alchemy/admin/link_dialog/product_tab.rb', line 29

def message
  render_message(:info, ("h3", Alchemy.t(:choose_product_to_link)))
end

#titleObject



13
14
15
# File 'app/components/alchemy/admin/link_dialog/product_tab.rb', line 13

def title
  Alchemy.t("link_overlay_tab_label.product")
end