caboose-rets 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/caboose_rets/agents_controller.rb +76 -119
- data/app/models/caboose_rets/agent.rb +2 -2
- data/app/models/caboose_rets/agent_meta.rb +5 -3
- data/app/models/caboose_rets/media.rb +2 -1
- data/app/models/caboose_rets/rets_importer.rb +2 -2
- data/app/models/caboose_rets/rets_plugin.rb +10 -10
- data/app/models/caboose_rets/schema.rb +2 -1
- data/app/views/caboose_rets/agents/admin_edit.html.erb +69 -14
- data/app/views/caboose_rets/agents/admin_edit_sort.html.erb +82 -0
- data/app/views/caboose_rets/agents/admin_index.html.erb +49 -39
- data/app/views/caboose_rets/agents/details.html.erb +8 -139
- data/app/views/caboose_rets/agents/index.html.erb +12 -144
- data/config/routes.rb +13 -13
- data/lib/caboose_rets/version.rb +1 -1
- metadata +21 -25
- data/app/views/caboose_rets/agents/_admin_top_nav.html.erb +0 -7
- data/app/views/caboose_rets/agents/admin_edit_bio.html.erb +0 -31
- data/app/views/caboose_rets/agents/admin_edit_contact_info.html.erb +0 -31
- data/app/views/caboose_rets/agents/admin_edit_mls_info.html.erb +0 -69
- data/app/views/caboose_rets/agents/listings.html.erb +0 -121
@@ -1,48 +1,58 @@
|
|
1
|
+
<%= raw @crumbtrail.print({
|
2
|
+
'/admin' => 'Admin',
|
3
|
+
'/admin/agents' => 'Agents'
|
4
|
+
}) %>
|
1
5
|
|
2
|
-
<
|
3
|
-
|
4
|
-
|
6
|
+
<h1>Agent</h1>
|
7
|
+
|
8
|
+
<% if @logged_in_user && @logged_in_user.is_allowed('add', 'agent') %>
|
9
|
+
<a href="/admin/agents/edit-sort" class="caboose-btn">Edit Sort Order</a>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
|
13
|
+
<div id='agents'></div>
|
5
14
|
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</form>
|
14
|
-
</div>
|
15
|
-
|
16
|
-
<% if @agents.count > 0 %>
|
17
|
-
<table class='data' id='agents_table'>
|
18
|
-
<tr>
|
19
|
-
<%= raw @gen.sortable_table_headings({
|
20
|
-
'la_code' => 'Agent Code',
|
21
|
-
'last_name, first_name' => 'Name',
|
22
|
-
'lo_code' => 'Office',
|
23
|
-
'hide' => 'Hide'
|
24
|
-
})
|
25
|
-
%>
|
26
|
-
</tr>
|
27
|
-
<% @agents.each do |a| %>
|
28
|
-
<% office = a.office %>
|
29
|
-
<tr onclick="window.location='/admin/agents/<%= a.id %>/edit';">
|
30
|
-
<td><%= a.la_code %></td>
|
31
|
-
<td><%= "#{a.first_name} #{a.last_name}" %></td>
|
32
|
-
<td><%= office ? office.lo_name : a.lo_code %></td>
|
33
|
-
<td><%= a.hide ? 'Yes' : 'No' %></td>
|
34
|
-
</tr>
|
35
|
-
<% end %>
|
36
|
-
</table>
|
37
|
-
<p><%= raw @gen.generate %></p>
|
38
|
-
<% else %>
|
39
|
-
<p>No agents met your search.</p>
|
15
|
+
<br /><br />
|
16
|
+
|
17
|
+
|
18
|
+
<% content_for :caboose_css do %>
|
19
|
+
<style>
|
20
|
+
#agents_new { display: none; }
|
21
|
+
</style>
|
40
22
|
<% end %>
|
41
23
|
|
24
|
+
|
42
25
|
<% content_for :caboose_js do %>
|
26
|
+
<%= javascript_include_tag 'caboose/model/all' %>
|
43
27
|
<script type='text/javascript'>
|
44
|
-
|
45
|
-
|
28
|
+
|
29
|
+
$(document).ready(function() {
|
30
|
+
var that = this;
|
31
|
+
var table = new IndexTable({
|
32
|
+
form_authenticity_token: '<%= form_authenticity_token %>',
|
33
|
+
container: 'agents',
|
34
|
+
base_url: '/admin/agents',
|
35
|
+
allow_bulk_edit: false,
|
36
|
+
allow_bulk_delete: false,
|
37
|
+
allow_duplicate: false,
|
38
|
+
allow_advanced_edit: true,
|
39
|
+
allow_bulk_import: false,
|
40
|
+
no_models_text: "You do not have access to edit any agent profiles.",
|
41
|
+
fields: [
|
42
|
+
{ show: true , editable: false, bulk_edit: false, name: 'first_name' , nice_name: 'First Name' , sort: 'first_name' , type: 'text' , value: function(r) { return r.first_name }, width: 200 },
|
43
|
+
{ show: true , editable: false, bulk_edit: false, name: 'last_name' , nice_name: 'Last Name' , sort: 'last_name' , type: 'text' , value: function(r) { return r.last_name }, width: 200 },
|
44
|
+
{ show: true , editable: false, bulk_edit: false, name: 'mls_id' , nice_name: 'MLS ID' , sort: 'mls_id' , type: 'text' , value: function(r) { return r.mls_id }, width: 200 }
|
45
|
+
],
|
46
|
+
new_model_text: 'New Agent',
|
47
|
+
new_model_fields: [
|
48
|
+
{ name: 'first_name', nice_name: 'First Name', type: 'text', width: 400 },
|
49
|
+
{ name: 'last_name', nice_name: 'Last Name', type: 'text', width: 400 }
|
50
|
+
],
|
51
|
+
search_fields: [
|
52
|
+
{ name: 'first_name_like' , nice_name: 'First Name' , type: 'text' },
|
53
|
+
{ name: 'last_name_like' , nice_name: 'Last Name' , type: 'text' }
|
54
|
+
]
|
55
|
+
});
|
46
56
|
});
|
47
57
|
</script>
|
48
58
|
<% end %>
|
@@ -1,140 +1,9 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
<h3>Meet Our Agents</h3>
|
9
|
-
|
10
|
-
<select class="h-conceal-tenor-baritone h-space-mbm" onchange="location=this.options[this.selectedIndex].value;">
|
11
|
-
<% @agents.each do |a| %>
|
12
|
-
<% next if !a.assistant_to.nil? && a.assistant_to.length > 0 %>
|
13
|
-
<option class="agent_name" value="/agents/<%= a.la_code %>/listings">
|
14
|
-
<%= a.first_name %> <%= a.last_name %>
|
15
|
-
</option>
|
16
|
-
<% end %>
|
17
|
-
</select>
|
18
|
-
|
19
|
-
<ul class="h-reveal-tenor-baritone">
|
20
|
-
<li><a href="/agents/048540000">Richard Ellis, Jr.</a>
|
21
|
-
<ul>
|
22
|
-
<% @agents.each do |as| %>
|
23
|
-
<% if as.assistant_to == "048540000" %>
|
24
|
-
<li class="assistant_name"><%= as.first_name %> <%= as.last_name %></li>
|
25
|
-
<% end %>
|
26
|
-
<% end %>
|
27
|
-
</ul>
|
28
|
-
</li>
|
29
|
-
<% @agents.each do |a| %>
|
30
|
-
<% next if !a.assistant_to.nil? && a.assistant_to.length > 0 %>
|
31
|
-
<% next if a.la_code == '048540000' %>
|
32
|
-
<li class="agent_name"><a class="agent_name" href="/agents/<%= a.la_code %>">
|
33
|
-
<%= a.first_name %> <%= a.last_name %>
|
34
|
-
</a>
|
35
|
-
<ul>
|
36
|
-
<% @agents.each do |as| %>
|
37
|
-
<% if as.assistant_to == a.la_code %>
|
38
|
-
<li class="assistant_name"><%= as.first_name %> <%= as.last_name %></li>
|
39
|
-
<% end %>
|
40
|
-
<% end %>
|
41
|
-
</ul>
|
42
|
-
</li>
|
43
|
-
<% end %>
|
44
|
-
</ul>
|
45
|
-
</div> <!-- .sidebar-aside -->
|
46
|
-
|
47
|
-
<div class="sidebar-body">
|
48
|
-
<% if @agent.la_code == '048540000' %>
|
49
|
-
<div class="h-space-mvm">
|
50
|
-
<% if @prev %><a class="m-btn-red" href="/agents/<%= @prev.la_code %>">Previous Agent</a> <% end %>
|
51
|
-
<% if @next %><a class="m-btn-red" href="/agents/<%= @next.la_code %>">Next Agent</a><% end %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class="l-media inflate-baritone">
|
55
|
-
<figure class="media-aside h-type-center">
|
56
|
-
<img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= @agent.id %>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" /></figure>
|
57
|
-
|
58
|
-
<div class="media-body">
|
59
|
-
<h4 class="agent_name">
|
60
|
-
<%= @agent.first_name %> <%= @agent.last_name %>
|
61
|
-
</h4>
|
62
|
-
|
63
|
-
<% if @agent.contact_info.nil? || @agent.contact_info.strip.length == 0 %>
|
64
|
-
<ul>
|
65
|
-
<% if @agent.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= @agent.office_phone %>"><%= @agent.office_phone %></a></li><% end %>
|
66
|
-
<% if @agent.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a></li><% end %>
|
67
|
-
<% if @agent.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= @agent.home_phone %>"><%= @agent.home_phone %></a></li><% end %>
|
68
|
-
<% if @agent.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= @agent.member_email %>"><%= @agent.member_email %></a></li><% end %>
|
69
|
-
</ul>
|
70
|
-
<% else %>
|
71
|
-
<%= raw @agent.contact_info %>
|
72
|
-
<% end %>
|
73
|
-
|
74
|
-
<p class="h-space-mvs"><a class="m-btn-red" href="/agents/<%= @agent.la_code %>/listings">See My Listings</a></p>
|
75
|
-
</div> <!-- .media-body -->
|
76
|
-
</div> <!-- .l-media -->
|
77
|
-
|
78
|
-
<article class="h-space-mtm"><%= raw @agent.bio %></article>
|
79
|
-
<% elsif @agent.la_code != "048540000" %>
|
80
|
-
<div class="h-space-mvm">
|
81
|
-
<% if @prev %><a class="m-btn-red" href="/agents/<%= @prev.la_code %>">Previous Agent</a> <% end %>
|
82
|
-
<% if @next %><a class="m-btn-red" href="/agents/<%= @next.la_code %>">Next Agent</a><% end %>
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div class="l-media">
|
86
|
-
<figure class="media-aside"><img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= @agent.id %>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" /></figure>
|
87
|
-
|
88
|
-
<div class="media-body">
|
89
|
-
<h4 class="agent_name">
|
90
|
-
<%= @agent.first_name %> <%= @agent.last_name %>
|
91
|
-
</h4>
|
92
|
-
|
93
|
-
<% if @agent.contact_info.nil? || @agent.contact_info.strip.length == 0 %>
|
94
|
-
<ul>
|
95
|
-
<% if @agent.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= @agent.office_phone %>"><%= @agent.office_phone %></a></li><% end %>
|
96
|
-
<% if @agent.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a></li><% end %>
|
97
|
-
<% if @agent.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= @agent.home_phone %>"><%= @agent.home_phone %></a></li><% end %>
|
98
|
-
<% if @agent.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= @agent.member_email %>"><%= @agent.member_email %></a></li><% end %>
|
99
|
-
</ul>
|
100
|
-
<% else %>
|
101
|
-
<%= raw @agent.contact_info %>
|
102
|
-
<% end %>
|
103
|
-
|
104
|
-
<p class="h-space-mvs"><a class="m-btn-red" href="/agents/<%= @agent.la_code %>/listings">See <%= @assistants.count > 0 ? 'Our' : 'My' %> Listings</a></p>
|
105
|
-
</div>
|
106
|
-
</div> <!-- .l-media -->
|
107
|
-
|
108
|
-
<article class="h-space-mtm"><%= raw @agent.bio %></article>
|
109
|
-
<% end %>
|
110
|
-
|
111
|
-
<% @assistants.each do |a| %>
|
112
|
-
<div class="l-media inflate-baritone h-space-mtl h-space-ptl" style="border-top: 1px solid #D0D0D0;">
|
113
|
-
<div class="media-aside">
|
114
|
-
<img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= a.id %>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" />
|
115
|
-
</div>
|
116
|
-
|
117
|
-
<div class="media-body">
|
118
|
-
<h4 class="agent_name">
|
119
|
-
<%= a.first_name %> <%= a.last_name %>
|
120
|
-
</h4>
|
121
|
-
<% if a.contact_info.nil? || a.contact_info.strip.length == 0 %>
|
122
|
-
<ul>
|
123
|
-
<% if a.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= a.office_phone %>"><%= a.office_phone %></a></li><% end %>
|
124
|
-
<% if a.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= a.car_phone %>"><%= a.car_phone %></a></li><% end %>
|
125
|
-
<% if a.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= a.home_phone %>"><%= a.home_phone %></a></li><% end %>
|
126
|
-
<% if a.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= a.member_email %>"><%= a.member_email %></a></li><% end %>
|
127
|
-
</ul>
|
128
|
-
<% else %>
|
129
|
-
<%= raw a.contact_info %>
|
130
|
-
<% end %>
|
131
|
-
<% if !a.bio.nil? && a.bio.strip.length > 0 %>
|
132
|
-
<%= raw a.bio %>
|
133
|
-
<% end %>
|
134
|
-
|
135
|
-
</div> <!-- .media-body -->
|
136
|
-
</div> <!-- .l-media -->
|
137
|
-
<% end %>
|
138
|
-
</div> <!-- .sidebar-body -->
|
1
|
+
<div class="agent-details">
|
2
|
+
<div class="constrain">
|
3
|
+
<h2><%= @agent.first_name %> <%= @agent.last_name %></h2>
|
4
|
+
<% if @agent.meta %>
|
5
|
+
<img src="<%= @agent.meta.image.url(:medium) %>" alt="<%= @agent.full_name %>" />
|
6
|
+
<div class="bio richtext"><%== @agent.meta.bio %></div>
|
7
|
+
<% end %>
|
139
8
|
</div>
|
140
|
-
</div>
|
9
|
+
</div>
|
@@ -1,146 +1,14 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
</
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<% @agents.each do |a| %>
|
12
|
-
<option class="agent_name" value="/agents/<%= a.mls_id %>/listings">
|
13
|
-
<%= a.first_name %> <%= a.last_name %>
|
14
|
-
</option>
|
15
|
-
<% end %>
|
16
|
-
</select>
|
17
|
-
|
18
|
-
<ul class="h-reveal-tenor-baritone">
|
19
|
-
<li><a href="/agents/048540000">Richard Ellis, Jr.</a></li>
|
20
|
-
<% @agents.each do |a| %>
|
21
|
-
<% next if a.mls_id == '048540000' %>
|
22
|
-
<li class="agent_name"><a class="agent_name" href="/agents/<%= a.mls_id %>">
|
23
|
-
<%= a.first_name %> <%= a.last_name %>
|
24
|
-
</a>
|
25
|
-
</li>
|
26
|
-
<% end %>
|
27
|
-
</ul>
|
28
|
-
</div> <!-- .sidebar-aside -->
|
29
|
-
|
30
|
-
|
31
|
-
<div class="sidebar-body">
|
32
|
-
<% if @agent.mls_id == '048540000' %>
|
33
|
-
<div class="h-space-mvm">
|
34
|
-
<% if @prev %><a class="m-btn-red" href="/agents/<%= @prev.mls_id %>">Previous Agent</a> <% end %>
|
35
|
-
<% if @next %><a class="m-btn-red" href="/agents/<%= @next.mls_id %>">Next Agent</a><% end %>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div class="l-media inflate-baritone">
|
39
|
-
<div style="width: 500px; height: 300px;">
|
40
|
-
<iframe src="//player.vimeo.com/video/77447854?title=0&byline=0&portrait=0&autoplay=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
41
|
-
<!--
|
42
|
-
<video preload autoplay height="281px" width="500px" controls>
|
43
|
-
<source src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/rich.webm" type="video/webm" />
|
44
|
-
<source src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/rich.mp4" type="video/mp4" />
|
45
|
-
Your browser does not support this video.
|
46
|
-
</video>
|
47
|
-
-->
|
48
|
-
</div>
|
49
|
-
<figure class="media-aside h-type-center"><img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%= @agent.id %>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" /></figure>
|
50
|
-
|
51
|
-
<div class="media-body">
|
52
|
-
<h4 class="agent_name">
|
53
|
-
<%= @agent.first_name %> <%= @agent.last_name %>
|
54
|
-
</h4>
|
55
|
-
|
56
|
-
<% if @agent.office_phone.nil? || @agent.office_phone.strip.length == 0 %>
|
57
|
-
<ul>
|
58
|
-
<% if @agent.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= @agent.office_phone %>"><%= @agent.office_phone %></a></li><% end %>
|
59
|
-
<% if @agent.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a></li><% end %>
|
60
|
-
<% if @agent.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= @agent.home_phone %>"><%= @agent.home_phone %></a></li><% end %>
|
61
|
-
<% if @agent.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= @agent.member_email %>"><%= @agent.member_email %></a></li><% end %>
|
62
|
-
</ul>
|
63
|
-
<% else %>
|
64
|
-
<%= raw @agent.office_phone %>
|
65
|
-
<% end %>
|
66
|
-
|
67
|
-
<p class="h-space-mvs"><a class="m-btn-red" href="/agents/<%= @agent.mls_id %>/listings">See My Listings</a></p>
|
68
|
-
</div> <!-- .media-body -->
|
69
|
-
</div> <!-- .l-media -->
|
70
|
-
|
71
|
-
<% if @agent.middle_name %><article class="h-space-mtm"><%= raw @agent.middle_name %></article> <% end %>
|
72
|
-
<% elsif @agent.mls_id != "048540000" %>
|
73
|
-
<div class="h-space-mvm">
|
74
|
-
<% if @prev %><a class="m-btn-red" href="/agents/<%= @prev.mls_id %>">Previous Agent</a> <% end %>
|
75
|
-
<% if @next %><a class="m-btn-red" href="/agents/<%= @next.mls_id %>">Next Agent</a><% end %>
|
76
|
-
</div>
|
77
|
-
|
78
|
-
<div class="l-media">
|
79
|
-
<figure class="media-aside"><img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%=@agent.id%>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" /></figure>
|
80
|
-
|
81
|
-
<div class="media-body">
|
82
|
-
<h4 class="agent_name">
|
83
|
-
<%= @agent.first_name %> <%= @agent.last_name %>
|
84
|
-
</h4>
|
85
|
-
|
86
|
-
<% if @agent.office_phone.nil? || @agent.office_phone.strip.length == 0 %>
|
87
|
-
<ul>
|
88
|
-
<% if @agent.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= @agent.office_phone %>"><%= @agent.office_phone %></a></li><% end %>
|
89
|
-
<% if @agent.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= @agent.car_phone %>"><%= @agent.car_phone %></a></li><% end %>
|
90
|
-
<% if @agent.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= @agent.home_phone %>"><%= @agent.home_phone %></a></li><% end %>
|
91
|
-
<% if @agent.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= @agent.member_email %>"><%= @agent.member_email %></a></li><% end %>
|
92
|
-
</ul>
|
93
|
-
<% else %>
|
94
|
-
<%= raw @agent.office_phone %>
|
95
|
-
<% end %>
|
96
|
-
|
97
|
-
<p class="h-space-mvs"><a class="m-btn-red" href="/agents/<%= @agent.mls_id %>/listings">See My Listings</a></p>
|
98
|
-
</div>
|
99
|
-
</div> <!-- .l-media -->
|
100
|
-
|
101
|
-
<article class="h-space-mtm"><%= raw @agent.bio %></article>
|
1
|
+
<div class="agents-wrapper">
|
2
|
+
<div class="constrain">
|
3
|
+
<h2>Our Agents</h2>
|
4
|
+
<div class="agent-grid">
|
5
|
+
<% @agents.each do |agent| %>
|
6
|
+
<% pic = agent.meta ? agent.meta.image.url(:large) : 'https://cabooseit.s3.amazonaws.com/assets/shared/default_profile.png' %>
|
7
|
+
<a href="/agents/<%= agent.mls_id %>" class="agent">
|
8
|
+
<div class="photo" style="background-image:url(<%= pic %>);"></div>
|
9
|
+
<h5><%= agent.first_name %> <%= agent.last_name %></h5>
|
10
|
+
</a>
|
102
11
|
<% end %>
|
103
|
-
|
104
|
-
<% @agents.each do |a| %>
|
105
|
-
<div class="l-media inflate-baritone h-space-mtl h-space-ptl" style="border-top: 1px solid #D0D0D0;">
|
106
|
-
<div class="media-aside">
|
107
|
-
<img src="https://s3.amazonaws.com/advantagerealtygroup.com/agents/<%=a.id%>_large.jpg?<%= DateTime.now.strftime('%F') %>" width="150" />
|
108
|
-
</div>
|
109
|
-
|
110
|
-
<div class="media-body">
|
111
|
-
<h4 class="agent_name">
|
112
|
-
<%= a.first_name %> <%= a.last_name %>
|
113
|
-
</h4>
|
114
|
-
|
115
|
-
<% if a.office_phone.nil? || a.office_phone.strip.length == 0 %>
|
116
|
-
<ul>
|
117
|
-
<% if a.office_phone.strip.length > 0 %><li>Work Phone: <a href="tel:<%= a.office_phone %>"><%= a.office_phone %></a></li><% end %>
|
118
|
-
<% if a.car_phone.strip.length > 0 %><li>Cell Phone: <a href="tel:<%= a.car_phone %>"><%= a.car_phone %></a></li><% end %>
|
119
|
-
<% if a.home_phone.strip.length > 0 %><li>Home Phone: <a href="tel:<%= a.home_phone %>"><%= a.home_phone %></a></li><% end %>
|
120
|
-
<% if a.member_email.strip.length > 0 %><li>Email: <a href="mailto:<%= a.member_email %>"><%= a.member_email %></a></li><% end %>
|
121
|
-
</ul>
|
122
|
-
<% else %>
|
123
|
-
<%= raw a.office_phone %>
|
124
|
-
<% end %>
|
125
|
-
<% if !a.middle_name.nil? && a.middle_name.strip.length > 0 %>
|
126
|
-
<%= raw a.middle_name %>
|
127
|
-
<% end %>
|
128
|
-
|
129
|
-
</div> <!-- .media-body -->
|
130
|
-
</div> <!-- .l-media -->
|
131
|
-
<% end %>
|
132
|
-
</div> <!-- .sidebar-body -->
|
12
|
+
</div>
|
133
13
|
</div>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
<script type="text/javascript">
|
137
|
-
agents = document.getElementsByClassName("agent_name");
|
138
|
-
for(i = 0; i < agents.length; i++){
|
139
|
-
if(agents[i].innerHTML == "Darren Mcausland" || agents[i] == "DARREN MCAUSLAND"){
|
140
|
-
agents[i].innerHTML = "Darren McAusland";
|
141
|
-
}
|
142
|
-
if(agents[i].innerHTML == "Linda Mccrory" || agents[i] == "LINDA MCCRORY"){
|
143
|
-
agents[i].innerHTML = "Linda Mccrory";
|
144
|
-
}
|
145
|
-
}
|
146
|
-
</script>
|
14
|
+
</div>
|
data/config/routes.rb
CHANGED
@@ -15,19 +15,19 @@ CabooseRets::Engine.routes.draw do
|
|
15
15
|
|
16
16
|
|
17
17
|
|
18
|
-
get "/agents" => "agents#index"
|
19
|
-
get "/agents/:la_code" => "agents#details"
|
20
|
-
get "/agents/:la_code/listings" => "agents#listings"
|
21
|
-
get "/admin/agents" => "agents#admin_index"
|
22
|
-
get "/admin/agents/assistant-to-options" => "agents#admin_assistant_to_options"
|
23
|
-
get "/admin/agents/options" => "agents#agent_options"
|
24
|
-
get "/admin/agents/:id/edit" => "agents#admin_edit"
|
25
|
-
get "/admin/agents/:id/edit-bio" => "agents#admin_edit_bio"
|
26
|
-
get "/admin/agents/:id/edit-contact-info" => "agents#admin_edit_contact_info"
|
27
|
-
get "/admin/agents/:id/edit-mls-info" => "agents#admin_edit_mls_info"
|
28
|
-
get "/admin/agents/:id/refresh" => "agents#admin_refresh"
|
29
|
-
put "/admin/agents/:id" => "agents#admin_update"
|
30
|
-
post "/admin/agents/:id" => "agents#admin_update"
|
18
|
+
# get "/agents" => "agents#index"
|
19
|
+
# get "/agents/:la_code" => "agents#details"
|
20
|
+
# get "/agents/:la_code/listings" => "agents#listings"
|
21
|
+
# get "/admin/agents" => "agents#admin_index"
|
22
|
+
# get "/admin/agents/assistant-to-options" => "agents#admin_assistant_to_options"
|
23
|
+
# get "/admin/agents/options" => "agents#agent_options"
|
24
|
+
# get "/admin/agents/:id/edit" => "agents#admin_edit"
|
25
|
+
# get "/admin/agents/:id/edit-bio" => "agents#admin_edit_bio"
|
26
|
+
# get "/admin/agents/:id/edit-contact-info" => "agents#admin_edit_contact_info"
|
27
|
+
# get "/admin/agents/:id/edit-mls-info" => "agents#admin_edit_mls_info"
|
28
|
+
# get "/admin/agents/:id/refresh" => "agents#admin_refresh"
|
29
|
+
# put "/admin/agents/:id" => "agents#admin_update"
|
30
|
+
# post "/admin/agents/:id" => "agents#admin_update"
|
31
31
|
|
32
32
|
get "/open-houses" => "open_houses#index"
|
33
33
|
get "/open-houses/:id" => "open_houses#details"
|
data/lib/caboose_rets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-rets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|
@@ -67,15 +67,11 @@ files:
|
|
67
67
|
- app/views/caboose/blocks/_rets_agent_listings.html.erb
|
68
68
|
- app/views/caboose/blocks/_rets_agents_index.html.erb
|
69
69
|
- app/views/caboose/blocks/_rets_savedproperties_index.html.erb
|
70
|
-
- app/views/caboose_rets/agents/_admin_top_nav.html.erb
|
71
70
|
- app/views/caboose_rets/agents/admin_edit.html.erb
|
72
|
-
- app/views/caboose_rets/agents/
|
73
|
-
- app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
|
74
|
-
- app/views/caboose_rets/agents/admin_edit_mls_info.html.erb
|
71
|
+
- app/views/caboose_rets/agents/admin_edit_sort.html.erb
|
75
72
|
- app/views/caboose_rets/agents/admin_index.html.erb
|
76
73
|
- app/views/caboose_rets/agents/details.html.erb
|
77
74
|
- app/views/caboose_rets/agents/index.html.erb
|
78
|
-
- app/views/caboose_rets/agents/listings.html.erb
|
79
75
|
- app/views/caboose_rets/media/admin_property_media.html.erb
|
80
76
|
- app/views/caboose_rets/offices/admin_edit.html.erb
|
81
77
|
- app/views/caboose_rets/offices/admin_index.html.erb
|
@@ -164,36 +160,36 @@ signing_key:
|
|
164
160
|
specification_version: 4
|
165
161
|
summary: Library to download RETS data to a local website.
|
166
162
|
test_files:
|
167
|
-
- test/
|
163
|
+
- test/dummy/app/controllers/application_controller.rb
|
164
|
+
- test/dummy/app/views/layouts/application.html.erb
|
168
165
|
- test/dummy/app/assets/javascripts/application.js
|
169
166
|
- test/dummy/app/assets/stylesheets/application.css
|
170
|
-
- test/dummy/app/controllers/application_controller.rb
|
171
167
|
- test/dummy/app/helpers/application_helper.rb
|
172
|
-
- test/dummy/
|
173
|
-
- test/dummy/config/
|
174
|
-
- test/dummy/config/boot.rb
|
175
|
-
- test/dummy/config/database.yml
|
176
|
-
- test/dummy/config/environment.rb
|
177
|
-
- test/dummy/config/environments/development.rb
|
168
|
+
- test/dummy/config/routes.rb
|
169
|
+
- test/dummy/config/locales/en.yml
|
178
170
|
- test/dummy/config/environments/production.rb
|
171
|
+
- test/dummy/config/environments/development.rb
|
179
172
|
- test/dummy/config/environments/test.rb
|
173
|
+
- test/dummy/config/environment.rb
|
174
|
+
- test/dummy/config/application.rb
|
175
|
+
- test/dummy/config/database.yml
|
176
|
+
- test/dummy/config/boot.rb
|
180
177
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
181
|
-
- test/dummy/config/initializers/inflections.rb
|
182
178
|
- test/dummy/config/initializers/mime_types.rb
|
183
|
-
- test/dummy/config/initializers/secret_token.rb
|
184
179
|
- test/dummy/config/initializers/session_store.rb
|
185
180
|
- test/dummy/config/initializers/wrap_parameters.rb
|
186
|
-
- test/dummy/config/
|
187
|
-
- test/dummy/config/
|
181
|
+
- test/dummy/config/initializers/secret_token.rb
|
182
|
+
- test/dummy/config/initializers/inflections.rb
|
188
183
|
- test/dummy/config.ru
|
189
|
-
- test/dummy/
|
190
|
-
- test/dummy/
|
191
|
-
- test/dummy/public/
|
184
|
+
- test/dummy/script/rails
|
185
|
+
- test/dummy/Rakefile
|
186
|
+
- test/dummy/public/favicon.ico
|
192
187
|
- test/dummy/public/422.html
|
193
188
|
- test/dummy/public/500.html
|
194
|
-
- test/dummy/public/
|
195
|
-
- test/dummy/
|
189
|
+
- test/dummy/public/404.html
|
190
|
+
- test/dummy/db/test.sqlite3
|
191
|
+
- test/dummy/log/test.log
|
196
192
|
- test/dummy/README.rdoc
|
197
|
-
- test/dummy/script/rails
|
198
193
|
- test/integration/navigation_test.rb
|
194
|
+
- test/caboose_test.rb
|
199
195
|
- test/test_helper.rb
|