Sha256: 9c0924a23fefbf499b2568fa3596f6d3016a713dbf58fb3c268964a6b96454f5

Contents?: true

Size: 817 Bytes

Versions: 4

Compression:

Stored size: 817 Bytes

Contents

module ActiveScaffold
  module Helpers
    # Helpers that assist with the rendering of a Form Column
    module ConfigListHelpers

      def self.included(base)
        base.alias_method_chain :active_scaffold_includes, :cf_as
      end
      # Add the cf_as plugin includes
      def active_scaffold_includes_with_cf_as(frontend = :default)
        css = stylesheet_link_tag(ActiveScaffold::Config::Core.asset_path('cf_as-stylesheet.css', frontend))
        ie_css = stylesheet_link_tag(ActiveScaffold::Config::Core.asset_path("cf_as-stylesheet-ie.css", frontend))
        active_scaffold_includes_without_cf_as + "\n" + css + "\n<!--[if IE]>".html_safe + ie_css + "<![endif]-->\n".html_safe
      end

      def config_list_ol_id
        "ol_#{element_form_id(:action => :config_list)}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_scaffold_config_list_vho-3.1.0 lib/active_scaffold/helpers/config_list_helpers.rb
active_scaffold_config_list_vho-3.0.2 lib/active_scaffold/helpers/config_list_helpers.rb
active_scaffold_config_list_vho-3.0.1 lib/active_scaffold/helpers/config_list_helpers.rb
active_scaffold_config_list_vho-3.0.0 lib/active_scaffold/helpers/config_list_helpers.rb