Class: Alchemy::Admin::LinkDialog::ExternalTab

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

Instance Attribute Summary

Attributes inherited from BaseTab

#link_target, #link_title, #url

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseTab

#initialize, #is_selected?

Methods included from BaseHelper

#alchemy_body_class, #alchemy_datepicker, #button_with_confirm, #clipboard_select_tag_options, #current_alchemy_user_name, #delete_button, #hint_with_tooltip, #js_filter_field, #link_to_confirm_dialog, #link_to_dialog, #link_url_regexp, #page_layout_missing_warning, #render_alchemy_title, #render_hint_for, #sites_for_select, #toolbar_button, #translations_for_select

Methods included from NavigationHelper

#alchemy_main_navigation_entry, #entry_active?, #main_navigation_css_classes, #navigate_module, #sorted_alchemy_modules, #url_for_module, #url_for_module_sub_navigation

Methods included from BaseHelper

#page_or_find, #render_icon, #render_message, #shorten, #warning

Constructor Details

This class inherits a constructor from Alchemy::Admin::LinkDialog::BaseTab

Class Method Details

.panel_nameObject



11
12
13
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 11

def self.panel_name
  :external
end

Instance Method Details

#fieldsObject



15
16
17
18
19
20
21
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 15

def fields
  [
    url_input,
    title_input,
    target_select
  ]
end

#messageObject



23
24
25
26
27
28
29
30
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 23

def message
  main_message = ("h3", Alchemy.t(:enter_external_link)) +
    ("p", Alchemy.t(:external_link_notice_1)) +
    ("p", Alchemy.t(:external_link_notice_2))

  render_message(:info, main_message) +
    ("div", ("ul"), id: "errors", class: "errors")
end

#titleObject



7
8
9
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 7

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