caboose-rets 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/caboose_rets/admin_media.js +7 -7
  3. data/app/assets/javascripts/caboose_rets/caboose_rets.js +8 -8
  4. data/app/controllers/caboose_rets/agents_controller.rb +67 -75
  5. data/app/controllers/caboose_rets/offices_controller.rb +4 -4
  6. data/app/controllers/caboose_rets/open_houses_controller.rb +3 -3
  7. data/app/controllers/caboose_rets/properties_controller.rb +160 -0
  8. data/app/controllers/caboose_rets/rets_controller.rb +2 -2
  9. data/app/controllers/caboose_rets/rets_media_controller.rb +13 -13
  10. data/app/controllers/caboose_rets/saved_properties_controller.rb +35 -35
  11. data/app/models/caboose_rets/agent.rb +42 -55
  12. data/app/models/caboose_rets/agent_meta.rb +7 -7
  13. data/app/models/caboose_rets/media.rb +63 -57
  14. data/app/models/caboose_rets/office.rb +35 -21
  15. data/app/models/caboose_rets/open_house.rb +15 -15
  16. data/app/models/caboose_rets/property.rb +203 -0
  17. data/app/models/caboose_rets/rets_importer.rb +193 -233
  18. data/app/models/caboose_rets/rets_importer_bak.rb +77 -77
  19. data/app/models/caboose_rets/rets_importer_old.rb +625 -0
  20. data/app/models/caboose_rets/saved_property.rb +4 -4
  21. data/app/models/caboose_rets/saved_search.rb +36 -33
  22. data/app/models/caboose_rets/schema.rb +324 -855
  23. data/app/models/caboose_rets/schema_past.rb +918 -0
  24. data/app/models/caboose_rets/search_option.rb +6 -6
  25. data/app/views/caboose/blocks/_layout_rets.html.erb +9 -6
  26. data/app/views/caboose/blocks/_rets_agent_listings.html.erb +3 -3
  27. data/app/views/caboose_rets/agents/index.html.erb +23 -40
  28. data/app/views/caboose_rets/media/admin_property_media.html.erb +2 -2
  29. data/app/views/caboose_rets/{residential → properties}/_search_form.html.erb +42 -42
  30. data/app/views/caboose_rets/{residential → properties}/admin_edit.html.erb +7 -7
  31. data/app/views/caboose_rets/{land → properties}/admin_index.html.erb +11 -11
  32. data/app/views/caboose_rets/properties/details.html.erb +127 -0
  33. data/app/views/caboose_rets/{land → properties}/index.html.erb +0 -0
  34. data/app/views/caboose_rets/{residential/residential_not_exists.html.erb → properties/property_not_exists.html.erb} +4 -5
  35. data/app/views/caboose_rets/{residential → properties}/test_form.html.erb +1 -1
  36. data/app/views/caboose_rets/rets/admin_import_form.html.erb +1 -1
  37. data/config/routes.rb +70 -55
  38. data/lib/caboose-rets.rb +1 -1
  39. data/lib/caboose_rets/engine.rb +3 -3
  40. data/lib/caboose_rets/version.rb +1 -1
  41. data/lib/rets/base/core.rb +1 -1
  42. data/lib/rets/base/sax_search.rb +1 -1
  43. data/lib/tasks/caboose_rets.rake +106 -17
  44. metadata +16 -50
  45. data/app/controllers/caboose_rets/commercial_controller.rb +0 -349
  46. data/app/controllers/caboose_rets/land_controller.rb +0 -144
  47. data/app/controllers/caboose_rets/multi_family_controller.rb +0 -107
  48. data/app/controllers/caboose_rets/residential_controller.rb +0 -163
  49. data/app/models/caboose_rets/commercial_property.rb +0 -214
  50. data/app/models/caboose_rets/land_property.rb +0 -144
  51. data/app/models/caboose_rets/multi_family_property.rb +0 -199
  52. data/app/models/caboose_rets/residential_property.rb +0 -236
  53. data/app/views/caboose/blocks/_rets_commercial_details.html.erb +0 -192
  54. data/app/views/caboose/blocks/_rets_commercial_headers.html.erb +0 -17
  55. data/app/views/caboose/blocks/_rets_commercial_index.html.erb +0 -71
  56. data/app/views/caboose/blocks/_rets_commercial_row.html.erb +0 -39
  57. data/app/views/caboose/blocks/_rets_commercial_search_form.html.erb +0 -201
  58. data/app/views/caboose/blocks/_rets_land_details.html.erb +0 -165
  59. data/app/views/caboose/blocks/_rets_land_index.html.erb +0 -63
  60. data/app/views/caboose/blocks/_rets_land_row.html.erb +0 -58
  61. data/app/views/caboose/blocks/_rets_land_search_form.html.erb +0 -194
  62. data/app/views/caboose/blocks/_rets_multifamily_details.html.erb +0 -161
  63. data/app/views/caboose/blocks/_rets_multifamily_index.html.erb +0 -63
  64. data/app/views/caboose/blocks/_rets_multifamily_row.html.erb +0 -56
  65. data/app/views/caboose/blocks/_rets_multifamily_search_form.html.erb +0 -273
  66. data/app/views/caboose/blocks/_rets_openhouse_details.html.erb +0 -12
  67. data/app/views/caboose/blocks/_rets_openhouses_index.html.erb +0 -79
  68. data/app/views/caboose/blocks/_rets_residential_details.html.erb +0 -243
  69. data/app/views/caboose/blocks/_rets_residential_index.html.erb +0 -65
  70. data/app/views/caboose/blocks/_rets_residential_row.html.erb +0 -59
  71. data/app/views/caboose/blocks/_rets_residential_search_form.html.erb +0 -304
  72. data/app/views/caboose_rets/commercial/admin_edit.html.erb +0 -269
  73. data/app/views/caboose_rets/commercial/admin_index.html.erb +0 -51
  74. data/app/views/caboose_rets/commercial/admin_new.html.erb +0 -57
  75. data/app/views/caboose_rets/commercial/details.html.erb +0 -0
  76. data/app/views/caboose_rets/commercial/index.html.erb +0 -87
  77. data/app/views/caboose_rets/land/admin_edit.html.erb +0 -156
  78. data/app/views/caboose_rets/land/details.html.erb +0 -0
  79. data/app/views/caboose_rets/multi_family/admin_edit.html.erb +0 -211
  80. data/app/views/caboose_rets/multi_family/admin_index.html.erb +0 -46
  81. data/app/views/caboose_rets/residential/admin_index.html.erb +0 -46
  82. data/app/views/caboose_rets/residential/details.html.erb +0 -0
  83. data/app/views/caboose_rets/residential/index.html.erb +0 -0
@@ -1,192 +0,0 @@
1
- <%
2
- # Commercial property details
3
- p = @property
4
- %>
5
-
6
- <div class="l-wrapper c-prop">
7
- <div class="l-section">
8
- <div class="l-sidebar-border inflate-tenor-baritone">
9
- <div class="sidebar-aside">
10
- <% if @agent %>
11
- <div class="realtor_info">
12
- <h4>Advantage Agent</h4>
13
- <img src="<%= @agent.image_url(:thumb) %>?<%= DateTime.now.strftime('%F') %>" alt="<% if @agent.designation %><%= @agent.designation %> <% end %><%= @agent.first_name %> <%= @agent.last_name %>" />
14
- <br />
15
- <a href="/agents/<%= @agent.la_code %>"><%= @agent.designation if agent.designation? %> <%= @agent.first_name %> <%= @agent.last_name %></a><br>
16
- <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a>
17
- <% co_agent = CabooseRets::Agent.where(:la_code => p.co_la_code).first %>
18
- <% if co_agent %>
19
- <h4>Advantage Co-Agent</h4>
20
- <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 %>" />
21
- <br />
22
- <a href="/agents/<%= co_agent.la_code %>"><%= co_agent.first_name %> <%= co_agent.last_name %></a><br>
23
- <a href="tel:<%= co_agent.car_phone %>"><%= co_agent.car_phone %></a>
24
- <% end %>
25
- </div>
26
- <% end %>
27
- <% if p.sale_lease %>
28
- <h4 class="h-type-highlight sale_lease"><%= p.sale_lease %></h4>
29
- <% end %>
30
- <address class="h-type-h5">
31
- <% if p.street_num && p.street_name %> <%= p.street_num %> <%= p.street_name.titleize %> <% end %><br />
32
- <%= p.city.titleize %>, <%= p.state %> <% if p.zip != '0' %> <%= p.zip %>
33
- </address>
34
-
35
- <!-- <p id="price" class="h-space-mvs h-type-highlight h-type-h4"><%=h number_to_currency(p.current_price, :precision => 0) %></p> -->
36
- <!--
37
- <% if p.sale_lease %>
38
- <p id="mls" class="h-space-mvs h-type-highlight h-type-h4">MLS #<%=p.mls_acct%></p>
39
- <% end %>
40
- -->
41
- <% if p.street_num && p.street_name && p.city && p.state && p.zip %>
42
- <div class="m-map-small h-border h-space-mbm" address="<%=p.street_num%> <%=p.street_name%> <%=p.city%>, <%=p.state%> <%=p.zip%>"></div>
43
- <% end %>
44
- <% if p.tot_heat_sqft.to_i > 0 %>
45
- <h4 class="h-space-mvt">Space Available</h4>
46
- <span class="sqfeet"><%= p.tot_heat_sqft %> RSF</span>
47
- <% end %>
48
- <h4 class="h-space-mvt">Property Details</h4>
49
-
50
- <ul class="details">
51
- <% if p.ftr_interior != "" %><li>Interior: <%= p.ftr_interior %></li><% end %>
52
- <% if p.ftr_cooling != "" %><li>Cooling: <%= p.ftr_cooling %></li><% end %>
53
- <% if p.ftr_heating != "" %><li>Heating: <%= p.ftr_heating %></li><% end %>
54
- <% if p.year_built != "" %><li>Year Built: <%= p.year_built %></li><% end %>
55
- <% if p.prop_type != "" %><li>Property Type: <%= p.prop_type %></li><% end %>
56
- <% if p.ftr_style != "" %><li>Style: <%= p.ftr_style %></li><% end %>
57
- <% if p.ftr_flooring != "" %><li>Flooring: <%= p.ftr_flooring %></li><% end %>
58
- </ul>
59
-
60
- <% if @agent %>
61
- <h4 class="h-space-mvt">Contact <%= @agent.designation if agent.designation? %> <%= @agent.first_name %> <%= @agent.last_name %> </h4>
62
- <% else %>
63
- <h4 class="h-space-mvt">Contact Advantage</h4>
64
- <% end %>
65
- <form action='/contact/property' method='post' class="m-form" id="contact_form">
66
- <input type='hidden' name='authenticity_token' value="<%= form_authenticity_token %>" />
67
- <input type='hidden' name='contact_mls_acct' id='contact_mls_acct' value='<%= @property.mls_acct %>' />
68
- <input type='text' name='contact_name' id="contact_name" value='' placeholder="Name" maxlength="150" />
69
- <input type='text' name='contact_email' id="contact_email" value='' placeholder="Email" maxlength="150" />
70
- <textarea name='contact_body' id="contact_body" placeholder="Message" cols="50" rows="4" class="contact_message"></textarea>
71
- <p><%= recaptcha_tags %></p>
72
- <div id='contact_message'></div>
73
- <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>
74
- </form>
75
-
76
- </div> <!-- .sidebar-aside -->
77
-
78
- <div class="sidebar-body">
79
- <h4><% if p.street_num && p.street_name %> <%= p.street_num %> <%= p.street_name.titleize %> <% end %></h4>
80
- <h5 class="h-space-mbm"><%= p.city.titleize %>, <%= p.state %></h5>
81
-
82
- <div class="photos" style="text-align: center;">
83
- <p>
84
- <input type='button' value='<' onclick='gallery.previous_image();' id='previous_image' />
85
- <input type='button' value='>' onclick='gallery.next_image();' id='next_image' />
86
- </p>
87
- <div id='large_image'></div>
88
- <div id='large_caption'></div>
89
- <div style="display: block;">
90
- <% @property.images.each_index do |i| %>
91
- <% m = @property.images[i] %>
92
- <% img = @property.images[i].image %>
93
- <a class="photo" id='image_trigger_<%= m.id %>' style="float: left; display: block; width: 12.5%; padding: 2px;" href="<%= m.image_url(:large) %>" data-index="<%= i %>">
94
- <img style="display: block; width: 100%;" src="<%= m.image_url(:thumb) %>"/>
95
- </a>
96
- <% end %>
97
- </div>
98
- </div>
99
- <div style="clear: both;"></div>
100
- <% if p.price_sqft.to_i > 0 %>
101
- <h4 class="h-type-standard h-type-highlight h-type-caps">Lease Rate</h4>
102
-
103
- <ul class="m-list-bullet h-space-mts lease_rate">
104
- <% if p.price_sqft != "" %><li><%=h number_to_currency p.price_sqft%> PSF</li><% end %>
105
- <!-- <% if p.acreage != "" %><li><strong>Acreage</strong>: <%=p.acreage%></li><% end %> -->
106
- </ul> <!-- .m-list-bullet -->
107
- <% end %>
108
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Property Comments</h4>
109
- <p class="paragraph"><%=p.remarks%></p><br />
110
- <p>Directions:</p>
111
- <p class="paragraph"><%=p.directions%></p>
112
-
113
- <br>
114
- <% if p.virtual_tour %><a href='<%= p.virtual_tour %>' target='_blank'>Virtual Tour</a><% end %>
115
-
116
- <a data-pin-do="buttonPin" data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=<%= request.original_url %>&amp;media=<%= @property.images[0].image_url(:large) %>" ></a>
117
- </div> <!-- .sidebar-body -->
118
- </div> <!-- .l-sidebar -->
119
- </div> <!-- .body-section -->
120
- </div> <!-- .l-wrapper -->
121
- <% end %>
122
-
123
-
124
- <div class="body-sink"></div>
125
-
126
- <% content_for :caboose_js do %>
127
- <%= javascript_include_tag "property_gallery" %>
128
- <%= javascript_include_tag "caboose_rets/caboose_rets" %>
129
- <%= javascript_include_tag '//assets.pinterest.com/js/pinit.js' %>
130
- <script type="text/javascript">
131
-
132
- CabooseRets.mls_acct = <%= @property.mls_acct %>;
133
-
134
- var gallery = false;
135
- $(document).ready(function() {
136
- var images = [];
137
- <%
138
- if @property.images && @property.images.count > 0
139
- @property.images.each_index do |i|
140
- m = @property.images[i]
141
- next if m.nil? || m.image.nil?
142
- %>
143
- images.push({
144
- thumb_url: <%= raw Caboose.json(m.image_url(:thumb)) %>,
145
- large_url: <%= raw Caboose.json(m.image_url(:large)) %>,
146
- caption: <%= raw Caboose.json(m.media_remarks) %>
147
- });
148
- <%
149
- end
150
- end
151
- %>
152
- gallery = new PropertyGallery({ images: images });
153
- gallery.show_image(0);
154
- });
155
-
156
- function post_contact_form()
157
- {
158
- $.ajax({
159
- url: '/contact/property',
160
- type: 'post',
161
- data: $('#contact_form').serialize(),
162
- success: function(resp) {
163
- if (resp.error) $('#contact_message').html("<p class='note error'>" + resp.error + "</p>");
164
- if (resp.success) $('#contact_message').html("<p class='note success'>" + resp.success + "</p>");
165
- if (resp.redirect) window.location = resp.redirect;
166
- }
167
- });
168
- }
169
-
170
- $.fn.digits = function() {
171
- return this.each(function(){
172
- $(this).text( $(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") );
173
- })
174
- }
175
- $('.sqfeet').digits();
176
-
177
- $(document).ready(function(){
178
- $('.photo').colorbox({rel:'photo'});
179
- });
180
-
181
- <% unless flash[:notice].blank? %>
182
- alert('<%= flash[:notice] %>');
183
- <% end %>
184
-
185
- </script>
186
- <% end %>
187
-
188
- <% content_for :caboose_css do %>
189
- <style type="text/css">
190
- .realtor_info { background-color: white; padding: 10px; margin-bottom: 20px; text-align: center; border: 1px solid #d0d0d0;}
191
- </style>
192
- <% end %>
@@ -1,17 +0,0 @@
1
- <div class="grid-row ctitles h-reveal-bass">
2
- <div class="grid-unit-1of5" id="clist1">
3
- <span>Property Address</span>
4
- </div>
5
- <div class="grid-unit-1of5" id="clist2">
6
- <span>Square FT</span>
7
- </div>
8
- <div class="grid-unit-1of5" id="clist3">
9
- <span>Sale Price</span>
10
- </div>
11
- <div class="grid-unit-1of5" id="clist4">
12
- <span>Lease Rate / Type</span>
13
- </div>
14
- <div class="grid-unit-1of5" id="clist5">
15
- <span>More Info</span>
16
- </div>
17
- </div>
@@ -1,71 +0,0 @@
1
- <!-- commercial -->
2
- <div class="l-wrapper">
3
- <a class="m-btn h-space-mtm" href="/search/commercial" id="show_search_form">Search Commercial 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" style="float:right;">Save Search</a>
9
- <% end %>
10
- <% else -%>
11
- <a 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/commercial" %>
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" id="clisting">
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
- <%= render :partial => 'caboose_rets/commercial/table_headers' %>
25
- <% @properties.each do |p| %>
26
- <%= render :partial => 'caboose_rets/commercial/table_row', :locals => { :p => p } %>
27
- <% end %>
28
- <%= @gen.generate.html_safe %>
29
- <% end %>
30
- </div>
31
- </div> <!-- .sidebar-body -->
32
- </div> <!-- .l-sidebar -->
33
- </div> <!-- .l-wrapper -->
34
-
35
- <% content_for :caboose_js do %>
36
-
37
- <%= javascript_include_tag "caboose_rets/caboose_rets" %>
38
- <%= javascript_include_tag "properties" %>
39
- <script>
40
-
41
- CabooseRets.search_params = {
42
- uri: "<%= request.fullpath %>",
43
- property_type: "commercial",
44
- params: <%= raw Caboose.json(@gen.params) %>
45
- };
46
-
47
- function input_val(el) {
48
- t = $(el).attr('type');
49
- if (t == 'button' || t == 'submit')
50
- return false;
51
- val = $(el).val();
52
- if (t == 'checkbox')
53
- {
54
- if ($(el).is(':checked'))
55
- return "" + $(el).attr('id') + "/" + val;
56
- return false
57
- }
58
- placeholder = $(el).attr('placeholder');
59
- if (val.length > 0 && (!placeholder || (placeholder && val != placeholder)))
60
- return "" + $(el).attr('id') + "/" + val;
61
- }
62
- function search_properties() {
63
- data = [];
64
- $('#search_form input' ).each(function(i, el) { v = input_val(el); if (v) data[data.length] = v; });
65
- $('#search_form select' ).each(function(i, el) { v = input_val(el); if (v) data[data.length] = v; });
66
- data = data.join('/');
67
- window.location = '/commercial/search/' + data;
68
- }
69
-
70
- </script>
71
- <% end %>
@@ -1,39 +0,0 @@
1
- <div class='grid-row'>
2
- <div class='grid-unit-1of5 list-part' id='clist1'>
3
- <a href="/commercial/<%= p.mls_acct %>/details" style=" width: 40%; ">
4
- <img src='<%= p.images && p.images.count > 0 ? p.images[0].image_url(:thumb) : '' %>' width="400" />
5
- </a>
6
- <div id='list-meta' style="max-width: 263px; width: 57%; ">
7
- <span class='caddress'><%= p.street_num %> <%= p.street_name.titleize %><br>
8
- <%= p.city.titleize %>, <%= p.state %>
9
-
10
- </span><br> <!-- , {city}, {state} {zip} -->
11
- </div>
12
- </div>
13
- <div class='grid-unit-1of5 list-part' id='clist2'>
14
- <% if p.tot_heat_sqft && p.tot_heat_sqft.to_i > 0 %>
15
- <span class="sqft"><%= number_with_delimiter(p.tot_heat_sqft.to_i, :delimiter => ',') %> sqft</span>
16
- <% else %>
17
- <span class="sqft">N/A</span>
18
- <% end %>
19
-
20
- </div>
21
- <div class='grid-unit-1of5 list-part' id='clist3'>
22
- <% if p.current_price && p.current_price.to_i > 0 %>
23
- <span class="cprice">$<%= p.current_price %></span>
24
- <% else %>
25
- <span class="cprice">N/A</span>
26
- <% end %>
27
- </div>
28
- <div class='grid-unit-1of5 list-part' id='clist4'>
29
- <% if p.sale_lease %>
30
- <span class="sale_lease"><%= p.sale_lease %></span>
31
- <% else %>
32
- <span class="sale_lease">N/A</span>
33
- <% end %>
34
- </div>
35
- <div class='grid-unit-1of5 list-part' id='clist5'>
36
- <!-- <img src="/assets/icon_pdf.png" alt="PDF" id="pdf_icon" class="h-reveal-bass" /> -->
37
- <span class="document"><a href="/commercial/<%= p.mls_acct %>/details">More Info</a></span>
38
- </div>
39
- </div>
@@ -1,201 +0,0 @@
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="/commercial/search" method="get" id="search_form">
6
- <h3 class="h-type-center h-space-mbs">Search Commercial Listings</h3>
7
-
8
- <div class="grid-row">
9
- <div class="grid-unit-1of3">
10
- <section class="l-section">
11
- <label class="h-float-left">Price Range</label>
12
- </section> <!-- .l-section -->
13
-
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
- <% (250000..5000000).step(250000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
19
- </select>
20
- </div> <!-- .m-select -->
21
-
22
- <span>To</span>
23
-
24
- <div class="m-select">
25
- <select id="current_price_lte" name="current_price_lte">
26
- <option value="" selected="selected">Select</option>
27
- <% (250000..5000000).step(250000) 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
- <div class="l-section">
35
- <label for="street_name">Search Address</label>
36
- </div> <!-- .l-section -->
37
-
38
- <div class="l-section-bevel">
39
- <input id="street_name" name="address" type="text" class="fix_placeholder" placeholder="Address" />
40
- </div> <!-- .l-section -->
41
- </div> <!-- .grid-unit -->
42
-
43
- <div class="grid-unit-1of3">
44
- <section class="l-section">
45
- <label for="property_type">Property Type</label>
46
- </section> <!-- .l-section -->
47
-
48
- <div class="l-section-bevel">
49
- <div class="m-select">
50
- <select id="style-like" name="prop_type">
51
- <option value="">Select</option>
52
- <% CabooseRets::CommercialProperty.pluq('prop_type').each do |f| %>
53
- <option value="<%= f %>"> <%= f.titleize %></option>
54
- <% end %>
55
- </select>
56
- </div> <!-- .m-select -->
57
- </div> <!-- .l-section -->
58
- </div> <!-- .grid-unit -->
59
- </div> <!-- .grid-row -->
60
-
61
- <div class="grid-row">
62
- <div class="grid-unit-1of3">
63
- <div class="l-section">
64
- <label for="search_mls">MLS#</label>
65
- </div> <!-- .l-section -->
66
-
67
- <div class="l-media">
68
-
69
- <div class="media-body">
70
- <div class="l-section-bevel">
71
- <input class="search-input" id="mls_acct" name="mls_acct" type="text" class="fix_placeholder" placeholder="Enter Here" />
72
- </div> <!-- .l-section -->
73
- </div> <!-- .sidebar-body -->
74
- </div> <!-- .l-media -->
75
- </div> <!-- .grid-unit -->
76
-
77
- <div class="grid-unit-1of3">
78
- <div class="l-section">
79
- <label for="square_feet">Square Feet</label>
80
- </div> <!-- .l-section -->
81
-
82
- <div class="l-section-bevel">
83
- <div class="m-select">
84
- <select id="acreage" name="sqft_gte">
85
- <option value="" selected="selected">Select</option>
86
- <% (250..4000).step(250) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
87
- </select>
88
- </div>
89
- </div>
90
- </div> <!-- .grid-unit -->
91
-
92
- <div class="grid-unit-1of3">
93
- <div class="l-section">
94
- <label for="zip">Zip</label>
95
- </div> <!-- .l-section -->
96
-
97
- <div class="l-section-bevel">
98
- <div class="m-select">
99
- <select name="zip" id="zip">
100
- <option value="">Select</option>
101
- <% CabooseRets::CommercialProperty.pluq('zip').each do |f| %>
102
- <option value="<%=f%>"><%=f.titleize%></option>
103
- <% end %>
104
- </select>
105
- </div> <!-- .m-select -->
106
- </div> <!-- .l-section -->
107
- </div> <!-- .grid-unit -->
108
- </div> <!-- .grid-row -->
109
-
110
- <div class="grid-row">
111
- <div class="grid-unit-1of3">
112
- <div class="l-section">
113
- <label for="city">City</label>
114
- </div> <!-- .l-section -->
115
-
116
- <div class="l-section-bevel">
117
- <div class="m-select">
118
- <select name="city" id="city">
119
- <option value="">Select</option>
120
- <% CabooseRets::CommercialProperty.pluq('city').each do |f| %>
121
- <option value="<%=f%>"><%=f.titleize%></option>
122
- <% end %>
123
- </select>
124
- </div> <!-- .m-select -->
125
- </div> <!-- .l-section -->
126
- </div> <!-- .grid-unit -->
127
-
128
- <div class="grid-unit-1of3">
129
- <div class="l-section">
130
- <label for="county">County</label>
131
- </div> <!-- .l-section -->
132
-
133
- <div class="l-section-bevel">
134
- <div class="m-select">
135
- <select name="county" id="county">
136
- <option value="">Select</option>
137
- <% CabooseRets::CommercialProperty.pluq('county').each do |f| %>
138
- <option value="<%=f%>"><%=f.titleize%></option>
139
- <% end %>
140
- </select>
141
- </div> <!-- .m-select -->
142
- </div> <!-- .l-section -->
143
- </div> <!-- .grid-unit -->
144
-
145
- <div class="grid-unit-1of3">
146
- <div class="l-section" style="visibility: hidden;"><label for="added_by_advantage">Show Advantage Properties Only</label></div>
147
-
148
- <div class="l-section-bevel">
149
- <label for="added_by_advantage">
150
- <input id="lo_code" type="checkbox" name="lo_code" value="46"></input>
151
- Only Show Advantage Properties
152
- </label>
153
- </div>
154
- </div>
155
- </div>
156
-
157
- <div class="grid-row">
158
-
159
- <!--
160
- <div class="grid-unit-1of3">
161
- <div class="l-section"><label for="status">Property Status</label></div>
162
- <div class="l-section-bevel">
163
- <div class="m-select">
164
- <select id="status" name="status">
165
- <option value="">All</option>
166
- <% CabooseRets::CommercialProperty.pluq('status').each do |x| %>
167
- <option value="<%= x %>" <% if x == 'Active' %> selected="selected" <% end %> ><%= x %></option>
168
- <% end %>
169
- </select>
170
- </div>
171
- </div>
172
- </div>
173
- -->
174
-
175
- <div class="grid-unit-1of3">&nbsp;&nbsp;
176
- </div>
177
-
178
- <div class="grid-unit-1of3">
179
- <div class="l-section-drop">
180
- <input class="m-btn-red btn-large" type="submit" value="Search" onclick='search_properties(); return false;' />
181
- </div> <!-- .l-section -->
182
- </div> <!-- .grid-unit -->
183
- </div> <!-- .grid-row -->
184
-
185
- <div class="grid-row">
186
- <div class="grid-unit-1of3">
187
-
188
- </div> <!-- .grid-unit -->
189
-
190
- <div class="grid-unit-1of3">
191
-
192
- </div> <!-- .grid-unit -->
193
-
194
- <div class="grid-unit-1of3">
195
-
196
- </div> <!-- .grid-unit -->
197
- </div> <!-- .grid-row -->
198
- </form> <!-- .l-grid -->
199
-
200
- </div> <!-- .l-section -->
201
- </div> <!-- .l-wrapper -->