sellers_search_block.rb
502 Bytes
class SellersSearchBlock < Block
def self.description
_('A search for enterprises by products selled and local')
end
def self.short_description
_('Sellers search block')
end
def default_title
_('Search for sellers')
end
def content
title = self.title
lambda do
@categories = ProductCategory.find(:all)
@regions = Region.find(:all).select{|r|r.lat && r.lng}
render :file => 'search/_sellers_form', :locals => { :title => title }
end
end
end