effective_memberships 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_memberships_helper.rb +0 -13
- data/app/models/concerns/effective_memberships_applicant.rb +0 -4
- data/app/models/concerns/effective_memberships_applicant_review.rb +0 -4
- data/app/models/concerns/effective_memberships_category.rb +2 -2
- data/app/models/concerns/effective_memberships_fee_payment.rb +0 -4
- data/app/views/effective/applicants/_applicant.html.haml +1 -4
- data/app/views/effective/applicants/_course_amounts.html.haml +1 -1
- data/app/views/effective/applicants/_declarations.html.haml +1 -1
- data/app/views/effective/applicants/_demographics.html.haml +1 -1
- data/app/views/effective/applicants/_education.html.haml +1 -1
- data/app/views/effective/applicants/_experience.html.haml +1 -1
- data/app/views/effective/applicants/_files.html.haml +1 -1
- data/app/views/effective/applicants/_references.html.haml +1 -1
- data/app/views/effective/applicants/_select.html.haml +1 -0
- data/app/views/effective/applicants/submitted.html.haml +3 -6
- data/app/views/effective/fee_payments/_declarations.html.haml +1 -1
- data/app/views/effective/fee_payments/_demographics.html.haml +1 -1
- data/app/views/effective/fee_payments/_fee_payment.html.haml +1 -4
- data/app/views/effective/fee_payments/_summary.html.haml +1 -0
- data/app/views/effective/fee_payments/submitted.html.haml +1 -0
- data/lib/effective_memberships/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0eef9b0e1ee657cc1d68ba1bdadde44e3f89b8002889512a62f99ba77fba756
|
4
|
+
data.tar.gz: 0a08d2d2352e7b6a1fa1bd67ae66b99706e278c85b08eee75ef3d2e4aae8eab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db209b01ffdbe5b9071e05b7df946c72454b8edfd19833e3cb393261beed6336c65345d7133e3da3406c190e16e87612f3064e412a7bc7023191be17cfbe2691
|
7
|
+
data.tar.gz: f3dcfabe8a98ccae4109166398356127fb6a860d3896966681604f119fdd4b830870ae9a2f808c8fdd6a4a3be7bbbb0ba442bc8a2acb5b0e692921164f6a47a2
|
@@ -1,15 +1,2 @@
|
|
1
1
|
module EffectiveMembershipsHelper
|
2
|
-
|
3
|
-
def edit_effective_applicants_wizard?
|
4
|
-
params[:controller] == 'effective/applicants' && defined?(resource) && resource.draft?
|
5
|
-
end
|
6
|
-
|
7
|
-
def edit_effective_applicant_reviews_wizard?
|
8
|
-
params[:controller] == 'effective/applicant_reviews' && defined?(resource) && resource.draft?
|
9
|
-
end
|
10
|
-
|
11
|
-
def edit_effective_fee_payments_wizard?
|
12
|
-
params[:controller] == 'effective/fee_payments' && defined?(resource) && resource.draft?
|
13
|
-
end
|
14
|
-
|
15
2
|
end
|
@@ -16,10 +16,6 @@ module EffectiveMembershipsApplicant
|
|
16
16
|
module ClassMethods
|
17
17
|
def effective_memberships_applicant?; true; end
|
18
18
|
|
19
|
-
def all_wizard_steps
|
20
|
-
const_get(:WIZARD_STEPS).keys
|
21
|
-
end
|
22
|
-
|
23
19
|
# For effective_category_applicant_wizard_steps_collection
|
24
20
|
def required_wizard_steps
|
25
21
|
[:start, :select, :summary, :billing, :checkout, :submitted]
|
@@ -16,10 +16,6 @@ module EffectiveMembershipsApplicantReview
|
|
16
16
|
module ClassMethods
|
17
17
|
def effective_memberships_applicant_review?; true; end
|
18
18
|
|
19
|
-
def all_wizard_steps
|
20
|
-
const_get(:WIZARD_STEPS).keys
|
21
|
-
end
|
22
|
-
|
23
19
|
# For effective_category_applicant_wizard_steps_collection
|
24
20
|
def required_wizard_steps
|
25
21
|
[:start, :recommendation, :submitted]
|
@@ -176,7 +176,7 @@ module EffectiveMembershipsCategory
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def applicant_wizard_steps_collection
|
179
|
-
wizard_steps = EffectiveMemberships.Applicant.
|
179
|
+
wizard_steps = EffectiveMemberships.Applicant.all_wizard_steps
|
180
180
|
required_steps = EffectiveMemberships.Applicant.required_wizard_steps
|
181
181
|
|
182
182
|
wizard_steps.map do |step, title|
|
@@ -185,7 +185,7 @@ module EffectiveMembershipsCategory
|
|
185
185
|
end
|
186
186
|
|
187
187
|
def fee_payment_wizard_steps_collection
|
188
|
-
wizard_steps = EffectiveMemberships.FeePayment.
|
188
|
+
wizard_steps = EffectiveMemberships.FeePayment.all_wizard_steps
|
189
189
|
required_steps = EffectiveMemberships.FeePayment.required_wizard_steps
|
190
190
|
|
191
191
|
wizard_steps.map do |step, title|
|
@@ -16,10 +16,6 @@ module EffectiveMembershipsFeePayment
|
|
16
16
|
module ClassMethods
|
17
17
|
def effective_memberships_fee_payment?; true; end
|
18
18
|
|
19
|
-
def all_wizard_steps
|
20
|
-
const_get(:WIZARD_STEPS).keys
|
21
|
-
end
|
22
|
-
|
23
19
|
def required_wizard_steps
|
24
20
|
[:start, :summary, :billing, :checkout, :submitted]
|
25
21
|
end
|
@@ -1,6 +1,3 @@
|
|
1
1
|
.effective-applicant
|
2
|
-
-
|
3
|
-
- steps = applicant.required_steps - blacklist
|
4
|
-
|
5
|
-
- steps.select { |step| applicant.has_completed_step?(step) }.each do |partial|
|
2
|
+
- applicant.render_steps.each do |partial|
|
6
3
|
= render "effective/applicants/#{partial}", applicant: applicant, step: partial
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:course_amounts)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:course_amounts)) if
|
7
|
+
= link_to('Edit', wizard_path(:course_amounts)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
|
10
10
|
- applicant.applicant_course_areas_collection.each do |area|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:declarations)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:declarations)) if
|
7
|
+
= link_to('Edit', wizard_path(:declarations)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
%table.table
|
10
10
|
%tbody
|
@@ -4,6 +4,6 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:demographics)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:demographics)) if
|
7
|
+
= link_to('Edit', wizard_path(:demographics)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
= render 'effective/applicants/demographics_owner', applicant: applicant, owner: applicant.owner
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:education)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:education)) if
|
7
|
+
= link_to('Edit', wizard_path(:education)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
- datatable = EffectiveApplicantEducationsDatatable.new(applicant_id: applicant.id)
|
10
10
|
.mb-4= render_simple_datatable(datatable)
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:experience)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:experience)) if
|
7
|
+
= link_to('Edit', wizard_path(:experience)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
%table.table
|
10
10
|
%tbody
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= applicant.wizard_step_title(:references)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:references)) if
|
7
|
+
= link_to('Edit', wizard_path(:references)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
- applicant.applicant_references.each_with_index do |applicant_reference, index|
|
10
10
|
- if index > 0
|
@@ -0,0 +1 @@
|
|
1
|
+
-# Intentionally blank
|
@@ -34,11 +34,8 @@
|
|
34
34
|
= collapse('Show application...', card_class: 'my-2') do
|
35
35
|
= render 'effective/applicants/applicant', applicant: resource
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
-# = effective_form_with(model: resource, url: wizard_path(step)) do |f|
|
41
|
-
-# = f.hidden_field :current_step
|
42
|
-
-# = f.submit 'Save and Continue', class: 'btn btn-primary'
|
37
|
+
.mb-4
|
38
|
+
= collapse('Show orders...', card_class: 'my-2') do
|
39
|
+
= render 'effective/applicants/orders', applicant: resource
|
43
40
|
|
44
41
|
= link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary btn-block'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= fee_payment.wizard_step_title(:declarations)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:declarations)) if
|
7
|
+
= link_to('Edit', wizard_path(:declarations)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
%table.table
|
10
10
|
%tbody
|
@@ -4,6 +4,6 @@
|
|
4
4
|
.col-sm
|
5
5
|
%h5.card-title= fee_payment.wizard_step_title(:demographics)
|
6
6
|
.col-sm-auto.text-right
|
7
|
-
= link_to('Edit', wizard_path(:demographics)) if
|
7
|
+
= link_to('Edit', wizard_path(:demographics)) if edit_effective_wizard?
|
8
8
|
|
9
9
|
= render 'effective/fee_payments/demographics_owner', fee_payment: fee_payment, owner: fee_payment.owner
|
@@ -1,6 +1,3 @@
|
|
1
1
|
.effective-fee-payment
|
2
|
-
-
|
3
|
-
- steps = fee_payment.required_steps - blacklist
|
4
|
-
|
5
|
-
- steps.select { |step| fee_payment.has_completed_step?(step) }.each do |partial|
|
2
|
+
- fee_payment.render_steps.each do |partial|
|
6
3
|
= render "effective/fee_payments/#{partial}", fee_payment: fee_payment, resource: fee_payment, step: partial
|
@@ -0,0 +1 @@
|
|
1
|
+
-# Intentionally blank
|
@@ -9,6 +9,7 @@
|
|
9
9
|
|
10
10
|
= link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
|
11
11
|
|
12
|
+
= render 'effective/fee_payments/summary', fee_payment: resource
|
12
13
|
= render 'effective/fee_payments/fee_payment', fee_payment: resource
|
13
14
|
= render 'effective/fee_payments/orders', fee_payment: resource
|
14
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_memberships
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
@@ -343,6 +343,7 @@ files:
|
|
343
343
|
- app/views/effective/applicants/_layout.html.haml
|
344
344
|
- app/views/effective/applicants/_orders.html.haml
|
345
345
|
- app/views/effective/applicants/_references.html.haml
|
346
|
+
- app/views/effective/applicants/_select.html.haml
|
346
347
|
- app/views/effective/applicants/_summary.html.haml
|
347
348
|
- app/views/effective/applicants/billing.html.haml
|
348
349
|
- app/views/effective/applicants/checkout.html.haml
|
@@ -366,6 +367,7 @@ files:
|
|
366
367
|
- app/views/effective/fee_payments/_fee_payment.html.haml
|
367
368
|
- app/views/effective/fee_payments/_layout.html.haml
|
368
369
|
- app/views/effective/fee_payments/_orders.html.haml
|
370
|
+
- app/views/effective/fee_payments/_summary.html.haml
|
369
371
|
- app/views/effective/fee_payments/billing.html.haml
|
370
372
|
- app/views/effective/fee_payments/checkout.html.haml
|
371
373
|
- app/views/effective/fee_payments/declarations.html.haml
|