caboose-rets 0.1.112 → 0.1.113

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eaa12b87505c9d91e48c090423f20c55b3297649594799921fb10955fdc1b60
4
- data.tar.gz: 7fc36eef402a43458df566af61e114fad725d9a9199511164e87e6504b307af8
3
+ metadata.gz: d5556798711d95dc0c5a824b21f70f688bfaf9aeb67b59bfc6fc6f30b7c30309
4
+ data.tar.gz: 1f9fad0552f89d7307605843cc0ef851fbab294d1295d2989ee9b41828f5b444
5
5
  SHA512:
6
- metadata.gz: 78b8bf8f06f03d302a86c775b4484ee4f61508118ca0c01565dd54acba110c23c67dab2cd8b6212b3fc058628d9359a7bfce6b4096838eff5681005218b587db
7
- data.tar.gz: e5ad425ababd702b9a08850ee68fd37a528ff748f4f4f9955f822fdc12106977c41569f9d7be32edc1fc4ca6c768d3a5b353c85611b3a48505ad34785e270a68
6
+ metadata.gz: e5e3289f87d3b4328d574f9166d98fdc59ec178cb5fe5b06ebde7c8488687fbc379aae063b2a1f5c2719454a53f9c9e1faa866a2ed1a8903aea7c9d49e9e1f00
7
+ data.tar.gz: a29099135e0850cf30812048b22820a92662c202e9d92dd66070659cb73eed260c3decf5454d06a26d1ba40deced23a2390800891fd03fa23c115f7b98e3ea10
@@ -1,61 +1,113 @@
1
1
  <h1>Edit Agent</h1>
2
2
 
3
- <p class="fixed">
4
- <span class="title">First Name</span>
5
- <span class="value"><%= @agent.first_name %></span>
6
- </p>
3
+ <div class="grid-row">
4
+ <div class="unit1of2 left">
5
+ <p class="fixed">
6
+ <span class="title">First Name</span>
7
+ <span class="value"><%= @agent.first_name %></span>
8
+ </p>
7
9
 
8
- <p class="fixed">
9
- <span class="title">Last Name</span>
10
- <span class="value"><%= @agent.last_name %></span>
11
- </p>
12
- <p class="fixed">
13
- <span class="title"><%= 'email'.titleize %></span>
14
- <span class="value"><%= @agent.email %></span>
15
- </p>
16
- <p class="fixed">
17
- <span class="title"><%= 'cell_phone'.titleize %></span>
18
- <span class="value"><%= @agent.cell_phone %></span>
19
- </p>
20
- <p class="fixed">
21
- <span class="title"><%= 'office_phone'.titleize %></span>
22
- <span class="value"><%= @agent.office_phone %></span>
23
- </p>
24
- <p class="fixed">
25
- <span class="title"><%= 'direct_work_phone'.titleize %></span>
26
- <span class="value"><%= @agent.direct_work_phone %></span>
27
- </p>
28
- <p class="fixed">
29
- <span class="title"><%= 'fax_phone'.titleize %></span>
30
- <span class="value"><%= @agent.fax_phone %></span>
31
- </p>
32
- <p class="fixed">
33
- <span class="title">MLS ID</span>
34
- <span class="value"><%= @agent.mls_id %></span>
35
- </p>
10
+ <p class="fixed">
11
+ <span class="title">Last Name</span>
12
+ <span class="value"><%= @agent.last_name %></span>
13
+ </p>
14
+ <p class="fixed">
15
+ <span class="title"><%= 'email'.titleize %></span>
16
+ <span class="value"><%= @agent.email %></span>
17
+ </p>
18
+ <p class="fixed">
19
+ <span class="title"><%= 'cell_phone'.titleize %></span>
20
+ <span class="value"><%= @agent.cell_phone %></span>
21
+ </p>
22
+ <p class="fixed">
23
+ <span class="title"><%= 'office_phone'.titleize %></span>
24
+ <span class="value"><%= @agent.office_phone %></span>
25
+ </p>
26
+ <p class="fixed">
27
+ <span class="title"><%= 'direct_work_phone'.titleize %></span>
28
+ <span class="value"><%= @agent.direct_work_phone %></span>
29
+ </p>
30
+ <p class="fixed">
31
+ <span class="title"><%= 'fax_phone'.titleize %></span>
32
+ <span class="value"><%= @agent.fax_phone %></span>
33
+ </p>
34
+ <p class="fixed">
35
+ <span class="title">MLS ID</span>
36
+ <span class="value"><%= @agent.mls_id %></span>
37
+ </p>
36
38
 
