Sha256: 0bc051ec8dc9b85a045e01c9fe8a6c6def69937388d4beeca8396382cf22f419

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 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}
            end
            orders.remove = orders.index
          end
        end
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-shop-extension-0.90.0 lib/shop/interface/orders.rb
radiant-shop-extension-0.11.6 lib/shop/interface/orders.rb