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 +4 -4
- data/app/models/concerns/effective_cpd_user.rb +3 -1
- data/app/views/admin/users/_form_cpd_targets.html.haml +1 -1
- data/app/views/effective/cpd_audit_reviews/chat.html.haml +2 -1
- data/app/views/effective/cpd_audits/chat.html.haml +2 -2
- data/lib/effective_cpd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9543132d5f9889e73a0bd2955ea38fef007d229503aa25229721e6b8e7a14907
|
4
|
+
data.tar.gz: 30940ca9dc3eac1898b3293eacad456cfc490895d2e21edd7a47a9e9a0adc3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|