Class: Alchemy::Admin::LinkDialog::InternalTab

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

Constant Summary collapse

PAGE_URL_PATTERN =
/^\/(?:(?<locale>[a-z]{2})(?:\/|$))?(?<urlname>.*?)(?:\/|$)?(?:#(?<fragment>.*))?$/

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



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

def self.panel_name
  :internal
end

Instance Method Details

#fieldsObject



17
18
19
20
21
22
23
24
# File 'app/components/alchemy/admin/link_dialog/internal_tab.rb', line 17

def fields
  [
    page_select,
    dom_id_select,
    title_input,
    target_select
  ]
end

#messageObject



26
27
28
29
30
# File 'app/components/alchemy/admin/link_dialog/internal_tab.rb', line 26

def message
  main_message = ("h3", Alchemy.t(:internal_link_headline)) +
    ("p", Alchemy.t(:internal_link_page_elements_explanation))
  render_message(:info, main_message)
end

#titleObject



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

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