caboose-rets 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +5 -13
  2. data/app/controllers/caboose_rets/residential_controller.rb +24 -5
  3. data/app/models/caboose_rets/agent.rb +5 -1
  4. data/app/models/caboose_rets/rets_importer.rb +4 -3
  5. data/app/models/caboose_rets/schema.rb +41 -1
  6. data/app/views/caboose/blocks/_layout_rets.html.erb +56 -0
  7. data/app/views/caboose/blocks/_rets_agent_details.html.erb +88 -0
  8. data/app/views/caboose/blocks/_rets_agent_listings.html.erb +122 -0
  9. data/app/views/caboose/blocks/_rets_agents_index.html.erb +51 -0
  10. data/app/views/caboose/blocks/_rets_commercial_details.html.erb +192 -0
  11. data/app/views/caboose/blocks/_rets_commercial_headers.html.erb +17 -0
  12. data/app/views/caboose/blocks/_rets_commercial_index.html.erb +71 -0
  13. data/app/views/caboose/blocks/_rets_commercial_row.html.erb +39 -0
  14. data/app/views/caboose/blocks/_rets_commercial_search_form.html.erb +201 -0
  15. data/app/views/caboose/blocks/_rets_land_details.html.erb +165 -0
  16. data/app/views/caboose/blocks/_rets_land_index.html.erb +63 -0
  17. data/app/views/caboose/blocks/_rets_land_row.html.erb +58 -0
  18. data/app/views/caboose/blocks/_rets_land_search_form.html.erb +194 -0
  19. data/app/views/caboose/blocks/_rets_multifamily_details.html.erb +161 -0
  20. data/app/views/caboose/blocks/_rets_multifamily_index.html.erb +63 -0
  21. data/app/views/caboose/blocks/_rets_multifamily_row.html.erb +56 -0
  22. data/app/views/caboose/blocks/_rets_multifamily_search_form.html.erb +273 -0
  23. data/app/views/caboose/blocks/_rets_openhouse_details.html.erb +12 -0
  24. data/app/views/caboose/blocks/_rets_openhouses_index.html.erb +79 -0
  25. data/app/views/caboose/blocks/_rets_residential_details.html.erb +243 -0
  26. data/app/views/caboose/blocks/_rets_residential_index.html.erb +65 -0
  27. data/app/views/caboose/blocks/_rets_residential_row.html.erb +59 -0
  28. data/app/views/caboose/blocks/_rets_residential_search_form.html.erb +304 -0
  29. data/app/views/caboose/blocks/_rets_savedproperties_index.html.erb +28 -0
  30. data/app/views/caboose_rets/residential/details.html.erb +0 -139
  31. data/app/views/caboose_rets/residential/index.html.erb +0 -49
  32. data/lib/caboose_rets/version.rb +1 -1
  33. metadata +33 -9
