Class: Alchemy::Admin::LinkDialog::FileTab

Inherits:
BaseTab
  • Object
show all
Defined in:
app/components/alchemy/admin/link_dialog/file_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, #link_to_confirm_dialog, #link_to_dialog, #link_url_regexp, #page_layout_missing_warning, #render_alchemy_title, #render_hint_for, #sites_for_select, #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

#render_icon, #render_message, #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/file_tab.rb', line 13

def self.panel_name
  :file
end

Instance Method Details

#fieldsObject



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

def fields
  [
    attachment_select,
    title_input,
    target_select
  ]
end

#messageObject



25
26
27
# File 'app/components/alchemy/admin/link_dialog/file_tab.rb', line 25

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

#titleObject



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

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