effective_memberships 0.4.13 → 0.4.16
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/models/concerns/effective_memberships_applicant.rb +19 -4
- data/app/views/effective/applicants/endorsements.html.haml +1 -1
- data/app/views/effective/applicants/experience.html.haml +3 -0
- data/app/views/effective/fee_payments/_demographics.html.haml +1 -1
- data/app/views/effective/fee_payments/_organization.html.haml +1 -1
- data/db/migrate/01_create_effective_memberships.rb.erb +1 -0
- data/lib/effective_memberships/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: 774b42acc07d3dae76bd17888dd5c323b3a47463cb339caa96162ea323ddf4a7
|
4
|
+
data.tar.gz: e9ee1f7769177827ad627d61e68d294a6d868ac26ec133396b8c861b221a0b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7684254166c10f7f1c826e2e5d2a747f0d8061818355e45242303bdd8438f612a1836228298416f7f6d5bb7ee132cd92a09ecd4334fc72301755e6432d57811c
|
7
|
+
data.tar.gz: 555d6bbfd89c287031d106998548f76a0d26a5c5e560a018cabb1f82ae8344126e26bdb398a8ff3508ac7e51cca6d8dfc7137d08f0784da4bd43670065719f01
|
@@ -53,6 +53,7 @@ module EffectiveMembershipsApplicant
|
|
53
53
|
organization: 'Organization', # Organization only. Organization fields.
|
54
54
|
education: 'Education',
|
55
55
|
course_amounts: 'Courses',
|
56
|
+
equivalences: 'Equivalent Memberships',
|
56
57
|
transcripts: 'Transcripts',
|
57
58
|
experience: 'Work Experience',
|
58
59
|
references: 'References',
|
@@ -127,6 +128,7 @@ module EffectiveMembershipsApplicant
|
|
127
128
|
|
128
129
|
effective_resource do
|
129
130
|
applicant_type :string
|
131
|
+
stream :string
|
130
132
|
|
131
133
|
# Acts as Statused
|
132
134
|
status :string, permitted: false
|
@@ -359,6 +361,11 @@ module EffectiveMembershipsApplicant
|
|
359
361
|
end
|
360
362
|
end
|
361
363
|
|
364
|
+
def sidebar_steps
|
365
|
+
return self.class.required_wizard_steps unless category.present?
|
366
|
+
required_steps
|
367
|
+
end
|
368
|
+
|
362
369
|
def can_visit_step?(step)
|
363
370
|
if missing_info?
|
364
371
|
return [:start, :select, :billing, :checkout].exclude?(step)
|
@@ -367,6 +374,14 @@ module EffectiveMembershipsApplicant
|
|
367
374
|
can_revisit_completed_steps(step)
|
368
375
|
end
|
369
376
|
|
377
|
+
def applicant_fee_category
|
378
|
+
category
|
379
|
+
end
|
380
|
+
|
381
|
+
def applicant_fee_price
|
382
|
+
category.applicant_fee
|
383
|
+
end
|
384
|
+
|
370
385
|
# All Fees and Orders
|
371
386
|
def submit_fees
|
372
387
|
# Find or build submit fee
|
@@ -374,10 +389,10 @@ module EffectiveMembershipsApplicant
|
|
374
389
|
|
375
390
|
unless fee.purchased?
|
376
391
|
fee.assign_attributes(
|
377
|
-
category:
|
378
|
-
price:
|
379
|
-
tax_exempt:
|
380
|
-
qb_item_name:
|
392
|
+
category: applicant_fee_category(),
|
393
|
+
price: applicant_fee_price(),
|
394
|
+
tax_exempt: applicant_fee_category().applicant_fee_tax_exempt,
|
395
|
+
qb_item_name: applicant_fee_category().applicant_fee_qb_item_name
|
381
396
|
)
|
382
397
|
end
|
383
398
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
= aef.hidden_field :endorser_type
|
20
20
|
|
21
21
|
= aef.select :endorser_id, endorders_collection, required: false,
|
22
|
-
ajax_url: effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource)
|
22
|
+
ajax_url: (effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource) unless Rails.env.test?)
|
23
23
|
|
24
24
|
= aef.check_box :unknown_member, label: 'I cant find my endorser in the above list'
|
25
25
|
|
@@ -3,6 +3,9 @@
|
|
3
3
|
|
4
4
|
= card do
|
5
5
|
- if resource.min_applicant_educations > 0
|
6
|
+
%p You must include #{resource.min_applicant_educations} or more work experiences.
|
7
|
+
|
8
|
+
- if resource.min_applicant_experiences_months > 0
|
6
9
|
%p You must include #{resource.min_applicant_experiences_months} or more months of experience.
|
7
10
|
|
8
11
|
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= wizard_card(fee_payment)
|
1
|
+
= wizard_card(fee_payment) do
|
2
2
|
= render 'users/demographics', parent: fee_payment, user: fee_payment.user
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= wizard_card(fee_payment)
|
1
|
+
= wizard_card(fee_payment) do
|
2
2
|
= render 'organizations/demographics', parent: fee_payment, organization: fee_payment.organization
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_memberships
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.16
|
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-07-
|
11
|
+
date: 2022-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|