effective_cpd 1.1.2 → 1.1.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00e8ed14d47f2bb89d1a33e12c76bf8e99b0470e65f7abcd282f23e0ec8b3a96
|
|
4
|
+
data.tar.gz: 835ab26687db053debee149640fe8b06d6e05ce518bc4601cd5e5e8a7d4e0bec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79844be2e538ec196567018344f52de6bb233ff0fe24d6a29ae19fe83c3f8dc6065a9cf1413a6c909ed0027a107c222d9eb531d516d256c3ac35b799efce9cc6
|
|
7
|
+
data.tar.gz: 248e3a12c2a0500fff24054b09b89fce3fb84ed7851edebecc14c613f4bc36f513cdbfffdef09afe14fb229f3921ee8d839a5a3641c291a00a38c6b18dd1e4b9
|
|
@@ -72,6 +72,9 @@ module EffectiveCpdAuditLevel
|
|
|
72
72
|
scope :deep, -> { all }
|
|
73
73
|
scope :sorted, -> { order(:title) }
|
|
74
74
|
|
|
75
|
+
# For the Admin new cpd audit form
|
|
76
|
+
scope :new_cpd_audit_level_collection, -> { sorted }
|
|
77
|
+
|
|
75
78
|
validates :title, presence: true
|
|
76
79
|
validates :determinations, presence: true
|
|
77
80
|
validates :recommendations, presence: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
%h2 Audit
|
|
4
4
|
= f.hidden_field :cpd_audit_level_type, value: EffectiveCpd.CpdAuditLevel.name
|
|
5
5
|
|
|
6
|
-
= f.select :cpd_audit_level_id, EffectiveCpd.CpdAuditLevel.
|
|
6
|
+
= f.select :cpd_audit_level_id, EffectiveCpd.CpdAuditLevel.new_cpd_audit_level_collection, label: 'Audit level'
|
|
7
7
|
|
|
8
8
|
= f.date_field :notification_date, label: 'Date of notification', required: false,
|
|
9
9
|
hint: "the starting date for any deadline calculations. leave blank for today's date"
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
%h2 Continuing Professional Development
|
|
2
2
|
|
|
3
|
+
- # In progress
|
|
4
|
+
- cpd_audit = current_user.cpd_audits.in_progress.first
|
|
5
|
+
|
|
6
|
+
- if cpd_audit.present? && cpd_audit.in_progress?
|
|
7
|
+
%p Your audit is in progress.
|
|
8
|
+
|
|
9
|
+
%p
|
|
10
|
+
Please
|
|
11
|
+
= link_to("Continue audit", effective_cpd.cpd_audit_build_path(cpd_audit, cpd_audit.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
|
|
12
|
+
to continue.
|
|
13
|
+
|
|
14
|
+
%hr
|
|
15
|
+
|
|
3
16
|
- # Auditee datatables (4)
|
|
4
17
|
- auditing = EffectiveCpdAvailableAuditsDatatable.new(self)
|
|
5
18
|
- if auditing.present?
|