caboose-rets 0.1.109 → 0.1.110

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 321d1c658cfa7056b5e0e3bf55c5d905a0d3da2f6403d2bfa3b47ba6f8f96ef7
4
- data.tar.gz: 9960e63351fe5d2f697877256b3f8475cf3a8ef0a8d70f2a2c90f247fcb63803
3
+ metadata.gz: 2adc076fdf43c0b9e9d9948970b0b31090520a6c64a81e960eabaa6d83255f1d
4
+ data.tar.gz: 840d13ee59a2931e37d0de57be38d78aa0ca7acfcb1c3fc9bf5579c9b8a7aaef
5
5
  SHA512:
6
- metadata.gz: a9b7a80abf6216e278c772f76768e0e48af7460f9602bc2366da21a1ceb605074beaa2fa899596e3f4c4d0a3dcb4839fb82ba3a2db6ad36d55b2f19d712db0ca
7
- data.tar.gz: a6dca4a88e6ae2c80c23d9200d021c8983b88f86b72ee78d17c128f98903a55afdb262b0157c321fb9cc7a86e27a4ad5ba1df9ebea8d204f33a226e28bac21d1
6
+ metadata.gz: 651fe55bfedfac2686d97c6e736f9b1bacf99c6b63c2645c78f330a948ab7c54d4308d6d60ea836a3bd036ee311a86d7982aa195b9101964019a0a521fe39c3b
7
+ data.tar.gz: 70abc7fe553432dcf39a67288d6587a4dd0b4583cbb24a855ddf7479cc72c23dd1e69146721628fce2b83a51af716434fd2d067646bb750fb6473f68f9518ee6
@@ -100,6 +100,7 @@ module CabooseRets
100
100
  when "bio" then meta.bio = v
101
101
  when "slug" then agent.slug = v
102
102
  when "hide" then meta.hide = v
103
+ when "weight" then meta.weight = v
103
104
  when "accepts_listings" then meta.accepts_listings = v
104
105
  end
105
106
  end
@@ -18,6 +18,7 @@ class CabooseRets::AgentMeta < ActiveRecord::Base
18
18
  :assistant_to ,
19
19
  :designation ,
20
20
  :image_location ,
21
- :accepts_listings
21
+ :accepts_listings,
22
+ :weight
22
23
 
23
24
  end
@@ -46,7 +46,8 @@ class CabooseRets::Schema < Caboose::Utilities::Schema
46
46
  [ :designation , :string ],
47
47
  [ :image_location , :string ],
48
48
  [ :image , :attachment ],
49
- [ :accepts_listings , :boolean , { :default => true }]
49
+ [ :accepts_listings , :boolean , { :default => true }],
50
+ [ :weight , :float ]
50
51
  ],
51
52
  CabooseRets::Office => [
52
53
  [ :lo_addr1 , :text ],
@@ -37,6 +37,8 @@
37
37
 
38
38
  <div id="agent_<%= @agent.id %>_accepts_listings"></div>
39
39
  <br />
40
+ <div id="agent_<%= @agent.id %>_weight"></div>
41
+ <br />
40
42
  <div id="agent_<%= @agent.id %>_hide"></div>
41
43
  <br />
42
44
  <div id="agent_<%= @agent.id %>_slug"></div>
@@ -82,6 +84,10 @@ $(document).ready(function() {
82
84
  attributes: [
83
85
  { name: 'accepts_listings', nice_name: 'Accepts Listings', type: 'checkbox', value: <%== Caboose.json(@agent_meta.accepts_listings) %>, width: 500, height: 300 },
84
86
  { name: 'hide', nice_name: 'Hide', type: 'checkbox', value: <%== Caboose.json(@agent_meta.hide) %>, width: 500, height: 300 },
87
+ { name: 'weight', nice_name: 'Listing Assignment Weight', type: 'select', value: <%== Caboose.json(@agent_meta.weight) %>, width: 500, options: [
88
+ <% (0..10).each do |ind| %>
89
+ {'text':'<%= ind %>','value':<%= ind %>},
90
+ <% end %>]},
85
91
  { name: 'slug', nice_name: 'Slug', type: 'text', value: <%== Caboose.json(@agent.slug) %>, width: 500 },
86
92
  { name: 'bio', nice_name: 'Bio', type: 'richtext', value: <%== Caboose.json(@agent_meta.bio) %>, width: 500, height: 300 },
87
93
  { name: 'image' , nice_name: 'Image' , type: 'image' , value: <%= raw Caboose.json(@agent_meta.image ? @agent_meta.image.url(:thumb) : 'http://placehold.it?300x300') %>, width: 150, update_url: '/admin/agents/<%= @agent.id %>/image' }
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.109'
2
+ VERSION = '0.1.110'
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.109
4
+ version: 0.1.110
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-02-28 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms