effective_cpd 0.5.1 → 0.5.3

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: bd54ef80261e5f2ed12db4d7d287e614d289fd3ad1472f8017e03f9661bd4320
4
- data.tar.gz: 83539b1cd3c70cafc551fa29d49edb8af593f8979acd21170ef7f04cbbf440c8
3
+ metadata.gz: b67902e90cb0611b3bdd655dae07ee0977af59d288532883957d6adeda7634a9
4
+ data.tar.gz: 558da894e3e482c50229cd2b35faaa0f71ac8fbb26c37d84bf7a947cca4210a1
5
5
  SHA512:
6
- metadata.gz: f6342549a0bc5ded97f765e2bae7858d106cb93b6db69c8c25d7940120bd8d48138ed87306cfab136535c407edb4dcca84f26c0ee984df20758c10e8087372f7
7
- data.tar.gz: c5f2027d52f8871a47635dbcd170ddeb3a98c28d897407c9790d59c21dab469bec2da0c6d14d209addd768e2b73486338a52e9969b1bf112a13ff667a6d8e3f5
6
+ metadata.gz: dd09c06e6e2331269d18a55168b1ca92be0de9dd5608480c748603379be0d0a9ae3db42716c52966dccc6d8578caa30fa6eb5be7467368d2d3e3d940bb7a26a7
7
+ data.tar.gz: f0177849f2d67daf1f7a1ebc1d114df426342e3713b1ec42a5b2bfd4182b41fb4cdde262b2eb024bc978a1d8b6f7c1915197208b5c73b0d19a421345f4c29c01
@@ -9,6 +9,8 @@ $(document).on('click', '[data-cpd-show-activity]', function(event) {
9
9
  $tabContent.html($form.html())
10
10
  $tabContent.siblings('.active').removeClass('active')
11
11
  $tabContent.addClass('active')
12
+
13
+ $tabContent.trigger('effective-bootstrap:reinitialize')
12
14
  });
13
15
 
