effective_memberships 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1fcdc5cbf08b23f6aab670babdf698a2aff6b6d9d2067055dc970bb2eb4b8e4
4
- data.tar.gz: 0a423a28dc16bd84135e741bcb9f290c7997c034ba0095319bab4cf36913d605
3
+ metadata.gz: 070c1ddf76bc05b1659fe52e3dba9e940d2d1f22e61a106453e7f0ee319e58e1
4
+ data.tar.gz: 57e590916bacc7c0fc34482c7850ac2b2b9c30b8b9181ad65d553ff530bb78eb
5
5
  SHA512:
6
- metadata.gz: 296aa3d82c05315ac9247f28052e474440562fb85450fc4735f4875b26d67ccdd612df58727207251f2540f103efa41c519128e1366be02f446400816000f3de
7
- data.tar.gz: 71feca7c490aea3f2ba49cae7c3318b79d5da533f1b7a6adedcb0ae38a1b9ea2c6b61daa163a9abfc92e2d3e8aff110dbb705c4e373bcfab488aae1d9533a82c
6
+ metadata.gz: 9c11227b561d087bf85a849200f930d3fa5cac68c8aa8f20aad25a84365548769e23ceec50c3a0cf583d8cf1b9542ce9cfa5fbc1cdc00726e0f941030f8d35a7
7
+ data.tar.gz: 794d3a8e16605ed198cf501f9810107c6ddb20efee9ef94996a9978312e2af5cc371699f18f13e3be32a114b78b926c8e7519e8cd315c85bdf784350e3e98576
@@ -3,11 +3,7 @@
3
3
  = render 'admin/categories/form_category', category: category
4
4
 
5
5
  - if category.persisted?
6
- = render 'admin/categories/form_applicant_eligibility', category: category
7
-
8
- = render 'admin/categories/form_applicant_fees', category: category
9
- = render 'admin/categories/form_renewals', category: category
10
-
6
+ = render 'admin/categories/form_fees', category: category
11
7
 
12
8
  - if category.persisted?
13
9
  = tab 'Content - Applicants' do
@@ -18,14 +14,9 @@
18
14
 
19
15
  = tab 'Wizards' do
20
16
  .row
21
- .col
22
- = render 'admin/categories/form_applicant_steps', category: category
23
-
24
- .col
25
- = render 'admin/categories/form_fee_payment_steps', category: category
17
+ .col= render 'admin/categories/form_applicant_steps', category: category
18
+ .col= render 'admin/categories/form_fee_payment_steps', category: category
26
19
 
27
20
  - if category.respond_to?(:log_changes_datatable)
28
21
  = tab 'Logs' do
29
22
  = render_inline_datatable(category.log_changes_datatable)
30
-
31
-
@@ -4,10 +4,11 @@
4
4
  = f.article_editor "rich_text_applicant_all_steps_content", label: false, hint: "displayed on all steps"
5
5
  - else
6
6
  = f.rich_text_area "rich_text_applicant_all_steps_content", label: false, hint: "displayed on all steps"
7
- - enabled = f.object.applicant_wizard_steps
7
+
8
+ - enabled_steps = f.object.applicant_wizard_steps
8
9
 
9
10
  - EffectiveMemberships.Applicant::WIZARD_STEPS.each do |step, title|
10
- - next unless enabled.include?(step)
11
+ - next unless enabled_steps.include?(step)
11
12
 
12
13
  = card("#{title}") do
13
14
  - if defined?(EffectiveArticleEditor)
@@ -1,6 +1,7 @@
1
1
  = effective_form_with(model: [:admin, category], engine: true) do |f|
2
2
  .row
3
- .col= f.text_field :title, label: 'Category title'
3
+ .col
4
+ = f.text_field :title, label: 'Category title'
4
5
 
5
6
  .col
6
7
  = f.select :category_type, f.object.class.category_types,
@@ -14,4 +15,13 @@
14
15
  - else
15
16
  = f.rich_text_area :rich_text_body, label: 'Description shown in the Application to Join wizard'
16
17
 
17
- = f.submit
18
+ %h3 Applicant Eligibility
19
+ = f.check_box :can_apply_new, label: 'Anyone may apply for this category'
20
+ = f.check_box :can_apply_existing, label: 'Any current member may apply to join'
21
+ = f.check_box :can_apply_restricted, label: 'Only some current members may apply to join'
22
+
23
+ = f.show_if(:can_apply_restricted, true) do
24
+ - categories = f.object.class.where.not(id: f.object)
25
+ = f.select :can_apply_restricted_ids, categories, label: 'Existing member categories'
26
+
27
+ = effective_submit(f)
@@ -1,4 +1,28 @@
1
1
  = effective_form_with(model: [:admin, category], engine: true) do |f|
