effective_cpd 1.4.0 → 1.4.1
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: 15a9526456ab27ed3cc2dca6c6c368afe97e478282d66083cfb45e10250071c8
|
4
|
+
data.tar.gz: 4394265758150e1a979fa5cb000f22f5153c7c7a5be772e4b90d2795376697f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffcf39a42c4481b6e51425e0ff373b9a6670c2e9c01027099d4f3abe299fdf428ba601123e38f17f136abdd5f95cec8a35560839524dcd29c69bf3cdb653d9b
|
7
|
+
data.tar.gz: e427677d3c6ec195b01b0b22c9022ce4eac3c40fa04eeeb873da3a7573e2b8a68e076cc8151f684f9a0b0c11fe1804cc63ce77c9554d50823dfb54b9ed9e1614
|
@@ -14,7 +14,12 @@ module Effective
|
|
14
14
|
# Redirect the remote form back to the activities page
|
15
15
|
on :save, redirect: -> {
|
16
16
|
statement = resource.cpd_statement
|
17
|
-
|
17
|
+
|
18
|
+
if params[:commit] == 'Save and Add Another'
|
19
|
+
effective_cpd.cpd_cycle_cpd_statement_build_path(statement.cpd_cycle, statement, :activities, activities: :new)
|
20
|
+
else
|
21
|
+
effective_cpd.cpd_cycle_cpd_statement_build_path(statement.cpd_cycle, statement, :activities)
|
22
|
+
end
|
18
23
|
}
|
19
24
|
|
20
25
|
def permitted_params
|
@@ -4,7 +4,9 @@
|
|
4
4
|
.col-9
|
5
5
|
%h1= resource.cpd_cycle
|
6
6
|
|
7
|
-
|
7
|
+
- activities = (params[:activities] == 'new' ? :new : :index)
|
8
|
+
|
9
|
+
.activities-index{style: ('display: none;' unless activities == :index)}
|
8
10
|
= render('layout') do
|
9
11
|
- if resource.cpd_cycle.all_steps_content.present?
|
10
12
|
.mb-2= resource.cpd_cycle.all_steps_content.to_s
|
@@ -22,5 +24,5 @@
|
|
22
24
|
= f.hidden_field :current_step
|
23
25
|
= f.submit 'Save and Continue', center: true
|
24
26
|
|
25
|
-
.activities-new{style: 'display: none;'}
|
27
|
+
.activities-new{style: ('display: none;' unless activities == :new)}
|
26
28
|
= render('activities_new', cpd_statement: resource)
|
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: 1.4.
|
4
|
+
version: 1.4.1
|
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: 2023-03-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|