effective_memberships 0.3.1 → 0.3.5
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/datatables/admin/effective_categories_datatable.rb +3 -0
- data/app/models/concerns/effective_memberships_applicant.rb +7 -7
- data/app/models/effective/applicant_reference.rb +1 -1
- data/app/views/admin/applicants/_status.html.haml +1 -1
- data/app/views/admin/categories/_form_applicant_steps.html.haml +1 -1
- data/app/views/effective/applicant_references/_applicant_reference.html.haml +1 -1
- data/app/views/effective/applicant_references/_form.html.haml +8 -7
- data/app/views/effective/applicants/_declarations.html.haml +1 -1
- data/app/views/effective/applicants/_demographics_owner.html.haml +1 -1
- data/app/views/effective/applicants/_files.html.haml +1 -1
- data/app/views/effective/applicants/submitted.html.haml +1 -1
- data/app/views/effective/fee_payments/_declarations.html.haml +1 -1
- data/app/views/effective/fee_payments/_demographics_owner.html.haml +1 -1
- data/app/views/effective/fees/_fee.html.haml +1 -1
- data/app/views/effective/memberships/_dashboard.html.haml +10 -3
- data/app/views/effective/memberships/_membership.html.haml +1 -1
- data/config/routes.rb +1 -1
- 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: 88bffb7bd99244104ce17a88a864debcea2fd3e19e7741b46a7b5ca655e688b4
|
4
|
+
data.tar.gz: c0b583bbfeea31146338d5148faf64ae973bc05eb49c694f0d3e2f9fd1488897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fafe61c02d58d5e4f84c4b35f343cc838573f2e8ec4d4f88d3afabe8f2bd844402dd9209964042c17d4881a02f1854f244b9a7bcf4878f89db79f8aa1707ca1
|
7
|
+
data.tar.gz: a2762bd75668e045ca8d9f6ff1118387d5150d0ab2756fedd1a48478b88685909b6bf0bb3fd0fe98e05cc7a7d8333ec2f6455a32643a91cf90e2a2c03f603a13
|
@@ -77,26 +77,26 @@ module EffectiveMembershipsApplicant
|
|
77
77
|
belongs_to :category, polymorphic: true, optional: true
|
78
78
|
belongs_to :from_category, polymorphic: true, optional: true
|
79
79
|
|
80
|
-
has_many :applicant_reviews, -> { order(:id) }, as: :applicant, dependent: :destroy
|
80
|
+
has_many :applicant_reviews, -> { order(:id) }, as: :applicant, inverse_of: :applicant, dependent: :destroy
|
81
81
|
accepts_nested_attributes_for :applicant_reviews, reject_if: :all_blank, allow_destroy: true
|
82
82
|
|
83
83
|
# Effective Namespace
|
84
|
-
has_many :applicant_courses, -> { order(:id) }, class_name: 'Effective::ApplicantCourse', as: :applicant, dependent: :destroy
|
84
|
+
has_many :applicant_courses, -> { order(:id) }, class_name: 'Effective::ApplicantCourse', as: :applicant, inverse_of: :applicant, dependent: :destroy
|
85
85
|
accepts_nested_attributes_for :applicant_courses, reject_if: :all_blank, allow_destroy: true
|
86
86
|
|
87
|
-
has_many :applicant_educations, -> { order(:id) }, class_name: 'Effective::ApplicantEducation', as: :applicant, dependent: :destroy
|
87
|
+
has_many :applicant_educations, -> { order(:id) }, class_name: 'Effective::ApplicantEducation', as: :applicant, inverse_of: :applicant, dependent: :destroy
|
88
88
|
accepts_nested_attributes_for :applicant_educations, reject_if: :all_blank, allow_destroy: true
|
89
89
|
|
90
|
-
has_many :applicant_experiences, -> { order(:id) }, class_name: 'Effective::ApplicantExperience', as: :applicant, dependent: :destroy
|
90
|
+
has_many :applicant_experiences, -> { order(:id) }, class_name: 'Effective::ApplicantExperience', as: :applicant, inverse_of: :applicant, dependent: :destroy
|
91
91
|
accepts_nested_attributes_for :applicant_experiences, reject_if: :all_blank, allow_destroy: true
|
92
92
|
|
93
|
-
has_many :applicant_references, -> { order(:id) }, class_name: 'Effective::ApplicantReference', as: :applicant, dependent: :destroy
|
93
|
+
has_many :applicant_references, -> { order(:id) }, class_name: 'Effective::ApplicantReference', as: :applicant, inverse_of: :applicant, dependent: :destroy
|
94
94
|
accepts_nested_attributes_for :applicant_references, reject_if: :all_blank, allow_destroy: true
|
95
95
|
|
96
|
-
has_many :fees, -> { order(:id) }, as: :parent, class_name: 'Effective::Fee', dependent: :nullify
|
96
|
+
has_many :fees, -> { order(:id) }, as: :parent, inverse_of: :parent, class_name: 'Effective::Fee', dependent: :nullify
|
97
97
|
accepts_nested_attributes_for :fees, reject_if: :all_blank, allow_destroy: true
|
98
98
|
|
99
|
-
has_many :orders, -> { order(:id) }, as: :parent, class_name: 'Effective::Order', dependent: :nullify
|
99
|
+
has_many :orders, -> { order(:id) }, as: :parent, inverse_of: :parent, class_name: 'Effective::Order', dependent: :nullify
|
100
100
|
accepts_nested_attributes_for :orders
|
101
101
|
|
102
102
|
effective_resource do
|
@@ -1,10 +1,9 @@
|
|
1
1
|
= effective_form_with(model: applicant_reference, engine: true) do |f|
|
2
|
-
|
3
|
-
|
4
|
-
- else
|
5
|
-
- raise('expected inline datatable')
|
2
|
+
= f.hidden_field :applicant_id
|
3
|
+
= f.hidden_field :applicant_type
|
6
4
|
|
7
5
|
= f.text_field :name
|
6
|
+
|
8
7
|
.row
|
9
8
|
.col= f.email_field :email
|
10
9
|
.col= f.tel_field :phone
|
@@ -13,6 +12,8 @@
|
|
13
12
|
.col= f.select :relationship, Effective::ApplicantReference::RELATIONSHIPS
|
14
13
|
.col= f.select :known, Effective::ApplicantReference::KNOWNS, label: 'Known for'
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
- if f.object.new_record?
|
16
|
+
%p An email will be sent asking them to complete a reference declaration form.
|
17
|
+
= f.submit('Create and Notify Reference')
|
18
|
+
- else
|
19
|
+
= f.submit
|
@@ -28,7 +28,7 @@
|
|
28
28
|
References are automatically sent a reference request.
|
29
29
|
Click 'New' to add an additional reference, or click 'Notify' to resend the reference request.
|
30
30
|
|
31
|
-
= render_datatable(EffectiveApplicantReferencesDatatable.new(
|
31
|
+
= render_datatable(EffectiveApplicantReferencesDatatable.new(applicant: resource), inline: true, simple: true)
|
32
32
|
|
33
33
|
.mb-4
|
34
34
|
= collapse('Show application...', card_class: 'my-2') do
|
@@ -1,14 +1,21 @@
|
|
1
|
-
%h2 Membership
|
2
1
|
- current_owner = current_user.effective_memberships_owner
|
3
2
|
- membership = current_owner.membership
|
4
3
|
|
4
|
+
%h2 Membership
|
5
|
+
|
5
6
|
- if membership.present?
|
6
7
|
- if membership.categories.length == 0
|
7
|
-
|
8
|
+
%p
|
9
|
+
You do not have an assigned membership category.
|
10
|
+
To fix this, click the Apply to Join button or the Pay Fees button and then complete the wizard.
|
11
|
+
You cannot access member-only pages until this has been completed.
|
12
|
+
Please contact us if you believe this is an error with your account.
|
13
|
+
|
8
14
|
- elsif membership.categories.length == 1
|
9
15
|
%p You are a #{membership.category} member.
|
16
|
+
|
10
17
|
- else
|
11
|
-
%p You are a member
|
18
|
+
%p You are a member with the following membership categories:
|
12
19
|
|
13
20
|
%ul
|
14
21
|
- membership.categories.each do |category|
|
data/config/routes.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.5
|
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-01
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|