effective_cpd 1.4.5 → 1.4.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41c07110b8b5814d4ff968ffb44dc82d102ad50234907afb644ea887222a1992
|
4
|
+
data.tar.gz: 61546891dc6371599ade1e82e7ff75badab344d4eda831b96244131cf6347f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21fc17a84dab2f37c2c5429109e2a723525f7624236b60210360132c854365038e49a78b9fa57fb2737f5fa2e3b6bb9adc03d50c1fa1e7635157d23ae1956c1
|
7
|
+
data.tar.gz: 9da9b7474edd7e464f369b9e2c03517dc25f9b8bdeb5b6c986f018ba3387b7fc3f10d713828db62b0774270b390448c9fa5690689e5e40b48a0731e61af6e9c0
|
@@ -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
|
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
|
|