effective_cpd 1.4.5 → 1.4.7

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: ea1c3574d959eac96d4ea26c8c0c4a25560c81d08bc5e54a85c238adb51f70f0
4
- data.tar.gz: af871c4f6ec38aa0e1c1090c1877e857f65db572b087e422ecd2029a338fc0f2
3
+ metadata.gz: 9543132d5f9889e73a0bd2955ea38fef007d229503aa25229721e6b8e7a14907
4
+ data.tar.gz: 30940ca9dc3eac1898b3293eacad456cfc490895d2e21edd7a47a9e9a0adc3ce
5
5
  SHA512:
6
- metadata.gz: 405c0b8e3c5f5b21ac04f97bf8db864ed7a8a1994b25027aa41d535e1f7ce84585e38ec7d1fd1eeb77d58d51e080f96ee62aa57e0cca472c055978a3dc936992
7
- data.tar.gz: 113e27bb06f1cc3a0ae4c664e0af1255de13f52e55a176912d25b064931ba7c6f41f0636c8ff5cdcdaab2eee27e15f260b611a2b1960708e0ad021035da63dc6
6
+ metadata.gz: c3761c3654663e4fe88124f03fc5d01c12039013b47a44f5b30290798c78ade7d1efbd0fa4b1be4badac1d01680c255fc8f160b31964e0bd124664201d98de8d
7
+ data.tar.gz: 56e597a9beffaafd3adb6d553c083beceb83fa4cf11e194c622e3612566f85b2c4602317efd7e9150783d7879d8a1b227293b31f4c624371f9131f1b671c657a
@@ -103,7 +103,9 @@ module EffectiveCpdUser
103
103
 
104
104
  # For the form
105
105
  def build_cpd_targets
106
- Effective::CpdCycle.sorted.all.each { |cpd_cycle| build_cpd_target(cpd_cycle: cpd_cycle) }
106
+ Effective::CpdCycle.sorted.all.each do |cpd_cycle|
107
+ cpd_target(cpd_cycle: cpd_cycle) || cpd_targets.new(cpd_cycle: cpd_cycle)
108
+ end
107
109
  cpd_targets.sort_by(&:cpd_cycle_id).reverse
108
110
  end
109
111
 
@@ -18,7 +18,7 @@
18
18
  - collection = Effective::CpdTarget::REQUIRED_TO_SUBMIT
19
19
  - cpd_cycle = ctf.object.cpd_cycle
20
20
  - target = f.object.cpd_target_score(cpd_cycle: cpd_cycle)
21
- - target_placeholder = f.object.default_cpd_target_score(cpd_cycle: cpd_cycle)
21
+ - target_placeholder = f.object.default_cpd_target_score(cpd_cycle: cpd_cycle) || '-'
22
22
  - required_to_submit = f.object.cpd_target_score_required_to_submit?(cpd_cycle: cpd_cycle)
23
23
  - required_to_submit_placeholder = collection.find { |label, value| value == required_to_submit }.first
24
24
 
@@ -1,4 +1,5 @@
1
1
  - # This isn't a wizard screen. It's a show view.
2
2
 
3
3
  = render('layout') do
4
- = render(resource.cpd_audit.create_chat)
4
+ = render('effective/chats/layout') do
5
+ = render(resource.cpd_audit.create_chat)
@@ -1,4 +1,4 @@
1
1
  - # This isn't a wizard screen. It's a show view.
2
-
3
2
  = render('layout') do
4
- = render(resource.create_chat)
3
+ = render('effective/chats/layout') do
4
+ = render(resource.create_chat)
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '1.4.5'
2
+ VERSION = '1.4.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect