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,304 @@
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="/residential/search" method="get" id='search_form'>
6
+ <h3 class="h-type-center h-space-mbs">Search Residential 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::ResidentialProperty.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="acreage">Acreage</label>
121
+ </div> <!-- .l-section -->
122
+ <section class="l-section-bevel m-select-combo">
123
+ <div class="m-select">
124
+ <select id="acreage_gte" name="acreage_gte">
125
+ <option value="" selected="selected">Select</option>
126
+ <% (0.0...10 ).step(0.5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 1) %></option><% end %>
127
+ <% (10...20 ).step( 1) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
128
+ <% (20...100 ).step( 5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
129
+ <% (100..1000).step( 50) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
130
+ </select>
131
+ </div> <!-- .m-select -->
132
+ <span>To</span>
133
+ <div class="m-select">
134
+ <select id="acreage_lte" name="acreage_lte">
135
+ <option value="" selected="selected">Select</option>
136
+ <% (0.0...10 ).step(0.5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 1) %></option><% end %>
137
+ <% (10...20 ).step( 1) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
138
+ <% (20...100 ).step( 5) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
139
+ <% (100..1000).step( 50) do |x| %><option value="<%= x %>"><%= number_with_delimiter(x, :precision => 0) %></option><% end %>
140
+ </select>
141
+ </div> <!-- .m-select -->
142
+ </section> <!-- .l-section-bevel -->
143
+ </div><!-- .grid-unit -->
144
+
145
+ </div> <!-- .grid-row -->
146
+
147
+ <div class="grid-row">
148
+ <div class="grid-unit-1of3">
149
+ <div class="l-section">
150
+ <label for="elem_school">Elementary School</label>
151
+ </div> <!-- .l-section -->
152
+ <div class="l-section-bevel">
153
+ <div class="m-select">
154
+ <select id="elem_school" name="elem_school">
155
+ <option value="">Select</option>
156
+ <% CabooseRets::ResidentialProperty.pluq('elem_school').each do |f| %>
157
+ <option value="<%= f %>"><%= f.titleize %></option>
158
+ <% end %>
159
+ </select>
160
+ </div> <!-- .l-section -->
161
+ </div> <!-- .m-select -->
162
+ </div> <!-- .grid-unit -->
163
+
164
+ <div class="grid-unit-1of3">
165
+ <div class="l-section">
166
+ <label for="middle_school">Middle School</label>
167
+ </div> <!-- .l-section -->
168
+
169
+ <div class="l-section-bevel">
170
+ <div class="m-select">
171
+ <select id="middle_school" name="middle_school">
172
+ <option value="">Select</option>
173
+ <% CabooseRets::ResidentialProperty.pluq('middle_school').each do |f| %>
174
+ <option value="<%= f %>"><%= f.titleize %></option>
175
+ <% end %>
176
+ </select>
177
+ </div> <!-- .m-select -->
178
+ </div> <!-- .l-section -->
179
+ </div> <!-- .grid-unit -->
180
+
181
+ <div class="grid-unit-1of3">
182
+ <div class="l-section">
183
+ <label for="high_school">High School</label>
184
+ </div> <!-- .l-section -->
185
+
186
+ <div class="l-section-bevel">
187
+ <div class="m-select">
188
+ <select id="high_school" name="high_school">
189
+ <option value="">Select</option>
190
+ <% CabooseRets::ResidentialProperty.pluq('high_school').each do |f| %>
191
+ <option value="<%= f %>"><%= f.titleize %></option>
192
+ <% end %>
193
+ </select>
194
+ </div> <!-- .m-select -->
195
+ </div> <!-- .l-section -->
196
+ </div> <!-- .grid-unit -->
197
+ </div> <!-- .grid-row -->
198
+
199
+ <div class="grid-row">
200
+ <div class="grid-unit-1of3">
201
+ <div class="l-section">
202
+ <label for="address_like">Street</label>
203
+ </div> <!-- .l-section -->
204
+
205
+ <div class="l-section-bevel">
206
+ <input id="address_like" name="address_like" type="text" class="fix_placeholder" placeholder="Street" />
207
+ </div> <!-- .l-section -->
208
+ </div> <!-- .grid-unit -->
209
+
210
+ <div class="grid-unit-1of3">
211
+ <div class="l-section">
212
+ <label for="neighborhood">Neighborhood</label>
213
+ </div> <!-- .l-section -->
214
+
215
+ <div class="l-section-bevel">
216
+ <div class="m-select">
217
+ <select id="subdivision" name="subdivision">
218
+ <option value="">Neighborhood</option>
219
+ <% CabooseRets::ResidentialProperty.pluq('subdivision').each do |f| %>
220
+ <option value="<%= f %>"><%= f.titleize %></option>
221
+ <% end %>
222
+ </select>
223
+ </div> <!-- .m-select -->
224
+ </div> <!-- .l-section -->
225
+ </div> <!-- .grid-unit -->
226
+
227
+ <div class="grid-unit-1of3">
228
+ <div class="l-section">
229
+ <label for="remarks_like">Search Keyword</label>
230
+ </div> <!-- .l-section -->
231
+
232
+ <div class="l-section-bevel">
233
+ <input id="remarks" name="remarks_like" type="text" class="fix_placeholder" placeholder="Keywords" />
234
+ </div>
235
+ </div> <!-- .grid-unit -->
236
+
237
+ </div> <!-- .grid-row -->
238
+
239
+ <div class="grid-row">
240
+
241
+ <div class="grid-unit-1of3">
242
+ <div class="l-section"><label for="latest">Show listings created when?</label></div>
243
+ <div class="l-section-bevel">
244
+ <div class="m-select">
245
+ <select id="date_created_gte" name="date_created_gte">
246
+ <option value="">All Listings</option>
247
+ <% d = DateTime.now - 3 %><option value="<%= d.strftime('%F') %>">In the past 3 days</option>
248
+ <% d = DateTime.now - 7 %><option value="<%= d.strftime('%F') %>">In the past 7 days</option>
249
+ <% d = DateTime.now - 30 %><option value="<%= d.strftime('%F') %>">In the past month</option>
250
+ </select>
251
+ </div> <!-- .l-section -->
252
+ </div> <!-- .m-select -->
253
+ </div> <!-- .grid-unit -->
254
+
255
+ <div class="grid-unit-1of3">
256
+ <section class="l-section">
257
+ <label class="h-float-left">Waterfront</label>
258
+ <label class="h-float-right">Golf Course</label>
259
+ </section> <!-- .l-section -->
260
+ <section class="l-section-bevel m-select-combo">
261
+ <div class="m-select">
262
+ <select id="waterfront" name="waterfront">
263
+ <option value="" selected="selected">Select</option>
264
+ <option value="Lake Tuscaloosa">Lake</option>
265
+ <option value="River">River</option>
266
+ <option value="Other">Other</option>
267
+ <option value="">No</option>
268
+ </select>
269
+ </div> <!-- .m-select -->
270
+ <div class="m-select">
271
+ <select id="ftr_lotdesc_like" name="ftr_lotdesc_like">
272
+ <option value="" selected="selected">Select</option>
273
+ <option value="golf">Yes</option>
274
+ <option value="">No</option>
275
+ </select>
276
+ </div> <!-- .m-select -->
277
+ </section>
278
+ </div> <!-- .grid-unit -->
279
+
280
+ <!--
281
+ <div class="grid-unit-1of3">
282
+ <div class="l-section"><label for="status">Property Status</label></div>
283
+ <div class="l-section-bevel">
284
+ <div class="m-select">
285
+ <select id="status" name="status">
286
+ <option value="">All</option>
287
+ <% CabooseRets::ResidentialProperty.pluq('status').each do |x| %>
288
+ <option value="<%= x %>" <% if x == 'Active'%> selected="selected" <% end %> ><%= x %></option>
289
+ <% end %>
290
+ </select>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ -->
295
+
296
+ <div class="l-section-drop">
297
+ <input class="m-btn-red btn-large" style='float:right;' type="submit" value="Search" onclick='search_properties(); return false;' />
298
+ </div> <!-- .l-section -->
299
+ </div>
300
+ </form> <!-- .l-grid -->
301
+
302
+ </div> <!-- .l-section -->
303
+ </div> <!-- .l-wrapper -->
304
+
@@ -0,0 +1,28 @@
1
+
2
+ <div class="l-wrapper">
3
+ <h3 class="h-type-center h-space-mbs">Saved Properties</h3>
4
+ <div class="l-sidebar-border inflate-tenor-baritone h-space-pvm">
5
+ <div class="sidebar-body l-grid-border">
6
+ <p></p>
7
+ <div class="l-grid inflate-baritone-bass listing">
8
+ <% if @properties.nil? || @properties == [] %>
9
+ <div class='no-results'>You don't have any saved properties.</div>
10
+ <% else %>
11
+ <% @properties.each do |saved_property| %>
12
+ <% next if saved_property.nil? || saved_property.property.nil? %>
13
+ <% p = saved_property.property %>
14
+ <% ptype = p.url.split('/')[1] %>
15
+ <%= render :partial => "caboose_rets/#{ptype}/table_row", :locals => { :p => p } %>
16
+ <% end %>
17
+ <% end %>
18
+ </div>
19
+ </div> <!-- .sidebar-body -->
20
+ </div> <!-- .l-sidebar -->
21
+ </div> <!-- .l-wrapper -->
22
+
23
+ <% content_for :caboose_js do %>
24
+ <script style="text/javascript">
25
+
26
+ </script>
27
+ <% end %>
28
+
@@ -1,139 +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
- <% tiny_img = "https://s3.amazonaws.com/advantagerealtygroup.com/residential/#{@property.mls_acct}_%d_tiny.jpg" %>
16
- <% large_img = "https://s3.amazonaws.com/advantagerealtygroup.com/residential/#{@property.mls_acct}_%d_large.jpg" %>
17
-
18
- <div class="l-wrapper">
19
- <div class="l-section">
20
- <div class="l-sidebar-border inflate-tenor-baritone">
21
- <div class="sidebar-aside">
22
- <% if @agent %>
23
- <div class="realtor_info">
24
- <h4>Advantage Agent</h4>
25
- <img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= @agent.id %>_thumb.jpg?<%= DateTime.now.strftime('%F') %>" alt="<%= @agent.first_name %> <%= @agent.last_name %>" />
26
- <br />
27
- <a href="/agents/<%= @agent.la_code %>"><%= @agent.first_name %> <%= @agent.last_name %></a><br>
28
- <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a>
29
- </div>
30
- <% end %>
31
- <address class="h-type-h5">
32
- <% if !@property.unit_num.nil? && @property.unit_num.strip.length > 0 %>Unit <%= @property.unit_num %>, <% end %>
33
- <%= @property.street_num %> <%= @property.street_name.titleize %><br />
34
- <%= @property.city.titleize %>, <%= @property.state %> <%= @property.zip %>
35
- </address>
36
- <p class="h-space-mvs h-type-highlight h-type-h4"> <%=h number_to_currency @property.current_price %>
37
- <% if @property.foreclosure_yn == 'Y' %>
38
- <br><span style='font-size: 0.8em; color: rgb(114, 114, 114);'>(Foreclosure)</span>
39
- <% end %>
40
- <!-- if @property.foreclosure_yn == 'Y' -->
41
- </p>
42
- <p class="h-space-mvs h-type-highlight h-type-h4">MLS #<%= @property.mls_acct %></p>
43
-
44
- <% if @property.street_num && @property.street_name && @property.city && @property.state && @property.zip %>
45
- <div class="m-map-small h-border h-space-mbm" address="<%= @property.street_num %> <%= @property.street_name %> <%= @property.city %>, <%= @property.state %> <%= @property.zip %>"></div>
46
- <% end %>
47
-
48
-
49
- <h4 class="h-space-mvt">Directions</h4>
50
- <p class="paragraph"><%= @property.directions %></p>
51
- <h4 class="h-space-mvt">Neighborhood Information</h4>
52
-
53
- <ul class="m-list-pad">
54
- <li><strong>Area</strong>: <%= @property.area.titleize %></li>
55
- <% if @property.subdivision %><li><strong>Subdivision</strong>: <%= @property.subdivision.titleize %></li><% end %>
56
- <% if @property.elem_school %><li><strong>Elementary School</strong>: <%= @property.elem_school.titleize %></li><% end %>
57
- <% if @property.middle_school %><li><strong>Middle School</strong>: <%= @property.middle_school.titleize %></li><% end %>
58
- <% if @property.high_school %><li><strong>High School</strong>: <%= @property.high_school.titleize %></li><% end %>
59
- <li><strong>County</strong>: <%= @property.county.titleize %></li>
60
- <li><strong>Lot Size</strong>: <%= @property.ftr_lotdesc %></li>
61
- </ul>
62
-
63
- <% if @agent %>
64
- <h4 class="h-space-mvt">Contact <%= @agent.first_name %> <%= @agent.last_name %> </h4>
65
- <% else %>
66
- <h4 class="h-space-mvt">Contact Advantage</h4>
67
- <% end %>
68
-
69
- <%= form_for @message, :url => "/contact/create", :html => { :class => "m-form", :'accept-charset' => "utf-8", :method => "POST" } do |f| %>
70
- <%= f.text_field :name, :placeholder => "Name", :value => "", :id => "contact_name", :maxlength => "150" %>
71
- <%= f.text_field :email, :placeholder => "Email", :value => "", :id => "contact_addres", :maxlength => "150" %>
72
- <%= f.text_area :body, :placeholder => "Message", :cols => "50", :rows => "4", :id => "contact_message", :class => "contact_message" %>
73
- <p class="h-space-mvs"><%= recaptcha_tags %></p>
74
- <input class="m-btn-red btn-large h-float-right h-space-mts" type="submit" value="Send" />
75
- <% end %>
76
-
77
- </div> <!-- .sidebar-aside -->
78
-
79
- <div class="sidebar-body">
80
-
81
- <div class="photos" style="text-align: center;">
82
- <% if @property.photo_count.to_i >= 1 %>
83
- <a class="photo" style="display: block; margin: 25px;" href="<%= large_img % 1 %>"><img src="<%= large_img % 1 %>"/></a>
84
- <div style="display: block;">
85
- <% (2..@property.photo_count.to_i).each do |i| %>
86
- <% if i != 2 && (i - 2) % 8 == 0 %></div><div style="display: block;"><% end %>
87
- <a class="photo" style="float: left; display: block; width: 12.5%; padding: 2px;" href="<%= large_img % i %>">
88
- <img style="display: block; width: 100%;" src="<%= tiny_img % i %>"/>
89
- </a>
90
- <% end %>
91
- </div>
92
- <% end %>
93
- </div>
94
- <div style="clear: both;"></div><br />
95
- <p class="paragraph"><%= @property.remarks %></p>
96
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Property Details</h4>
97
- <h5 class="h-type-standard">Single Family Home</h5>
98
-
99
- <ul class="m-list-bullet h-space-mts">
100
- <% if @property.price_sqft != "" %><li><strong>Price/Sq. Ft.</strong>: <span id='square_footage'><%=h number_to_currency @property.price_sqft %></span></li><% end %>
101
- <% if @property.bedrooms != "" %><li><strong>Bedrooms</strong>: <%= @property.bedrooms %></li><% end %>
102
- <% if @property.baths != "" %><li><strong>Baths</strong>: <%= @property.baths %> full <% if @property.baths_half != "" && @property.baths_half != "0" %> &amp; <%= @property.baths_half %> half baths<% end %></li><% end %>
103
- <% if @property.acreage != "" %><li><strong>Acreage</strong>: <%= @property.acreage %></li><% end %>
104
- </ul> <!-- .m-list-bullet -->
105
- <h4 class="h-type-standard h-type-highlight h-type-caps h-space-mts">Features</h4>
106
-
107
- <ul>
108
- <% if @property.ftr_interior %><li><strong>Interior</strong>: <%= @property.ftr_interior %> </li><% end %>
109
- <% if @property.ftr_cooling %><li><strong>Cooling</strong>: <%= @property.ftr_cooling %> </li><% end %>
110
- <% if @property.ftr_heating %><li><strong>Heating</strong>: <%= @property.ftr_heating %> </li><% end %>
111
- <% if @property.year_built %><li><strong>Year Built</strong>: <%= @property.year_built %> </li><% end %>
112
- </ul>
113
- <br>
114
- <% if @property.virtual_tour %><a class="m-btn h-space-mtm" href='<%= @property.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=<%= large_img % 1 %>" ></a>
117
- </div> <!-- .sidebar-body -->
118
- </div> <!-- .l-sidebar -->
119
- </div> <!-- .body-section -->
120
- </div> <!-- .l-wrapper -->
121
-
122
- <div class="body-sink"></div>
123
-
124
- <% content_for :caboose_js do %>
125
- <%= javascript_include_tag '//assets.pinterest.com/js/pinit.js' %>
126
- <%= javascript_include_tag 'details_colorbox' %>
127
- <script type="text/javascript">
128
-
129
- if (document.contains('square_footage')) {
130
- var str = document.getElementById('square_footage').innerHTML;
131
- str = str.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
132
- document.getElementById('square_footage').innerHTML = str;
133
- }
134
-
135
- <% if !flash[:notice].blank? %>
136
- alert('<%= flash[:notice] %>');
137
- <% end %>
138
- </script>
139
- <% end %>