@@ -0,0 +1,165 @@
1
+
2
+ <% content_for :caboose_css do %>
3
+ <style type="text/css">
4
+ #recaptcha_area, #recaptcha_table { width: auto !important; }
5
+ #recaptcha_image { width: 80% !important; }
6
+ #recaptcha_image img { width:80% !important; margin-left: -20%; padding: 0px; }
7
+ fieldset.captcha { width:100px !important; }
8
+ #recaptcha_container { margin: 0px; padding: 0px; width: 157px !important; }
9
+ input#recaptcha_response_field { padding: 0px; }
10
+ #recaptcha_widget_div { width: 150%; }
11
+ .realtor_info { background-color: white; padding: 10px; margin-bottom: 20px; text-align: center; border: 1px solid #d0d0d0;}
12
+ </style>
13
+ <% end %>
14
+
15
+ <div class="l-wrapper">
16
+ <div class="l-section">
17
+ <div class="l-sidebar-border inflate-tenor-baritone">
18
+ <div class="sidebar-aside">
19
+ <% if @agent %>
20
+ <div class="realtor_info">
21
+ <h4>Advantage Agent</h4>
22
+ <img src="<%= @agent.image_url(:thumb) %>?<%= DateTime.now.strftime('%F') %>" alt="<%= @agent.first_name %> <%= @agent.last_name %>" />
23
+ <br />
24
+ <a href="/agents/<%= @agent.la_code %>"><%= @agent.first_name %> <%= @agent.last_name %></a><br>
25
+ <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a>
26
+ <% co_agent = CabooseRets::Agent.where(:la_code => p.co_la_code).first %>
27
+ <% if co_agent %>
28
+ <h4>Advantage Co-Agent</h4>
29
+ <img src="<%= co_agent.image_url(:thumb) %>?<%= DateTime.now.strftime('%F') %>" alt="<% if co_agent.designation %><%= co_agent.designation %> <% end %><%= co_agent.first_name %> <%= co_agent.last_name %>" />
30
+ <br />
31
+ <a href="/agents/<%= co_agent.la_code %>"><%= co_agent.first_name %> <%= co_agent.last_name %></a><br>
32
+ <a href="tel:<%= co_agent.car_phone %>"><%= co_agent.car_phone %></a>
33
+ <% end %>
34
+ </div>
35
+ <% end %>
36
+ <address class="h-type-h5">
37
+ <% if !@property.unit_num.nil? && @property.unit_num.strip.length > 0 %>Unit <%= @property.unit_num %>, <% end %>
38
+ <%= @property.street_num %> <%= @property.street_name.titleize %><br />
39
+ <%= @property.city.titleize %>, <%= @property.state %> <%= @property.zip %>
40
+ </address>
41
+ <p class="h-space-mvs h-type-highlight h-type-h4"> <%=h number_to_currency @property.current_price %>
42
+ <!-- if @property.foreclosure_yn == 'Y' -->
43
+ </p>
44
+ <p class="h-space-mvs h-type-highlight h-type-h4">
45
+ MLS #<%= @property.mls_acct %>
46
+ <a id='save_property' class="button_to m-btn-red h-space-mtm" <% if @saved %>style="display:none;"<% end %>>Save Property</a>
47
+ <a id='unsave_property' class="button_to m-btn-red h-space-mtm" <% if !@saved %>style="display:none;"<% end %>>Unsave Property</a>
48
+ </p>
49
+
50
+ <% if @property.street_num && @property.street_name && @property.city && @property.state && @property.zip %>
51
+ <div class="m-map-small h-border h-space-mbm" address="<%= @property.street_num %> <%= @property.street_name %> <%= @property.city %>, <%= @property.state %> <%= @property.zip %>"></div>
52
+ <% end %>
53
+
54
+
55
+ <h4 class="h-space-mvt">Directions</h4>
56
+ <p class="paragraph"><%= @property.directions %></p>
57
+ <h4 class="h-space-mvt">Neighborhood Information</h4>
58
+
59
+ <ul class="m-list-pad">
60
+ <li><strong>Area</strong>: <%= @property.area.titleize %></li>
61
+ <% if @property.subdivision %><li><strong>Subdivision</strong>: <%= @property.subdivision.titleize %></li><% end %>
62
+ <% if @property.elem_school %><li><strong>Elementary School</strong>: <%= @property.elem_school.titleize %></li><% end %>
63
+ <% if @property.middle_school %><li><strong>Middle School</strong>: <%= @property.middle_school.titleize %></li><% end %>
64
+ <% if @property.high_school %><li><strong>High School</strong>: <%= @property.high_school.titleize %></li><% end %>
65
+ <li><strong>County</strong>: <%= @property.county.titleize %></li>
66
+ <li><strong>Lot Size</strong>: <%= @property.ftr_lotdesc %></li>
67
+ </ul>
68
+
69
+ <% if @agent %>
70
+ <h4 class="h-space-mvt">Contact <%= @agent.first_name %> <%= @agent.last_name %> </h4>
71
+ <% else %>
72
+ <h4 class="h-space-mvt">Contact Advantage</h4>
73
+ <% end %>
74
+
75
+ <form action='/contact/property' method='post' class="m-form" id="contact_form">
76
+ <input type='hidden' name='authenticity_token' value="<%= form_authenticity_token %>" />
77
+ <input type='hidden' name='contact_mls_acct' id='contact_mls_acct' value='<%= @property.mls_acct %>' />
78
+ <input type='text' name='contact_name' id="contact_name" value='' placeholder="Name" maxlength="150" />
79
+ <input type='text' name='contact_email' id="contact_email" value='' placeholder="Email" maxlength="150" />
80
+ <textarea name='contact_body' id="contact_body" placeholder="Message" cols="50" rows="4" class="contact_message"></textarea>
81
+ <p><%= recaptcha_tags %></p>
82
+ <div id='contact_message'></div>
83
+ <p><input class="m-btn-red btn-large h-float-right h-space-mts" type="submit" value="Send" onclick='post_contact_form(); return false;' /></p>
84
+ </form>
85
+
86
+ </div> <!-- .sidebar-aside -->
87
+
88
+ <div class="sidebar-body">
89
+ <div class="photos" style="text-align: center;">
90
+ <% if @property.images && @property.images.count > 0 %>
91
+ <% large_img = @property.images[0].image_url(:large) %>
92
+ <a class="photo" style="display: block; margin: 25px;" href="<%= large_img %>"><img src="<%= large_img %>"/></a>
93
+ <div style="display: block;">
94
+ <% @property.images.each_index do |i| %>
95
+ <% next if i == 0 %>
96
+ <% m = @property.images[i] %>
97
+ <% if i != 2 && (i - 2) % 8 == 0 %></div><div style="display: block;"><% end %>
98
+ <a class="photo" style="float: left; display: block; width: 12.5%; padding: 2px;" href="<%= m.image_url(:large) %>">
99
+ <img style="display: block; width: 100%;" src="<%= m.image_url(:tiny) %>"/>
100
+ </a>
101
+ <% end %>
102
+ </div>
103
+ <% end %>
104
+ </div>
105
+ <div style="clear: both;"></div><br />
106
+ <p class="paragraph"><%= @property.remarks %></p>
107
+ <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Property Details</h4>
108
+
109
+ <ul class="m-list-bullet h-space-mts">
110
+ <% if @property.acreage != "" %><li><strong>Acreage </strong>: <%= number_with_precision(@property.acreage, :precision => 2) %></li><% end %>
111
+ <% if @property.adjoining_land_use != "" %><li><strong>Adjoining land use </strong>: <%= @property.adjoining_land_use %></li><% end %>
112
+ <% if @property.date_created != "" %><li><strong>Date_created </strong>: <%= @property.date_created %></li><% end %>
113
+ <% if @property.date_modified != "" %><li><strong>Date_modified </strong>: <%= @property.date_modified %></li><% end %>
114
+ <% if @property.directions != "" %><li><strong>Directions </strong>: <%= @property.directions %></li><% end %>
115
+ <% if @property.ftr_access != "" %><li><strong>Road access </strong>: <%= @property.ftr_access %></li><% end %>
116
+ <% if @property.ftr_mineralrights != "" %><li><strong>Mineral rights </strong>: <%= @property.ftr_mineralrights %></li><% end %>
117
+ <% if @property.ftr_zoning != "" %><li><strong>Zoning </strong>: <%= @property.ftr_zoning %></li><% end %>
118
+ <% if @property.road_frontage_ft != "" %><li><strong>Road_frontage_ft </strong>: <%= @property.road_frontage_ft %></li><% end %>
119
+ <% if @property.sale_lease != "" %><li><strong>For sale or lease </strong>: <%= @property.sale_lease %></li><% end %>
120
+ <% if @property.subdivision != "" %><li><strong>Subdivision </strong>: <%= @property.subdivision %></li><% end %>
121
+ <% if @property.waterfront_yn != "" %><li><strong>Waterfront </strong>: <%= @property.waterfront_yn %></li><% end %>
122
+ </ul>
123
+ <br>
124
+
125
+ <a data-pin-do="buttonPin" data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=<%= request.original_url %>&amp;media=<%= @property.images && @property.images.count > 0 ? @property.images[0].image_url(:large) : '' %>" ></a>
126
+ </div> <!-- .sidebar-body -->
127
+ </div> <!-- .l-sidebar -->
128
+ </div> <!-- .body-section -->
129
+ </div> <!-- .l-wrapper -->
130
+
131
+ <div class="body-sink"></div>
132
+
133
+ <% content_for :caboose_js do %>
134
+ <%= javascript_include_tag "caboose_rets/caboose_rets" %>
135
+ <%= javascript_include_tag '//assets.pinterest.com/js/pinit.js' %>
136
+ <%= javascript_include_tag 'details_colorbox' %>
137
+ <script type="text/javascript">
138
+
139
+ CabooseRets.mls_acct = <%= @property.mls_acct %>;
140
+
141
+ function post_contact_form()
142
+ {
143
+ $.ajax({
144
+ url: '/contact/property',
145
+ type: 'post',
146
+ data: $('#contact_form').serialize(),
147
+ success: function(resp) {
148
+ if (resp.error) $('#contact_message').html("<p class='note error'>" + resp.error + "</p>");
149
+ if (resp.success) $('#contact_message').html("<p class='note success'>" + resp.success + "</p>");
150
+ if (resp.redirect) window.location = resp.redirect;
151
+ }
152
+ });
153
+ }
154
+
155
+ if (document.contains('square_footage')) {
156
+ var str = document.getElementById('square_footage').innerHTML;
157
+ str = str.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
158
+ document.getElementById('square_footage').innerHTML = str;
159
+ }
160
+
161
+ <% if !flash[:notice].blank? %>
162
+ alert('<%= flash[:notice] %>');
163
+ <% end %>
164
+ </script>
165
+ <% end %>
@@ -0,0 +1,63 @@
1
+ <!-- land -->
2
+ <div class="l-wrapper">
3
+ <a class="m-btn h-space-mtm" href="/search/land" id="show_search_form">Search Land Listings</a>
4
+ <% if session["app_user"] -%>
5
+ <% if @saved_search -%>
6
+ <a id='saved_searches_button' href='/saved-searches' class="button_to m-btn h-space-mtm">This search is saved. View Saved Searches.</a>
7
+ <% else %>
8
+ <a id="save_search_button" class="button_to m-btn-red h-space-mtm">Save Search</a>
9
+ <% end %>
10
+ <% else %>
11
+ <a href='/login?return_url=<%= request.fullpath %>' id='login' class="button_to m-btn-red h-space-mtm">Notify me of future listings that match this search</a>
12
+ <% end -%>
13
+
14
+ <%= render "layouts/search/land" %>
15
+
16
+ <div class="l-sidebar-border inflate-tenor-baritone h-space-pvm">
17
+ <div class="sidebar-body l-grid-border">
18
+ <p></p>
19
+ <div class="l-grid inflate-baritone-bass listing">
20
+ <% @properties = @properties.reject{|p|p.prop_type.blank?||p.mls_acct.blank?||p.street_num.blank?||p.street_name.blank?||p.nil?} %>
21
+ <% if @properties.nil? || @properties == [] %>
22
+ <div class='no-results'>No results found</div>
23
+ <% else %>
24
+ <% @properties.each do |p| %>
25
+ <%= render :partial => 'caboose_rets/land/table_row', :locals => { :p => p } %>
26
+ <% end %>
27
+ <%= @gen.generate.html_safe %>
28
+ <% end %>
29
+ </div>
30
+ </div> <!-- .sidebar-body -->
31
+ </div> <!-- .l-sidebar -->
32
+ </div> <!-- .l-wrapper -->
33
+
34
+ <% content_for :caboose_js do %>
35
+ <%= javascript_include_tag "caboose_rets/caboose_rets" %>
36
+ <%= javascript_include_tag "properties" %>
37
+ <script style="text/javascript">
38
+
39
+ CabooseRets.search_params = {
40
+ uri: "<%= request.fullpath %>",
41
+ property_type: "commercial",
42
+ params: <%= raw Caboose.json(@gen.params) %>
43
+ };
44
+
45
+ function input_val(el) {
46
+ t = $(el).attr('type');
47
+ if (t == 'button' || t == 'submit')
48
+ return false;
49
+ val = $(el).val();
50
+ placeholder = $(el).attr('placeholder');
51
+ if (val.length > 0 && (!placeholder || (placeholder && val != placeholder)))
52
+ return "" + $(el).attr('id') + "/" + val;
53
+ }
54
+ function search_properties() {
55
+ data = []
56
+ $('#search_form input' ).each(function(i, el) { v = input_val(el); if (v) data[data.length] = v; });
57
+ $('#search_form select' ).each(function(i, el) { v = input_val(el); if (v) data[data.length] = v; });
58
+ data = data.join('/');
59
+ window.location = '/land/search/' + data
60
+ }
61
+
62
+ </script>
63
+ <% end %>
@@ -0,0 +1,58 @@
1
+
2
+ <div class='grid-row'>
3
+ <div class='grid-unit-1of4 list-part' id='list1'>
4
+ <a href="/land/<%= p.mls_acct %>/details"><img src='<%= p.images && p.images.count > 0 ? p.images[0].image_url(:thumb) : "" %>' width="400" /></a><br>
5
+ <div id='list-meta'>
6
+ <span class='address'><% if !p.unit_num.nil? && p.unit_num.strip.length > 0 %>Unit <%= p.unit_num %>, <% end %><%= p.street_num %> <%= p.street_name.titleize %></span><br> <!-- , {city}, {state} {zip} -->
7
+ <% if p.lo_code != '46' %>
8
+ <span class="nonadvantage_agent"><% if p.owner_name && p.office && p.office.lo_name %>Listing Courtesy of <%= p.office.lo_name.titleize %><% end %></span>
9
+ <% else %>
10
+ <span class="advantage_agent"><% if p.agent %>Listing Courtesy of <%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %><% end %></span>
11
+ <% end %>
12
+ </div>
13
+ </div>
14
+
15
+ <div class='grid-unit-1of4 list-part' id='list2'>
16
+ <% if p.current_price != 0 %><span class='price'><%=h number_to_currency(p.current_price, :precision => 0) %></span><br><% end %>
17
+ <div class="info-meta">
18
+ <span class='list-info'>Acreage: <%= number_with_precision(p.acreage, :precision => 2) %></span><br>
19
+
20
+ </div>
21
+ <span>MLS#: <%= p.mls_acct %></span>
22
+ </div>
23
+
24
+ <div class='grid-unit-1of4 list-part' id='list3'>
25
+ <div class='list-schools'>Road Access: <%= p.ftr_access %></div>
26
+ <div class="list-schools">
27
+ <span class="school">Elementary - <%= p.elem_school.titleize %></span> <br>
28
+ <span class="school">Middle - <%= p.middle_school.titleize %></span> <br>
29
+ <span class="school">High - <%= p.high_school.titleize %></span> <br>
30
+ </div>
31
+
32
+ <div class='desc-container'>
33
+ <span class='description'><%= p.remarks %></span>
34
+ </div>
35
+ </div>
36
+
37
+ <div class='grid-unit-1of4 list-part' id='list4'>
38
+ <a href="/land/<%= p.mls_acct %>/details" class="m-btn-ornate">
39
+ <div class="btn-inner see-more">MORE DETAILS</div>
40
+ </a>
41
+ <br>
42
+ <% if p.lo_code == '46' && p.agent %>
43
+ <a href="/agents/<%= p.la_code %>" class="m-btn-ornate">
44
+ <div class="btn-inner contact-btn">Contact <%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %></div>
45
+ </a>
46
+ <% else %>
47
+ <a href="/agents/048540000" class="m-btn-ornate">
48
+ <div class="btn-inner contact-btn">Contact Advantage</div>
49
+ </a>
50
+ <% end %>
51
+ <br>
52
+ <% unless defined? p.virtual_tour && p.virtual_tour %>
53
+ <a href="<%= p.virtual_tour %>" class="m-btn-ornate">
54
+ <div class="btn-inner contact-btn">Take Virtual Tour</div>
55
+ </a>
56
+ <% end %>
57
+ </div>
58
+ </div>
@@ -0,0 +1,194 @@
1
+ <!-- <div class="body-sink"></div> -->
2
+
3
+ <div class="l-wrapper" id="search_form_drop">
4
+ <div class="l-section">
5
+ <form class="l-grid l-section h-space-mvm inflate-baritone" action="/land/search" method="get" id="search_form">
6
+ <h3 class="h-type-center h-space-mbs">Search Land Listings</h3>
7
+
8
+ <div class="grid-row">
9
+
10
+ <div class="grid-unit-1of3">
11
+ <section class="l-section">
12
+ <label class="h-float-left">Price Range</label>
13
+ </section> <!-- .l-section -->
14
+ <section class="l-section-bevel m-select-combo">
15
+ <div class="m-select">
16
+ <select id="current_price_gte" name="current_price_gte">
17
+ <option value="" selected="selected">Select</option>
18
+ <% (10000..100000).step(10000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
19
+ <% (100000..5000000).step(50000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
20
+ </select>
21
+ </div> <!-- .m-select -->
22
+ <span>To</span>
23
+ <div class="m-select">
24
+ <select id="current_price_lte" name="current_price_lte">
25
+ <option value="" selected="selected">Select</option>
26
+ <% (10000..100000).step(10000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
27
+ <% (100000..5000000).step(50000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
28
+ </select>
29
+ </div> <!-- .m-select -->
30
+ </section> <!-- .l-section-bevel -->
31
+ </div> <!-- .grid-unit -->
32
+
33
+ <div class="grid-unit-1of3">
34
+ <section class="l-section">
35
+ <label class="h-float-left">Acreage</label>
36
+ </section> <!-- .l-section -->
37
+ <section class="l-section-bevel m-select-combo">
38
+ <div class="m-select">
39
+ <select id="acreage_gte" name="acreage_gte">
40
+ <option value="" selected="selected">Select</option>
41
+ <% (1..9).each do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
42
+ <% (10..100).step(5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
43
+ </select>
44
+ </div> <!-- .m-select -->
45
+ <span>To</span>
46
+ <div class="m-select">
47
+ <select id="current_price_lte" name="current_price_lte">
48
+ <option value="" selected="selected">Select</option>
49
+ <% (1..9).each do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
50
+ <% (10..100).step(5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
51
+ </select>
52
+ </div> <!-- .m-select -->
53
+ </section> <!-- .l-section-bevel -->
54
+ </div> <!-- .grid-unit -->
55
+
56
+ <div class="grid-unit-1of3">
57
+ <section class="l-section">
58
+ <label for="property_type">Property Type</label>
59
+ </section> <!-- .l-section -->
60
+ <div class="l-section-bevel">
61
+ <div class="m-select">
62
+ <select id="prop_type" name="prop_type">
63
+ <option value="">Select</option>
64
+ <% CabooseRets::LandProperty.pluq('prop_type').each do |f| %>
65
+ <option value="<%= f %>"> <%= f.titleize %></option>
66
+ <% end %>
67
+ </select>
68
+ </div> <!-- .m-select -->
69
+ </div> <!-- .l-section -->
70
+ </div> <!-- .grid-unit -->
71
+
72
+ </div> <!-- .grid-row -->
73
+ <div class="grid-row">
74
+
75
+ <div class="grid-unit-1of3">
76
+ <div class="l-section">
77
+ <label for="street_name">Search Address</label>
78
+ </div> <!-- .l-section -->
79
+ <div class="l-section-bevel">
80
+ <input id="street_name" name="address" type="text" class="fix_placeholder" placeholder="Address" />
81
+ </div> <!-- .l-section -->
82
+ </div> <!-- .grid-unit -->
83
+
84
+ <div class="grid-unit-1of3">
85
+ <div class="l-section">
86
+ <label for="city">City</label>
87
+ </div> <!-- .l-section -->
88
+ <div class="l-section-bevel">
89
+ <div class="m-select">
90
+ <select name="city" id="city">
91
+ <option value="">Select</option>
92
+ <% CabooseRets::LandProperty.pluq('city').each do |f| %>
93
+ <option value="<%=f%>"><%=f.titleize%></option>
94
+ <% end %>
95
+ </select>
96
+ </div> <!-- .m-select -->
97
+ </div> <!-- .l-section -->
98
+ </div> <!-- .grid-unit -->
99
+
100
+ <div class="grid-unit-1of3">
101
+ <div class="l-section">
102
+ <label for="county">County</label>
103
+ </div> <!-- .l-section -->
104
+ <div class="l-section-bevel">
105
+ <div class="m-select">
106
+ <select name="county" id="county">
107
+ <option value="">Select</option>
108
+ <% CabooseRets::LandProperty.pluq('county').each do |f| %>
109
+ <option value="<%=f%>"><%=f.titleize%></option>
110
+ <% end %>
111
+ </select>
112
+ </div> <!-- .m-select -->
113
+ </div> <!-- .l-section -->
114
+ </div> <!-- .grid-unit -->
115
+
116
+
117
+
118
+ </div> <!-- .grid-row -->
119
+ <div class="grid-row">
120
+
121
+ <div class="grid-unit-1of3">
122
+ <div class="l-section">
123
+ <label for="zip">Zip</label>
124
+ </div> <!-- .l-section -->
125
+ <div class="l-section-bevel">
126
+ <div class="m-select">
127
+ <select name="zip" id="zip">
128
+ <option value="">Select</option>
129
+ <% CabooseRets::LandProperty.pluq('zip').each do |f| %>
130
+ <option value="<%=f%>"><%=f.titleize%></option>
131
+ <% end %>
132
+ </select>
133
+ </div> <!-- .m-select -->
134
+ </div> <!-- .l-section -->
135
+ </div> <!-- .grid-unit -->
136
+
137
+ <div class="grid-unit-1of3">
138
+ <div class="l-section">
139
+ <label for="search_mls">MLS#</label>
140
+ </div> <!-- .l-section -->
141
+ <div class="l-media">
142
+ <div class="media-body">
143
+ <div class="l-section-bevel">
144
+ <input class="search-input" id="mls_acct" name="mls_acct" type="text" class="fix_placeholder" placeholder="Enter Here" />
145
+ </div> <!-- .l-section -->
146
+ </div> <!-- .sidebar-body -->
147
+ </div> <!-- .l-media -->
148
+ </div> <!-- .grid-unit -->
149
+
150
+ <div class="grid-unit-1of3">
151
+ <section class="l-section">
152
+ <label class="h-float-left">Mineral Rights</label>
153
+ </section> <!-- .l-section -->
154
+ <section class="l-section-bevel">
155
+ <div class="m-select">
156
+ <select id="ftr_mineralrights" name="ftr_mineralrights">
157
+ <option value="" selected="selected">Select</option>
158
+ <% CabooseRets::LandProperty.pluq('ftr_mineralrights').each do |x| %><option value="<%= x %>"><%= x %></option><% end %>
159
+ </select>
160
+ </div> <!-- .m-select -->
161
+ </section> <!-- .l-section-bevel -->
162
+ </div> <!-- .grid-unit -->
163
+
164
+ </div> <!-- .grid-row -->
165
+ <div class="grid-row">
166
+
167
+ <div class="grid-unit-1of3">
168
+ <div class="l-section" style="visibility: hidden;"><label for="added_by_advantage">Show Advantage Properties Only</label></div>
169
+ <div class="l-section-bevel">
170
+ <label for="added_by_advantage">
171
+ <input id="added_by_advantage" type="checkbox" name="added_by_advantage" value="0"></input>
172
+ Only Show Advantage Properties
173
+ </label>
174
+ </div>
175
+ </div>
176
+
177
+ <div class="grid-unit-1of3">
178
+ <div class="l-section-drop">
179
+ <input class="m-btn-red btn-large" type="submit" value="Search" onclick='search_properties(); return false;' />
180
+ </div> <!-- .l-section -->
181
+ </div> <!-- .grid-unit -->
182
+
183
+ </div> <!-- .grid-row -->
184
+
185
+ <div class="grid-row">
186
+ <div class="grid-unit-1of3"></div> <!-- .grid-unit -->
187
+ <div class="grid-unit-1of3"></div> <!-- .grid-unit -->
188
+ <div class="grid-unit-1of3"></div> <!-- .grid-unit -->
189
+ </div> <!-- .grid-row -->
190
+
191
+ </form> <!-- .l-grid -->
192
+
193
+ </div> <!-- .l-section -->
194
+ </div> <!-- .l-wrapper -->