2
+ %h3 Applicant Fees
3
+ .row
4
+ .col= f.price_field :applicant_fee
5
+ .col= f.text_field :qb_item_name, label: "Quickbooks Item Name"
6
+
7
+ %h3 Pro-rated fees based on date of approval
8
+ .row
9
+ .col-lg-3
10
+ = f.price_field :prorated_jan, label: "January"
11
+ = f.price_field :prorated_feb, label: "February"
12
+ = f.price_field :prorated_mar, label: "March"
13
+ .col-lg-3
14
+ = f.price_field :prorated_apr, label: "April"
15
+ = f.price_field :prorated_may, label: "May"
16
+ = f.price_field :prorated_jun, label: "June"
17
+ .col-lg-3
18
+ = f.price_field :prorated_jul, label: "July"
19
+ = f.price_field :prorated_aug, label: "August"
20
+ = f.price_field :prorated_sep, label: "September"
21
+ .col-lg-3
22
+ = f.price_field :prorated_oct, label: "October"
23
+ = f.price_field :prorated_nov, label: "November"
24
+ = f.price_field :prorated_dec, label: "December"
25
+
2
26
  %h3 Renewal Fees
3
27
  = f.check_box :create_renewal_fees, label: 'Yes, annual renewal fees should be created'
4
28
 
@@ -6,7 +30,8 @@
6
30
  - date = EffectiveMemberships.Registrar.renewal_fee_date(date: Time.zone.now)
7
31
 
8
32
  %p Charged to members, every #{date.strftime('%B %e')}, to renew their dues.
9
- = f.price_field :renewal_fee
33
+ .row
34
+ .col-3= f.price_field :renewal_fee
10
35
 
11
36
  %h3 Late Fees
12
37
  = f.check_box :create_late_fees, label: 'Yes, late fees should be created'
@@ -16,7 +41,8 @@
16
41
  - date = EffectiveMemberships.Registrar.late_fee_date(period: period)
17
42
 
18
43
  %p Charged to members, on #{date.strftime('%B %e')}, with outstanding renewal fees
19
- = f.price_field :late_fee
44
+ .row
45
+ .col-3= f.price_field :late_fee
20
46
 
21
47
  %h3 Bad Standing
22
48
  = f.check_box :create_bad_standing, label: 'Yes, bad standing status should be applied'
@@ -27,4 +53,4 @@
27
53
 
28
54
  %p Members with outstanding fees, on #{date.strftime('%B %e')}, will automatically be marked in bad standing.
29
55
 
30
- = effective_submit(f)
56
+ = f.submit
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.6.8'
2
+ VERSION = '0.6.9'
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.6.8
4
+ version: 0.6.9
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-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -353,13 +353,11 @@ files:
353
353
  - app/views/admin/applicants/_status.html.haml
354
354
  - app/views/admin/categories/_form.html.haml
355
355
  - app/views/admin/categories/_form_applicant_content.html.haml
356
- - app/views/admin/categories/_form_applicant_eligibility.html.haml
357
- - app/views/admin/categories/_form_applicant_fees.html.haml
358
356
  - app/views/admin/categories/_form_applicant_steps.html.haml
359
357
  - app/views/admin/categories/_form_category.html.haml
360
358
  - app/views/admin/categories/_form_fee_payment_content.html.haml
361
359
  - app/views/admin/categories/_form_fee_payment_steps.html.haml
362
- - app/views/admin/categories/_form_renewals.html.haml
360
+ - app/views/admin/categories/_form_fees.html.haml
363
361
  - app/views/admin/fee_payments/_fee_payment.html.haml
364
362
  - app/views/admin/fees/_fee.html.haml
365
363
  - app/views/admin/fees/_form.html.haml
@@ -1,9 +0,0 @@
1
- = effective_form_with(model: [:admin, category], engine: true) do |f|
2
- %h3 Applicant Eligibility
3
- = f.check_box :can_apply_new, label: 'Anyone may apply for this category'
4
- = f.check_box :can_apply_existing, label: 'Any current member may apply to join'
5
- = f.check_box :can_apply_restricted, label: 'Only some current members may apply to join'
6
-
7
- = f.show_if(:can_apply_restricted, true) do
8
- - categories = f.object.class.where.not(id: f.object)
9
- = f.select :can_apply_restricted_ids, categories, label: 'Existing member categories'
@@ -1,24 +0,0 @@
1
- = effective_form_with(model: [:admin, category], engine: true) do |f|
2
- %h3 Applicant Fees
3
- .row
4
- .col= f.price_field :applicant_fee
5
- .col= f.text_field :qb_item_name, label: "Quickbooks Item Name"
6
-
7
- %h3 Pro-rated fees based on date of approval
8
- .row
9
- .col-lg-3
10
- = f.price_field :prorated_jan, label: "January"
11
- = f.price_field :prorated_feb, label: "February"
12
- = f.price_field :prorated_mar, label: "March"
13
- .col-lg-3
14
- = f.price_field :prorated_apr, label: "April"
15
- = f.price_field :prorated_may, label: "May"
16
- = f.price_field :prorated_jun, label: "June"
17
- .col-lg-3
18
- = f.price_field :prorated_jul, label: "July"
19
- = f.price_field :prorated_aug, label: "August"
20
- = f.price_field :prorated_sep, label: "September"
21
- .col-lg-3
22
- = f.price_field :prorated_oct, label: "October"
23
- = f.price_field :prorated_nov, label: "November"
24
- = f.price_field :prorated_dec, label: "December"