Sha256: 6199964e822fb62cfefd00d16067a17a8b310b0b3601aa4fedd86767ce5107ae

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

load File.join(Gem.loaded_specs['forgeos_core'].full_gem_path, 'app', 'helpers', 'admin', 'base_helper.rb')

module Admin::BaseHelper
  def block_container(model_name, block_name, block, &proc)
    content_tag :div, :class => 'block-container ui-corner-all' do
      content_tag(:span, :class => 'block-type') do
        content_tag(:span, content_tag(:span, ' ', :class => 'inner'), :class => 'handler') +
        block.model_name.human
      end +
      content_tag(:span, capture(&proc), :class => 'block-name') +
      link_to('', [:edit, :admin, block], :class => 'small-icons edit-link', :popup => true) +
      link_to('', '#', :class => 'big-icons gray-destroy') +
      hidden_field_tag("#{model_name}[#{block_name}_ids][]", block.id, :class => 'block-selected')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
forgeos_cms-1.9.4 app/helpers/admin/base_helper.rb
forgeos_cms-1.9.2 app/helpers/admin/base_helper.rb
forgeos_cms-1.9.1 app/helpers/admin/base_helper.rb