effective_cpd 0.3.3 → 0.4.0
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 +4 -4
- data/app/views/admin/cpd_activities/_form.html.haml +6 -1
- data/app/views/admin/cpd_audit_level_questions/_form.html.haml +5 -1
- data/app/views/admin/cpd_audit_levels/_form_content_audit.html.haml +8 -4
- data/app/views/admin/cpd_audit_levels/_form_content_audit_review.html.haml +8 -4
- data/app/views/admin/cpd_categories/_form_cpd_category.html.haml +5 -1
- data/app/views/admin/cpd_cycles/_form_content.html.haml +28 -7
- data/lib/effective_cpd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f290e98f25e51c9ebc4497830cd628ac7921a01c2a2be09b1a335af28bc6c003
|
4
|
+
data.tar.gz: fe7d20bb2bbdada0b0a30f53801ad877f51e5a01d8d56d3af4b225c820ec402e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7bbf3b41e25cdd4b5ebe86d0f186c531450e614ef454367a08623f6868aa93e9ba5e37f35e7ad7f867a04e04f6a8c458acec9dd69cf2e98aca6329a1d21580e
|
7
|
+
data.tar.gz: 4050c510065598ca04809542bd50a16e54e93c9284610dc610693a06212cd9c897ef40e39508cc5f14e0d2f2e1239492bb42deb71fe257a3a51aadd8a7276843
|
@@ -7,7 +7,12 @@
|
|
7
7
|
.row
|
8
8
|
.col
|
9
9
|
= f.text_field :title, label: 'Title'
|
10
|
-
|
10
|
+
|
11
|
+
- if defined?(EffectiveArticleEditor)
|
12
|
+
= f.article_editor :body, label: 'Body (optional)'
|
13
|
+
- else
|
14
|
+
= f.rich_text_area :body, label: 'Body (optional)'
|
15
|
+
|
11
16
|
.col
|
12
17
|
= f.text_field :amount_label,
|
13
18
|
hint: 'hours of work, papers written, courses attended'
|
@@ -5,7 +5,11 @@
|
|
5
5
|
= f.select :cpd_audit_level_section_id, Effective::CpdAuditLevelSection.sorted.all
|
6
6
|
|
7
7
|
= f.text_field :title, label: 'Question Title'
|
8
|
-
|
8
|
+
|
9
|
+
- if defined?(EffectiveArticleEditor)
|
10
|
+
= f.article_editor :body, label: 'Body (optional)'
|
11
|
+
- else
|
12
|
+
= f.rich_text_area :body, label: 'Body (optional)'
|
9
13
|
|
10
14
|
= f.check_box :required, hint: 'A response to this question will be required'
|
11
15
|
= f.select :category, Effective::CpdAuditLevelQuestion::CATEGORIES
|
@@ -2,14 +2,18 @@
|
|
2
2
|
|
3
3
|
= effective_form_with(model: [:admin, cpd_audit_level], engine: true) do |f|
|
4
4
|
= card("All Steps Content") do
|
5
|
-
|
6
|
-
hint: "displayed on all steps"
|
5
|
+
- if defined?(EffectiveArticleEditor)
|
6
|
+
= f.article_editor "rich_text_all_steps_audit_content", label: false, hint: "displayed on all steps"
|
7
|
+
- else
|
8
|
+
= f.rich_text_area "rich_text_all_steps_audit_content", label: false, hint: "displayed on all steps"
|
7
9
|
|
8
10
|
%hr
|
9
11
|
|
10
12
|
- Effective::CpdAudit::WIZARD_STEPS.each do |step, title|
|
11
13
|
= card("#{title} Content") do
|
12
|
-
|
13
|
-
hint: "displayed on the auditee wizard #{step} wizard step only"
|
14
|
+
- if defined?(EffectiveArticleEditor)
|
15
|
+
= f.article_editor "rich_text_#{step}_audit_content", label: false, hint: "displayed on the auditee wizard #{step} wizard step only"
|
16
|
+
- else
|
17
|
+
= f.rich_text_area "rich_text_#{step}_audit_content", label: false, hint: "displayed on the auditee wizard #{step} wizard step only"
|
14
18
|
|
15
19
|
= f.submit
|
@@ -2,14 +2,18 @@
|
|
2
2
|
|
3
3
|
= effective_form_with(model: [:admin, cpd_audit_level], engine: true) do |f|
|
4
4
|
= card("All Steps Content") do
|
5
|
-
|
6
|
-
hint: "displayed on all steps"
|
5
|
+
- if defined?(EffectiveArticleEditor)
|
6
|
+
= f.article_editor "rich_text_all_steps_audit_review_content", label: false, hint: "displayed on all steps"
|
7
|
+
- else
|
8
|
+
= f.rich_text_area "rich_text_all_steps_audit_review_content", label: false, hint: "displayed on all steps"
|
7
9
|
|
8
10
|
%hr
|
9
11
|
|
10
12
|
- Effective::CpdAuditReview::WIZARD_STEPS.each do |step, title|
|
11
13
|
= card("#{title} Content") do
|
12
|
-
|
13
|
-
hint: "displayed on the audit reviewer #{step} wizard step only"
|
14
|
+
- if defined?(EffectiveArticleEditor)
|
15
|
+
= f.article_editor "rich_text_#{step}_audit_review_content", label: false, hint: "displayed on the audit reviewer #{step} wizard step only"
|
16
|
+
- else
|
17
|
+
= f.rich_text_area "rich_text_#{step}_audit_review_content", label: false, hint: "displayed on the audit reviewer #{step} wizard step only"
|
14
18
|
|
15
19
|
= f.submit
|
@@ -4,37 +4,58 @@
|
|
4
4
|
.card.mb-4
|
5
5
|
.card-body
|
6
6
|
%h5.card-title All Steps Content
|
7
|
-
|
7
|
+
- if defined?(EffectiveArticleEditor)
|
8
|
+
= f.article_editor :all_steps_content, label: false, hint: 'displayed on all statement steps'
|
9
|
+
- else
|
10
|
+
= f.rich_text_area :all_steps_content, label: false, hint: 'displayed on all statement steps'
|
8
11
|
|
9
12
|
.card.mb-4
|
10
13
|
.card-body
|
11
14
|
%h5.card-title Sidebar Content
|
12
|
-
|
15
|
+
- if defined?(EffectiveArticleEditor)
|
16
|
+
= f.article_editor :sidebar_content, label: false, hint: 'displayed on the sidebar on all statement steps'
|
17
|
+
- else
|
18
|
+
= f.rich_text_area :sidebar_content, label: false, hint: 'displayed on the sidebar on all statement steps'
|
13
19
|
|
14
20
|
%h2 Individual Steps Content
|
15
21
|
.card.mb-4
|
16
22
|
.card-body
|
17
23
|
%h5.card-title Start Step
|
18
|
-
|
24
|
+
- if defined?(EffectiveArticleEditor)
|
25
|
+
= f.article_editor :start_content, label: false, hint: 'displayed on the start step only'
|
26
|
+
- else
|
27
|
+
= f.rich_text_area :start_content, label: false, hint: 'displayed on the start step only'
|
19
28
|
|
20
29
|
.card.mb-4
|
21
30
|
.card-body
|
22
31
|
%h5.card-title Activities Step
|
23
|
-
|
32
|
+
- if defined?(EffectiveArticleEditor)
|
33
|
+
= f.article_editor :activities_content, label: false, hint: 'displayed on the activities step only'
|
34
|
+
- else
|
35
|
+
= f.rich_text_area :activities_content, label: false, hint: 'displayed on the activities step only'
|
24
36
|
|
25
37
|
.card.mb-4
|
26
38
|
.card-body
|
27
39
|
%h5.card-title Agreements Step
|
28
|
-
|
40
|
+
- if defined?(EffectiveArticleEditor)
|
41
|
+
= f.article_editor :agreements_content, label: false, hint: 'displayed on the agreements step only'
|
42
|
+
- else
|
43
|
+
= f.rich_text_area :agreements_content, label: false, hint: 'displayed on the agreements step only'
|
29
44
|
|
30
45
|
.card.mb-4
|
31
46
|
.card-body
|
32
47
|
%h5.card-title Submit Step
|
33
|
-
|
48
|
+
- if defined?(EffectiveArticleEditor)
|
49
|
+
= f.article_editor :submit_content, label: false, hint: 'displayed on the submit step only'
|
50
|
+
- else
|
51
|
+
= f.rich_text_area :submit_content, label: false, hint: 'displayed on the submit step only'
|
34
52
|
|
35
53
|
.card.mb-4
|
36
54
|
.card-body
|
37
55
|
%h5.card-title Complete Step
|
38
|
-
|
56
|
+
- if defined?(EffectiveArticleEditor)
|
57
|
+
= f.article_editor :complete_content, label: false, hint: 'displayed on the complete step only'
|
58
|
+
- else
|
59
|
+
= f.rich_text_area :complete_content, label: false, hint: 'displayed on the complete step only'
|
39
60
|
|
40
61
|
= f.submit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_cpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|