effective_memberships 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/effective/applicant_endorsements/complete.html.haml +2 -3
- data/app/views/effective/applicant_endorsements/edit.html.haml +6 -7
- data/app/views/effective/applicant_references/complete.html.haml +2 -3
- data/app/views/effective/applicant_references/edit.html.haml +6 -7
- data/app/views/effective/applicants/_applicant.html.haml +2 -1
- data/app/views/effective/applicants/_course_amounts.html.haml +9 -17
- data/app/views/effective/applicants/_declarations.html.haml +9 -16
- data/app/views/effective/applicants/_demographics.html.haml +2 -9
- data/app/views/effective/applicants/_education.html.haml +6 -13
- data/app/views/effective/applicants/_endorsements.html.haml +6 -13
- data/app/views/effective/applicants/_equivalences.html.haml +3 -10
- data/app/views/effective/applicants/_experience.html.haml +18 -25
- data/app/views/effective/applicants/_files.html.haml +16 -23
- data/app/views/effective/applicants/_organization.html.haml +2 -9
- data/app/views/effective/applicants/_references.html.haml +6 -13
- data/app/views/effective/applicants/_stamp.html.haml +23 -30
- data/app/views/effective/applicants/_summary.html.haml +5 -0
- data/app/views/effective/applicants/billing.html.haml +6 -7
- data/app/views/effective/applicants/checkout.html.haml +2 -3
- data/app/views/effective/applicants/course_amounts.html.haml +48 -49
- data/app/views/effective/applicants/declarations.html.haml +9 -10
- data/app/views/effective/applicants/demographics.html.haml +6 -7
- data/app/views/effective/applicants/education.html.haml +16 -17
- data/app/views/effective/applicants/endorsements.html.haml +20 -21
- data/app/views/effective/applicants/equivalences.html.haml +14 -15
- data/app/views/effective/applicants/experience.html.haml +35 -36
- data/app/views/effective/applicants/files.html.haml +8 -9
- data/app/views/effective/applicants/organization.html.haml +10 -11
- data/app/views/effective/applicants/references.html.haml +16 -17
- data/app/views/effective/applicants/select.html.haml +25 -26
- data/app/views/effective/applicants/stamp.html.haml +16 -17
- data/app/views/effective/applicants/start.html.haml +4 -5
- data/app/views/effective/applicants/submitted.html.haml +9 -10
- data/app/views/effective/fee_payments/_declarations.html.haml +9 -16
- data/app/views/effective/fee_payments/_demographics.html.haml +2 -9
- data/app/views/effective/fee_payments/_fee_payment.html.haml +2 -1
- data/app/views/effective/fee_payments/_organization.html.haml +2 -9
- data/app/views/effective/fee_payments/billing.html.haml +6 -7
- data/app/views/effective/fee_payments/checkout.html.haml +2 -3
- data/app/views/effective/fee_payments/declarations.html.haml +8 -9
- data/app/views/effective/fee_payments/demographics.html.haml +6 -7
- data/app/views/effective/fee_payments/organization.html.haml +10 -11
- data/app/views/effective/fee_payments/start.html.haml +23 -24
- data/app/views/effective/fee_payments/submitted.html.haml +2 -2
- data/lib/effective_memberships/version.rb +1 -1
- metadata +2 -2
@@ -1,37 +1,36 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/fee_payments/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
.
|
6
|
-
- outstanding_owners = current_user.memberships_owners.select { |owner| owner.outstanding_fee_payment_fees.present? }
|
4
|
+
= card do
|
5
|
+
- outstanding_owners = current_user.memberships_owners.select { |owner| owner.outstanding_fee_payment_fees.present? }
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
- if outstanding_owners.blank?
|
8
|
+
%p You have no fees due at this time.
|
9
|
+
= link_to 'Home', root_path, class: 'btn btn-primary'
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
- else
|
12
|
+
%p You have the following fees due at this time:
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
- outstanding_owners.each do |owner|
|
15
|
+
%h3= owner
|
16
|
+
= render_purchasables(owner.outstanding_fee_payment_fees)
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
19
|
+
= f.hidden_field :id
|
20
|
+
= f.hidden_field :user_type
|
21
|
+
= f.hidden_field :user_id
|
23
22
|
|
24
|
-
|
25
|
-
|
23
|
+
- if outstanding_owners.length == 1
|
24
|
+
- resource.organization = outstanding_owners.first if outstanding_owners.first.kind_of?(EffectiveMemberships.Organization)
|
26
25
|
|
27
|
-
|
26
|
+
%p Continue with fee payment for #{resource.owner}.
|
28
27
|
|
29
|
-
|
28
|
+
= f.hidden_field :organization_id
|
30
29
|
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
- if outstanding_owners.length > 1
|
31
|
+
%p You have multiple memberships that require a fee payment. They must be purchased separately.
|
32
|
+
%p Please select an individual or organization to continue:
|
34
33
|
|
35
|
-
|
34
|
+
= f.select :organization_id, effective_memberships_select_fee_payment_organization(resource)
|
36
35
|
|
37
|
-
|
36
|
+
= f.save 'Save and Continue'
|
@@ -9,8 +9,8 @@
|
|
9
9
|
|
10
10
|
= link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
= card do
|
13
|
+
= render 'effective/fee_payments/summary', fee_payment: resource
|
14
14
|
|
15
15
|
.mb-4
|
16
16
|
= collapse('Show fee payment...', card_class: 'my-2') do
|
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.12
|
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-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|