effective_memberships 0.17.0 → 0.17.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09fbb8a22bb53806fe272999514bc8cc4d8b8cf5784aaab5428777ffe43af61e'
4
- data.tar.gz: cc6fd66a60a0db18c98a44849e3768e8c6d892b6af9cd297485b18f65290457b
3
+ metadata.gz: 5e2e3a9a54270eaf14471e05b279d68d6f6d67238daf4b016fa70681c82d07a4
4
+ data.tar.gz: 8e344f17e247d18db2e9a5c276f4124d3eeff041a1761ef49906d2cd75bdec21
5
5
  SHA512:
6
- metadata.gz: e286896d066c61cb0bb65b325837152d275f43c158e0f8df95302c36aee81ef1fcd3359efd37a71ec3f78b182a87fa0ee587c6ffe017d3971013af32b3647e67
7
- data.tar.gz: 37c79f3c9a254275346c352832082bf9014690144720fd3ea2fef642dfe2740f3e72f3597870754f4c0076574ade33c65a1227d8fefa4f2325903aaacef9bd7f
6
+ metadata.gz: b8eff0a5c66e4b2e0d59024c4e686cbf2a0ca264df522064c5074c89b8fd911d4c14be2732e0ea677a1e9998a36a2d9674acf70ccb1393ca74f7a1a1e6ce3c8a
7
+ data.tar.gz: c4190c54eff0c58c6b1234f5f739d1b131c0dcc90cba603f1708a55a0dac9c224eec0ca0be8964b3bdae09cddcab32322adeeb4789792487b737fdb17b41caad
@@ -36,6 +36,7 @@ module Admin
36
36
  col :from_category, search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
37
37
  col :from_status, search: { collection: EffectiveMemberships.Status.all, polymorphic: false }
38
38
 
39
+ col :applicant_reviews, visible: false
39
40
  col :orders, visible: false
40
41
 
41
42
  actions_col
@@ -102,9 +102,14 @@ module EffectiveMembershipsApplicantReview
102
102
 
103
103
  def submit!
104
104
  submitted!
105
- applicant.try_reviewed!
106
105
 
107
- after_commit { send_email(:applicant_review_submitted) }
106
+ after_commit do
107
+ applicant.reload
108
+ applicant.try_reviewed!
109
+
110
+ send_email(:applicant_review_submitted)
111
+ end
112
+
108
113
  true
109
114
  end
110
115
 
@@ -34,6 +34,7 @@ module EffectiveMembershipsFeePayment
34
34
  start: 'Start',
35
35
  demographics: 'Demographics', # Individual only. Users fields.
36
36
  organization: 'Organization', # Organization only. Organization fields.
37
+ cpd: 'Continuing Professional Development',
37
38
  declarations: 'Declarations',
38
39
  summary: 'Review',
39
40
  billing: 'Billing Address',
@@ -51,5 +51,5 @@
51
51
  %td= applicant.wizard_step_title(:cpd)
52
52
  %td= f.select :applicant_cpd_step_requirement, f.object.class.cpd_step_requirements, label: false
53
53
  %td
54
- minimum required
55
54
  = ets(EffectiveCpd.CpdStatement)
55
+ to continue
@@ -7,5 +7,5 @@
7
7
  %td= fee_payment.wizard_step_title(:cpd)
8
8
  %td= f.select :fee_payment_cpd_step_requirement, f.object.class.cpd_step_requirements, label: false
9
9
  %td
10
- minimum required
11
10
  = ets(EffectiveCpd.CpdStatement)
11
+ to continue
@@ -0,0 +1,3 @@
1
+ = wizard_card(fee_payment) do
2
+ = render('effective/wizard_steps/cpd_statements', resource: fee_payment)
3
+ = render('effective/wizard_steps/cpd_requirements', resource: fee_payment)
@@ -0,0 +1,2 @@
1
+ - # Intentionally blank
2
+ %p TODO
@@ -3,6 +3,7 @@
3
3
  %h2 Fee Payments
4
4
 
5
5
  - if datatable.present?
6
+ %p You have made the following past fee payments:
6
7
  = render_simple_datatable(datatable)
7
8
  - else
8
9
  %p You have no past fee payments. When you do, we'll show them here.
@@ -1,2 +1,5 @@
1
1
  = wizard_card(fee_payment) do
2
- = render 'organizations/demographics', parent: fee_payment, organization: fee_payment.organization
2
+ - if fee_payment.organization.present?
3
+ = render 'organizations/demographics', parent: fee_payment, organization: fee_payment.organization
4
+ - else
5
+ %p None
@@ -0,0 +1,20 @@
1
+ = render 'layout' do
2
+ = render 'effective/fee_payments/content', resource: resource
3
+
4
+ = card(et('effective_cpd.name')) do
5
+ = render('cpd_requirements', fee_payment: resource)
6
+
7
+ = card('All ' + cpd_statements_label) do
8
+ = render('effective/wizard_steps/cpd_statements', resource: resource)
9
+
10
+ = card('Requirements') do
11
+ = render('effective/wizard_steps/cpd_requirements', resource: resource)
12
+
13
+ = card do
14
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
15
+ = f.hidden_field :id
16
+
17
+ - f.object.declare_cpd = true if f.object.has_completed_step?(:cpd)
18
+ = render('effective/wizard_steps/cpd_fields', f: f)
19
+
20
+ = f.save 'Save and Continue'
@@ -7,7 +7,7 @@
7
7
  .alert.alert-warning.mb-4
8
8
  Successfully paid on #{resource.submit_order.purchased_at.strftime('%F')}.
9
9
 
10
- = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
10
+ .mb-4= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
11
11
 
12
12
  = card do
13
13
  = render 'effective/fee_payments/summary', fee_payment: resource
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.17.0'
2
+ VERSION = '0.17.2'
3
3
  end
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.17.0
4
+ version: 0.17.2
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-04-27 00:00:00.000000000 Z
11
+ date: 2023-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -494,6 +494,8 @@ files:
494
494
  - app/views/effective/applicants/transcripts.html.haml
495
495
  - app/views/effective/documents/_dashboard.html.haml
496
496
  - app/views/effective/fee_payments/_content.html.haml
497
+ - app/views/effective/fee_payments/_cpd.html.haml
498
+ - app/views/effective/fee_payments/_cpd_requirements.html.haml
497
499
  - app/views/effective/fee_payments/_dashboard.html.haml
498
500
  - app/views/effective/fee_payments/_declarations.html.haml
499
501
  - app/views/effective/fee_payments/_demographics.html.haml
@@ -504,6 +506,7 @@ files:
504
506
  - app/views/effective/fee_payments/_summary.html.haml
505
507
  - app/views/effective/fee_payments/billing.html.haml
506
508
  - app/views/effective/fee_payments/checkout.html.haml
509
+ - app/views/effective/fee_payments/cpd.html.haml
507
510
  - app/views/effective/fee_payments/declarations.html.haml
508
511
  - app/views/effective/fee_payments/demographics.html.haml
509
512
  - app/views/effective/fee_payments/organization.html.haml