Sha256: 5a0dd9ba7c1c5a20fe0ef3185a50c410684546613d51387923a1f63406f8fd2a

Contents?: true

Size: 955 Bytes

Versions: 30

Compression:

Stored size: 955 Bytes

Contents

module Shop
  module Interface
    module Orders
      
      def self.included(base)
        base.send :include, InstanceMethods
      end
      
      module InstanceMethods
        attr_accessor :orders
        
        protected

        def load_default_shop_orders_regions
          returning OpenStruct.new do |orders|
            orders.edit = Radiant::AdminUI::RegionSet.new do |edit|
              edit.main.concat %w{head form popups}
              edit.form.concat %w{inputs meta parts foot}
              edit.foot.concat %w{buttons timestamp}
            end
            orders.new = orders.edit
            orders.index = Radiant::AdminUI::RegionSet.new do |index|
              index.head.concat %w{}
              index.body.concat %w{price status updated customer}
              index.foot.concat %w{buttons pagination}
            end
            orders.remove = orders.index
          end
        end
      end
      
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
radiant-shop-extension-0.94.8 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.7 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.6 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.5 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.4 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.3 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.2 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.1 lib/shop/interface/orders.rb
radiant-shop-extension-0.94.0 lib/shop/interface/orders.rb
radiant-shop-extension-0.93.3 lib/shop/interface/orders.rb
radiant-shop-extension-0.93.2 lib/shop/interface/orders.rb
radiant-shop-extension-0.93.1 lib/shop/interface/orders.rb
radiant-shop-extension-0.93.0 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.11 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.10 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.9 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.8 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.7 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.6 lib/shop/interface/orders.rb
radiant-shop-extension-0.92.3 lib/shop/interface/orders.rb