37
39
 
38
- <div id="agent_<%= @agent.id %>_accepts_listings"></div>
39
- <br />
40
- <div id="agent_<%= @agent.id %>_weight"></div>
41
- <br />
42
- <div id="agent_<%= @agent.id %>_hide"></div>
43
- <br />
44
- <div id="agent_<%= @agent.id %>_slug"></div>
40
+ <div id="agent_<%= @agent.id %>_accepts_listings"></div>
41
+ <br />
42
+ <div id="agent_<%= @agent.id %>_weight"></div>
43
+ <br />
44
+ <div id="agent_<%= @agent.id %>_hide"></div>
45
+ <br />
46
+ <div id="agent_<%= @agent.id %>_slug"></div>
45
47
 
46
- <div class="richtext-holder">
47
- <h5>Bio</h5>
48
- <div id="agent_<%= @agent.id %>_bio"></div>
48
+ <div class="richtext-holder">
49
+ <h5>Bio</h5>
50
+ <div id="agent_<%= @agent.id %>_bio"></div>
51
+ </div>
52
+
53
+ <div id="agent_<%= @agent.id %>_image"></div>
54
+
55
+ <div id="message"></div>
56
+ <br /><br />
57
+ <a href="/admin/agents" class="caboose-btn">Back to Agents</a>
58
+ </div>
59
+ <div class="unit1of2 right">
60
+ <% properties = CabooseRets::Property.where(:representative_agent_mui => @agent.mls_id).order('id desc').limit(100) %>
61
+ <% if properties.count > 0 %>
62
+ <h5>Assigned Listings (<%= properties.count %>)</h5>
63
+ <ul>
64
+ <% properties.each do |prop| %>
65
+ <li><a target="_blank" href="/properties/<%= prop.mls_number %>/details">MLS # <%= prop.mls_number %> - <%= prop.full_address %></a></li>
66
+ <% end %>
67
+ </ul>
68
+ <% end %>
69
+ </div>
49
70
  </div>
50
71
 
51
- <div id="agent_<%= @agent.id %>_image"></div>
52
72
 
53
- <div id="message"></div>
54
- <br /><br />
55
- <a href="/admin/agents" class="caboose-btn">Back to Agents</a>
56
73
 
57
74
  <% content_for :caboose_css do %>
58
75
  <style>
76
+ .mce-tinymce.mce-container {
77
+ max-width: 99%;
78
+ }
79
+ .grid-row {
80
+ padding: 10px 1%;
81
+ }
82
+ .unit1of2 h5 {
83
+ font-size: 18px;
84
+ margin: 0 0 10px 0;
85
+ }
86
+ .unit1of2.right ul {
87
+ list-style-type: none;
88
+ padding: 0;
89
+ }
90
+ .unit1of2.right ul li {
91
+ margin-bottom: 1px;
92
+ }
93
+ .unit1of2.right ul li a {
94
+ text-decoration: none;
95
+ font-size: 15px;
96
+ color: #5757b1;
97
+ }
98
+ .unit1of2.right ul li a:hover {
99
+ color: #b15757;
100
+ }
101
+ .grid-row .unit1of2 {
102
+ width: 50%;
103
+ float: left;
104
+ }
105
+ .unit1of2.left {
106
+ padding-right: 1%;
107
+ }
108
+ .unit1of2.right {
109
+ padding-left: 1%;
110
+ }
59
111
  p.fixed span.title {
60
112
  font-weight: bold;
61
113
  }
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.112'
2
+ VERSION = '0.1.113'
3
3
  end
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.112
4
+ version: 0.1.113
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.7.7
172
+ rubygems_version: 2.7.8
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Library to download RETS data to a local website.