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,165 +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
- <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 %>
@@ -1,63 +0,0 @@
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 %>
@@ -1,58 +0,0 @@
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>
@@ -1,194 +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="/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 -->