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,161 +0,0 @@
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
- </ul>
67
-
68
- <% if @agent %>
69
- <h4 class="h-space-mvt">Contact <%= @agent.first_name %> <%= @agent.last_name %> </h4>
70
- <% else %>
71
- <h4 class="h-space-mvt">Contact Advantage</h4>
72
- <% end %>
73
-
74
- <form action='/contact/property' method='post' class="m-form" id="contact_form">
75
- <input type='hidden' name='authenticity_token' value="<%= form_authenticity_token %>" />
76
- <input type='hidden' name='contact_mls_acct' id='contact_mls_acct' value='<%= @property.mls_acct %>' />
77
- <input type='text' name='contact_name' id="contact_name" value='' placeholder="Name" maxlength="150" />
78
- <input type='text' name='contact_email' id="contact_email" value='' placeholder="Email" maxlength="150" />
79
- <textarea name='contact_body' id="contact_body" placeholder="Message" cols="50" rows="4" class="contact_message"></textarea>
80
- <p><%= recaptcha_tags %></p>
81
- <div id='contact_message'></div>
82
- <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>
83
- </form>
84
-
85
- </div> <!-- .sidebar-aside -->
86
-
87
- <div class="sidebar-body">
88
- <div class="photos" style="text-align: center;">
89
- <% if @property.images && @property.images.count > 0 %>
90
- <% large_img = @property.images[0].image_url(:large) %>
91
- <a class="photo" style="display: block; margin: 25px;" href="<%= large_img %>"><img src="<%= large_img %>"/></a>
92
- <div style="display: block;">
93
- <% @property.images.each_index do |i| %>
94
- <% next if i == 0 %>
95
- <% m = @property.images[i] %>
96
- <% if i != 2 && (i - 2) % 8 == 0 %></div><div style="display: block;"><% end %>
97
- <a class="photo" style="float: left; display: block; width: 12.5%; padding: 2px;" href="<%= m.image_url(:large) %>">
98
- <img style="display: block; width: 100%;" src="<%= m.image_url(:tiny) %>"/>
99
- </a>
100
- <% end %>
101
- </div>
102
- <% end %>
103
- </div>
104
- <div style="clear: both;"></div><br />
105
- <p class="paragraph"><%= @property.remarks %></p>
106
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Property Details</h4>
107
- <h5 class="h-type-standard">Single Family Home</h5>
108
-
109
- <ul class="m-list-bullet h-space-mts">
110
- <% if @property.price_sqft != "" %><li><strong>Price/Sq. Ft.</strong>: <span id='square_footage'><%=h number_to_currency @property.price_sqft %></span></li><% end %>
111
- <% if @property.acreage != "" %><li><strong>Acreage</strong>: <%= @property.acreage %></li><% end %>
112
- </ul> <!-- .m-list-bullet -->
113
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Features</h4>
114
-
115
- <ul>
116
- <% if @property.ftr_interior %><li><strong>Interior</strong>: <%= @property.ftr_interior %> </li><% end %>
117
- <% if @property.ftr_cooling %><li><strong>Cooling</strong>: <%= @property.ftr_cooling %> </li><% end %>
118
- </ul>
119
- <br>
120
-
121
- <a data-pin-do="buttonPin" data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=<%= request.original_url %>&amp;media=<%= large_img % 1 %>" ></a>
122
- </div> <!-- .sidebar-body -->
123
- </div> <!-- .l-sidebar -->
124
- </div> <!-- .body-section -->
125
- </div> <!-- .l-wrapper -->
126
-
127
- <div class="body-sink"></div>
128
-
129
- <% content_for :caboose_js do %>
130
- <%= javascript_include_tag "caboose_rets/caboose_rets" %>
131
- <%= javascript_include_tag '//assets.pinterest.com/js/pinit.js' %>
132
- <%= javascript_include_tag 'details_colorbox' %>
133
- <script type="text/javascript">
134
-
135
- CabooseRets.mls_acct = <%= @property.mls_acct %>;
136
-
137
- function post_contact_form()
138
- {
139
- $.ajax({
140
- url: '/contact/property',
141
- type: 'post',
142
- data: $('#contact_form').serialize(),
143
- success: function(resp) {
144
- if (resp.error) $('#contact_message').html("<p class='note error'>" + resp.error + "</p>");
145
- if (resp.success) $('#contact_message').html("<p class='note success'>" + resp.success + "</p>");
146
- if (resp.redirect) window.location = resp.redirect;
147
- }
148
- });
149
- }
150
-
151
- if (document.contains('square_footage')) {
152
- var str = document.getElementById('square_footage').innerHTML;
153
- str = str.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
154
- document.getElementById('square_footage').innerHTML = str;
155
- }
156
-
157
- <% if !flash[:notice].blank? %>
158
- alert('<%= flash[:notice] %>');
159
- <% end %>
160
- </script>
161
- <% end %>
@@ -1,63 +0,0 @@
1
- <!-- multi_family -->
2
- <div class="l-wrapper">
3
- <a class="m-btn h-space-mtm" href="/search/multi-family" id="show_search_form">Search Multi-family 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/multi_family" %>
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/multi_family/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: "multi_family",
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 = '/multi-family/search/' + data
60
- }
61
-
62
- </script>
63
- <% end %>
@@ -1,56 +0,0 @@
1
-
2
- <div class='grid-row'>
3
- <div class='grid-unit-1of4 list-part' id='list1'>
4
- <a href="/multi-family/<%= 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'>Sq. footage: <span class='sqfeet'> <%= p.tot_heat_sqft %></span></span> <br>
19
- </div>
20
- <span>MLS#: <%= p.mls_acct %></span>
21
- </div>
22
-
23
- <div class='grid-unit-1of4 list-part' id='list3'>
24
- <div class="list-schools">
25
- Schools:<br>
26
- <span class="school"> Elementary - <%= p.elem_school.titleize %></span> <br>
27
- <span class="school">Middle - <%= p.middle_school.titleize %></span> <br>
28
- <span class="school">High - <%= p.high_school.titleize %></span> <br>
29
- </div>
30
- <div class='desc-container'>
31
- <span class='description'><%= p.remarks %></span>
32
- </div>
33
- </div>
34
-
35
- <div class='grid-unit-1of4 list-part' id='list4'>
36
- <a href="/multi-family/<%= p.mls_acct %>/details" class="m-btn-ornate">
37
- <div class="btn-inner see-more">MORE DETAILS</div>
38
- </a>
39
- <br>
40
- <% if p.lo_code == '46' && p.agent %>
41
- <a href="/agents/<%= p.la_code %>" class="m-btn-ornate">
42
- <div class="btn-inner contact-btn">Contact <%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %></div>
43
- </a>
44
- <% else %>
45
- <a href="/agents/048540000" class="m-btn-ornate">
46
- <div class="btn-inner contact-btn">Contact Advantage</div>
47
- </a>
48
- <% end %>
49
- <br>
50
- <% unless defined? p.virtual_tour && p.virtual_tour %>
51
- <a href="<%= p.virtual_tour %>" class="m-btn-ornate">
52
- <div class="btn-inner contact-btn">Take Virtual Tour</div>
53
- </a>
54
- <% end %>
55
- </div>
56
- </div>
@@ -1,273 +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="/multi-family/search" method="get" id='search_form'>
6
- <h3 class="h-type-center h-space-mbs">Search Multi-Family 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
- <% (10000..50000).step(10000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
19
- <% (100000..1000000).step(50000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
20
- </select>
21
- </div> <!-- .m-select -->
22
-
23
- <span>To</span>
24
-
25
- <div class="m-select">
26
- <select id="current_price_lte" name="current_price_lte">
27
- <option value="" selected="selected">Select</option>
28
- <% (10000..50000).step(10000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
29
- <% (100000..1000000).step(50000) do |x| %><option value="<%= x %>"><%= number_to_currency(x, :precision => 0) %></option><% end %>
30
- </select>
31
- </div> <!-- .m-select -->
32
- </section> <!-- .l-section-bevel -->
33
- </div> <!-- .grid-unit -->
34
-
35
- <div class="grid-unit-1of3">
36
- <div class="l-section">
37
- <label class="h-float-left">How Many Beds?</label>
38
- </div> <!-- .l-section -->
39
-
40
- <section class="l-section-bevel m-select-combo">
41
- <div class="m-select">
42
- <select id="bedrooms_gte" name="bedrooms_gte">
43
- <option value="">Any</option>
44
- <% (1..5).each do |x| %><option value="<%= x %>"><%= x %></option><% end %>
45
- </select>
46
- </div> <!-- .m-select -->
47
-
48
- <span>To</span>
49
-
50
- <div class="m-select">
51
- <select id="bedrooms_lte" name="bedrooms_lte">
52
- <option value="">Any</option>
53
- <% (1..5).each do |x| %><option value="<%= x %>"><%= x %></option><% end %>
54
- </select>
55
- </div> <!-- .m-select -->
56
- </section> <!-- .l-section-bevel -->
57
- </div> <!-- .grid-unit -->
58
-
59
- <div class="grid-unit-1of3">
60
- <section class="l-section">
61
- <label for="prop_type">Property Type</label>
62
- </section> <!-- .l-section -->
63
-
64
- <div class="l-section-bevel">
65
- <div class="m-select">
66
- <select id="prop_type" name="prop_type">
67
- <option value="">Select</option>
68
- <% CabooseRets::MultiFamilyProperty.pluq('prop_type').each do |f| %>
69
- <option value="<%= f %>"> <%= f.titleize %></option>
70
- <% end %>
71
- </select>
72
- </div> <!-- .m-select -->
73
- </div> <!-- .l-section -->
74
- </div> <!-- .grid-unit -->
75
- </div> <!-- .grid-row -->
76
-
77
- <div class="grid-row">
78
- <div class="grid-unit-1of3">
79
- <div class="l-section">
80
- <label for="mls_acct">MLS #</label>
81
- </div> <!-- .l-section -->
82
-
83
- <div class="l-media">
84
-
85
- <div class="media-body">
86
- <div class="l-section-bevel">
87
- <input class="search-input" id="mls_acct" name="mls_acct" type="text" class="fix_placeholder" placeholder="Enter Here" />
88
- </div> <!-- .l-section -->
89
- </div> <!-- .sidebar-body -->
90
- </div> <!-- .l-media -->
91
- </div> <!-- .grid-unit -->
92
-
93
- <div class="grid-unit-1of3">
94
- <div class="l-section">
95
- <label for="tot_heat_sqft">Square Feet</label>
96
- </div> <!-- .l-section -->
97
-
98
- <section class="l-section-bevel m-select-combo">
99
- <div class="m-select">
100
- <select id="tot_heat_sqft_gte" name="tot_heat_sqft_gte">
101
- <option value="" selected="selected">Select</option>
102
- <% (250..4000).step(250) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
103
- </select>
104
- </div> <!-- .m-select -->
105
-
106
- <span>To</span>
107
-
108
- <div class="m-select">
109
- <select id="tot_heat_sqft_lte" name="tot_heat_sqft_lte">
110
- <option value="" selected="selected">Select</option>
111
- <% (250..4000).step(250) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x) %></option><% end %>
112
- </select>
113
- </div> <!-- .m-select -->
114
- </section> <!-- .l-section-bevel -->
115
-
116
- </div><!-- .grid-unit -->
117
-
118
- <div class="grid-unit-1of3">
119
- <div class="l-section">
120
- <label for="neighborhood">Neighborhood</label>
121
- </div> <!-- .l-section -->
122
-
123
- <div class="l-section-bevel">
124
- <div class="m-select">
125
- <select id="subdivision" name="subdivision">
126
- <option value="">Neighborhood</option>
127
- <% CabooseRets::MultiFamilyProperty.pluq('subdivision').each do |f| %>
128
- <option value="<%= f %>"><%= f.titleize %></option>
129
- <% end %>
130
- </select>
131
- </div> <!-- .m-select -->
132
- </div> <!-- .l-section -->
133
- </div> <!-- .grid-unit -->
134
- </div> <!-- .grid-row -->
135
-
136
- <div class="grid-row">
137
- <div class="grid-unit-1of3">
138
- <div class="l-section">
139
- <label for="elem_school">Elementary School</label>
140
- </div> <!-- .l-section -->
141
- <div class="l-section-bevel">
142
- <div class="m-select">
143
- <select id="elem_school" name="elem_school">
144
- <option value="">Select</option>
145
- <% CabooseRets::MultiFamilyProperty.pluq('elem_school').each do |f| %>
146
- <option value="<%= f %>"><%= f.titleize %></option>
147
- <% end %>
148
- </select>
149
- </div> <!-- .l-section -->
150
- </div> <!-- .m-select -->
151
- </div> <!-- .grid-unit -->
152
-
153
- <div class="grid-unit-1of3">
154
- <div class="l-section">
155
- <label for="middle_school">Middle School</label>
156
- </div> <!-- .l-section -->
157
-
158
- <div class="l-section-bevel">
159
- <div class="m-select">
160
- <select id="middle_school" name="middle_school">
161
- <option value="">Select</option>
162
- <% CabooseRets::MultiFamilyProperty.pluq('middle_school').each do |f| %>
163
- <option value="<%= f %>"><%= f.titleize %></option>
164
- <% end %>
165
- </select>
166
- </div> <!-- .m-select -->
167
- </div> <!-- .l-section -->
168
- </div> <!-- .grid-unit -->
169
-
170
- <div class="grid-unit-1of3">
171
- <div class="l-section">
172
- <label for="high_school">High School</label>
173
- </div> <!-- .l-section -->
174
-
175
- <div class="l-section-bevel">
176
- <div class="m-select">
177
- <select id="high_school" name="high_school">
178
- <option value="">Select</option>
179
- <% CabooseRets::MultiFamilyProperty.pluq('high_school').each do |f| %>
180
- <option value="<%= f %>"><%= f.titleize %></option>
181
- <% end %>
182
- </select>
183
- </div> <!-- .m-select -->
184
- </div> <!-- .l-section -->
185
- </div> <!-- .grid-unit -->
186
- </div> <!-- .grid-row -->
187
-
188
- <div class="grid-row">
189
- <div class="grid-unit-1of3">
190
- <div class="l-section">
191
- <label for="address_like">Street</label>
192
- </div> <!-- .l-section -->
193
-
194
- <div class="l-section-bevel">
195
- <input id="address_like" name="address_like" type="text" class="fix_placeholder" placeholder="Street" />
196
- </div> <!-- .l-section -->
197
- </div> <!-- .grid-unit -->
198
-
199
- <div class="grid-unit-1of3">
200
- <div class="l-section">
201
- <label for="remarks_like">Search Keyword</label>
202
- </div> <!-- .l-section -->
203
-
204
- <div class="l-section-bevel">
205
- <input id="remarks" name="remarks_like" type="text" class="fix_placeholder" placeholder="Keywords" />
206
- </div>
207
- </div> <!-- .grid-unit -->
208
-
209
- <div class="grid-unit-1of3">
210
- <section class="l-section">
211
- <label class="h-float-left">Waterfront</label>
212
- <label class="h-float-right">Golf Course</label>
213
- </section> <!-- .l-section -->
214
- <section class="l-section-bevel m-select-combo">
215
- <div class="m-select">
216
- <select id="waterfront" name="waterfront">
217
- <option value="" selected="selected">Select</option>
218
- <option value="Y">Yes</option>
219
- <option value="">No</option>
220
- </select>
221
- </div> <!-- .m-select -->
222
- <div class="m-select">
223
- <select id="ftr_lotdesc_like" name="ftr_lotdesc_like">
224
- <option value="" selected="selected">Select</option>
225
- <option value="golf">Yes</option>
226
- <option value="">No</option>
227
- </select>
228
- </div> <!-- .m-select -->
229
- </section>
230
- </div> <!-- .grid-unit -->
231
- </div> <!-- .grid-row -->
232
-
233
- <div class="grid-row">
234
-
235
- <div class="grid-unit-1of3">
236
- <div class="l-section"><label for="latest">Show listings created when?</label></div>
237
- <div class="l-section-bevel">
238
- <div class="m-select">
239
- <select id="date_created_gte" name="date_created_gte">
240
- <option value="">All Listings</option>
241
- <% d = DateTime.now - 3 %><option value="<%= d.strftime('%F') %>">In the past 3 days</option>
242
- <% d = DateTime.now - 7 %><option value="<%= d.strftime('%F') %>">In the past 7 days</option>
243
- <% d = DateTime.now - 30 %><option value="<%= d.strftime('%F') %>">In the past month</option>
244
- </select>
245
- </div> <!-- .l-section -->
246
- </div> <!-- .m-select -->
247
- </div> <!-- .grid-unit -->
248
-
249
- <!--
250
- <div class="grid-unit-1of3">
251
- <div class="l-section"><label for="status">Property Status</label></div>
252
- <div class="l-section-bevel">
253
- <div class="m-select">
254
- <select id="status" name="status">
255
- <option value="">All</option>
256
- <% CabooseRets::MultiFamilyProperty.pluq('status').each do |x| %>
257
- <option value="<%= x %>" <% if x == 'Active'%> selected="selected" <% end %> ><%= x %></option>
258
- <% end %>
259
- </select>
260
- </div>
261
- </div>
262
- </div>
263
- -->
264
-
265
- <div class="l-section-drop">
266
- <input class="m-btn-red btn-large" style='float:right;' type="submit" value="Search" onclick='search_properties(); return false;' />
267
- </div> <!-- .l-section -->
268
- </div>
269
- </form> <!-- .l-grid -->
270
-
271
-
272
- </div> <!-- .l-section -->
273
- </div> <!-- .l-wrapper -->