14
16
  $(document).on('click', '[data-cpd-back-activity]', function(event) {
@@ -3,7 +3,7 @@
3
3
 
4
4
  = effective_form_with(model: [:admin, cpd_cycle], engine: true) do |f|
5
5
  %h2= cpd_category
6
- %p= cpd_category.body
6
+ %p= cpd_category.body.to_s
7
7
  %p= link_to 'Edit Category', edit_path, target: '_blank'
8
8
 
9
9
  = f.fields_for :cpd_rules, cpd_cycle.rule_for(cpd_category) do |fc|
@@ -9,7 +9,7 @@
9
9
  = f.hidden_field :current_step
10
10
 
11
11
  - if cpd_audit_level_section.top_content.present?
12
- .mb-2= cpd_audit_level_section.top_content
12
+ .mb-2= cpd_audit_level_section.top_content.to_s
13
13
 
14
14
  %table.table.table-hover
15
15
  %thead
@@ -35,7 +35,7 @@
35
35
  = render('/effective/cpd_audit_review_items/fields', f: fi, cpd_audit_review: resource)
36
36
 
37
37
  - if cpd_audit_level_section.bottom_content.present?
38
- .mb-2= cpd_audit_level_section.bottom_content
38
+ .mb-2= cpd_audit_level_section.bottom_content.to_s
39
39
 
40
40
  %hr
41
41
  = f.text_area :comments, label: 'Reviewer comments'
@@ -6,7 +6,7 @@
6
6
  = f.hidden_field :current_step
7
7
 
8
8
  - if cpd_audit_level_section.top_content.present?
9
- .mb-2= cpd_audit_level_section.top_content
9
+ .mb-2= cpd_audit_level_section.top_content.to_s
10
10
 
11
11
  - cpd_audit_level_section.cpd_audit_level_questions.each do |cpd_audit_level_question|
12
12
  - cpd_audit_response = resource.cpd_audit_response(cpd_audit_level_question)
@@ -15,6 +15,6 @@
15
15
  .mt-2= render('/effective/cpd_audit_responses/fields', f: fcar, cpd_audit_level_question: cpd_audit_level_question)
16
16
 
17
17
  - if cpd_audit_level_section.bottom_content.present?
18
- .mb-2= cpd_audit_level_section.bottom_content
18
+ .mb-2= cpd_audit_level_section.bottom_content.to_s
19
19
 
20
20
  = f.submit 'Save and Continue', center: true
@@ -60,12 +60,13 @@
60
60
  = f.hidden_field :cpd_category_id
61
61
  = f.hidden_field :cpd_activity_id
62
62
 
63
- = f.submit do
64
- = f.save 'Save Activity'
63
+ .mb-3
64
+ = f.submit do
65
+ = f.save 'Save Activity'
65
66
 
66
- %div{style: 'position: absolute; left: 0;'}
67
- - if f.object.new_record?
68
- = link_to('Back', '#', class: 'btn btn-secondary', 'data-cpd-back-activity': true)
69
- - else
70
- - url = effective_cpd.cpd_statement_cpd_statement_activity_path(statement, cpd_statement_activity)
71
- = link_to('Delete', url, class: 'btn btn-danger', 'data-confirm': "Really delete?", 'data-method': :delete)
67
+ %div{style: 'position: absolute; left: 0;'}
68
+ - if f.object.new_record?
69
+ = link_to('Back', '#', class: 'btn btn-secondary', 'data-cpd-back-activity': true)
70
+ - else
71
+ - url = effective_cpd.cpd_statement_cpd_statement_activity_path(statement, cpd_statement_activity)
72
+ = link_to('Delete', url, class: 'btn btn-danger', 'data-confirm': "Really delete?", 'data-method': :delete)
@@ -30,7 +30,7 @@
30
30
 
31
31
  %td #{cpd_credits_label} in last 3 #{cpd_cycles_label} (including this #{cpd_cycle_label})
32
32
 
33
- = cpd_cycle.sidebar_content
33
+ = cpd_cycle.sidebar_content.to_s
34
34
 
35
35
  .col-9
36
36
  = yield
@@ -7,15 +7,16 @@
7
7
  .activities-index
8
8
  = render('layout') do
9
9
  - if resource.cpd_cycle.all_steps_content.present?
10
- .mb-2= resource.cpd_cycle.all_steps_content
10
+ .mb-2= resource.cpd_cycle.all_steps_content.to_s
11
11
 
12
12
  - if resource.cpd_cycle.activities_content.present?
13
- .mb-2= resource.cpd_cycle.activities_content
13
+ .mb-2= resource.cpd_cycle.activities_content.to_s
14
14
 
15
15
  - if resource.cpd_statement_activities.present?
16
16
  = render('activities_edit', cpd_statement: resource)
17
17
 
18
- .mt-3= link_to 'Add Activity', '#', 'data-cpd-new-activity': true, class: 'btn btn-primary'
18
+ .my-3
19
+ = link_to 'Add Activity', '#', 'data-cpd-new-activity': true, class: 'btn btn-primary'
19
20
 
20
21
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
21
22
  = f.hidden_field :current_step
@@ -2,10 +2,10 @@
2
2
  %h1= resource.cpd_cycle
3
3
 
4
4
  - if resource.cpd_cycle.all_steps_content.present?
5
- .mb-2= resource.cpd_cycle.all_steps_content
5
+ .mb-2= resource.cpd_cycle.all_steps_content.to_s
6
6
 
7
7
  - if resource.cpd_cycle.agreements_content.present?
8
- .mb-2= resource.cpd_cycle.agreements_content
8
+ .mb-2= resource.cpd_cycle.agreements_content.to_s
9
9
 
10
10
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
11
  = f.hidden_field :current_step
@@ -2,10 +2,10 @@
2
2
  %h1= resource.cpd_cycle
3
3
 
4
4
  - if resource.cpd_cycle.all_steps_content.present?
5
- .mb-2= resource.cpd_cycle.all_steps_content
5
+ .mb-2= resource.cpd_cycle.all_steps_content.to_s
6
6
 
7
7
  - if resource.cpd_cycle.complete_content.present?
8
- .mb-2= resource.cpd_cycle.complete_content
8
+ .mb-2= resource.cpd_cycle.complete_content.to_s
9
9
 
10
10
  = render(resource)
11
11
 
@@ -2,10 +2,10 @@
2
2
  %h1= resource.cpd_cycle
3
3
 
4
4
  - if resource.cpd_cycle.all_steps_content.present?
5
- .mb-2= resource.cpd_cycle.all_steps_content
5
+ .mb-2= resource.cpd_cycle.all_steps_content.to_s
6
6
 
7
7
  - if resource.cpd_cycle.start_content.present?
8
- .mb-2= resource.cpd_cycle.start_content
8
+ .mb-2= resource.cpd_cycle.start_content.to_s
9
9
 
10
10
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
11
  = f.hidden_field :current_step
@@ -2,10 +2,10 @@
2
2
  %h1= resource.cpd_cycle
3
3
 
4
4
  - if resource.cpd_cycle.all_steps_content.present?
5
- .mb-2= resource.cpd_cycle.all_steps_content
5
+ .mb-2= resource.cpd_cycle.all_steps_content.to_s
6
6
 
7
7
  - if resource.cpd_cycle.submit_content.present?
8
- .mb-2= resource.cpd_cycle.submit_content
8
+ .mb-2= resource.cpd_cycle.submit_content.to_s
9
9
 
10
10
  = render(resource)
11
11
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.3'
3
3
  end
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.5.1
4
+ version: 0.5.3
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-09-27 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails