%= render :partial => 'caboose_rets/residential/search_form' %>
<% if @properties.nil? || @properties == [] %>
No results found
<% else %>
<% @properties.each do |p| %>
-
<% if p.images && p.images.count > 0 %>
<% end %>
<% if !p.unit_num.nil? && p.unit_num.strip.length > 0 %>Unit <%= p.unit_num %>, <% end %><%= p.street_num %> <%= p.street_name.titleize %>
<% if p.agent %>
Listing Courtesy of <%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %>
<% if p.office %> with <%= p.office.name.titleize %><% end %>
<% end %>
<% if p.current_price != 0 %>$<%= p.current_price %><% end %>
<% if p.foreclosure_yn == 'Y' %>(Foreclosure)<% end %>
- <%= p.elem_school.titleize %>
- <%= p.middle_school.titleize %>
- <%= p.high_school.titleize %>
<%= p.mls_acct %>
<% if p.agent || p.office %>
<% end %>
<% if p.virtual_tour %><% end %>
<% end %>
<%= @gen.generate.html_safe %>
<% end %>