Class: Alchemy::Admin::LinkDialog::ExternalTab
- Inherits:
-
BaseTab
- Object
- ViewComponent::Base
- BaseTab
- Alchemy::Admin::LinkDialog::ExternalTab
- 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
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_name ⇒ Object
11 12 13 |
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 11 def self.panel_name :external end |
Instance Method Details
#fields ⇒ Object
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 |
#message ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'app/components/alchemy/admin/link_dialog/external_tab.rb', line 23 def = content_tag("h3", Alchemy.t(:enter_external_link)) + content_tag("p", Alchemy.t(:external_link_notice_1)) + content_tag("p", Alchemy.t(:external_link_notice_2)) (:info, ) + content_tag("div", content_tag("ul"), id: "errors", class: "errors") end |