caboose-rets 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2EyY2E5M2YyNGE3N2Q2NTJiNTM5MzA0ZmZlYmVjYWVlMGJkZTM4Nw==
4
+ NzkxMWRlMzdkMWNmZWE1NjE0MDY5NzMxMmUwYWFkOWZkMThmNGU5MQ==
5
5
  data.tar.gz: !binary |-
6
- NzRmNGE2YzA0ZTIxMWM2N2JkYWNjYzQ5ZWUwZjcyMDY2ZmFmYjhhMA==
6
+ YTk4YjllYzgwZDkwMmE2MjM4ZDBlNTU1YzJlYzgzZTdjMzc2ZTA1Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2ViNjNmNDQ1ODJiNzlkYzcwYzg0NWFlYmYzNjlhOTI4OTI4ODVlYzJjY2M3
10
- OWYyYjVjZGMyNzFiMTJhMjc1NTljY2RlZThhMGIzZWFjZjViN2UyMDFkZWQ4
11
- MzVhYjJkNWM5YzE3YTY3NjllNWJiOTBjZWI5MzQzNWIzMDIxOGU=
9
+ ZGJmOTY5YWJmODA1ZTU4NWI1NDM1YjczOGUwOTU4OThhZmU2MmUyOGZhYWE2
10
+ YjdmMDZlMGM5NzAwYTJhZjRkZjBkYjQxYThiYjc1MDY1OTI2NjA3MTBmOGQ0
11
+ OWQxZjgyZmM4MTk4YjM4ZGUwMzU0ZjZhYTk3MTdmMWFjMjg2Y2Q=
12
12
  data.tar.gz: !binary |-
13
- NTIxNzI0MDAwMzZlOWNkZTc0M2MzYTdlYzM5YWY0MDQxNzliYzI5MDNjNzhl
14
- ODdlZTRiMmU2YzdjMGMyOGFkZTE4ZjE4M2JhMjAyNDBjY2RkYjllYjNkMmJi
15
- NjYzOTZiOWY5MGYyOWFhOTQyZjU0YjdjZDkzOTdlODZiOWEzOTA=
13
+ NTk4NGE1NmJlNDVkYzY3Y2Q2OThkYzg4NDc1MWI2YjUzYjIxODJmMjE4MWUw
14
+ MjEzODUzYWYyMzg3M2Y4NzkxM2YyN2NiYmFiMjliNTFjMjZjMjAzYmU0Mzcy
15
+ OTRhNTlkM2E0OWZlZDViNGQ3MGE3OTg0MzY2M2M1MDE2YjZkN2I=
@@ -110,6 +110,8 @@ module CabooseRets
110
110
  agent.contact_info = value
111
111
  when 'bio'
112
112
  agent.bio = value
113
+ when 'designation'
114
+ agent.designation = value
113
115
  when 'assistant_to'
114
116
  agent.assistant_to = value
115
117
  if !value.nil? && value.length > 0 && Agent.exists?(:la_code => value)
@@ -3,6 +3,7 @@
3
3
 
4
4
  <div id='agent_<%= @agent.id %>_hide' ></div>
5
5
  <div id='agent_<%= @agent.id %>_assistant_to' ></div>
6
+ <div id='agent_<%= @agent.id %>_designation' ></div>
6
7
 
7
8
  <p style='clear: both;'><input type='button' value='< Back' onclick="window.location='/admin/agents';" /></p>
8
9
 
@@ -17,7 +18,8 @@ $(document).ready(function() {
17
18
  authenticity_token: '<%= form_authenticity_token %>',
18
19
  attributes: [
19
20
  { name: 'hide' , nice_name: 'Hide from website' , type: 'checkbox' , value: <%= raw @agent.hide %>, width: 400 },
20
- { name: 'assistant_to' , nice_name: 'Assistant To' , type: 'select' , value: <%= raw Caboose.json(@agent.assistant_to) %>, width: 400, text: <%= raw Caboose.json(@boss ? "#{@boss.first_name} #{@boss.last_name}" : 'empty') %>, options_url: '/admin/agents/assistant-to-options', empty_text: 'Not an assistant' }
21
+ { name: 'assistant_to' , nice_name: 'Assistant To' , type: 'select' , value: <%= raw Caboose.json(@agent.assistant_to) %>, width: 400, text: <%= raw Caboose.json(@boss ? "#{@boss.first_name} #{@boss.last_name}" : 'empty') %>, options_url: '/admin/agents/assistant-to-options', empty_text: 'Not an assistant' },
22
+ { name: 'designation' , nice_name: 'Designation' , type: 'text' , value: <%= raw Caboose.json(@agent.designation) %>, width: 400 }
21
23
  ]
22
24
  });
23
25
  });
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.32'
2
+ VERSION = '0.0.33'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry