effective_memberships 0.3.14 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/admin/organizations_controller.rb +19 -0
- data/app/controllers/admin/representatives_controller.rb +19 -0
- data/app/controllers/effective/applicants_controller.rb +2 -3
- data/app/controllers/effective/fee_payments_controller.rb +1 -2
- data/app/controllers/effective/organizations_controller.rb +16 -0
- data/app/controllers/effective/representatives_controller.rb +19 -0
- data/app/datatables/admin/effective_applicants_datatable.rb +10 -5
- data/app/datatables/admin/effective_categories_datatable.rb +7 -0
- data/app/datatables/admin/effective_fee_payments_datatable.rb +11 -6
- data/app/datatables/admin/effective_organizations_datatable.rb +31 -0
- data/app/datatables/admin/effective_representatives_datatable.rb +28 -0
- data/app/datatables/effective_applicants_datatable.rb +1 -1
- data/app/datatables/effective_fee_payments_datatable.rb +5 -4
- data/app/datatables/effective_organizations_datatable.rb +18 -0
- data/app/datatables/effective_representatives_datatable.rb +40 -0
- data/app/helpers/effective_memberships_helper.rb +25 -0
- data/app/mailers/effective/memberships_mailer.rb +7 -7
- data/app/models/concerns/effective_memberships_applicant.rb +63 -30
- data/app/models/concerns/effective_memberships_category.rb +32 -5
- data/app/models/concerns/effective_memberships_fee_payment.rb +44 -45
- data/app/models/concerns/effective_memberships_organization.rb +94 -0
- data/app/models/concerns/effective_memberships_owner.rb +0 -55
- data/app/models/concerns/effective_memberships_registrar.rb +2 -2
- data/app/models/concerns/effective_memberships_user.rb +70 -0
- data/app/models/effective/fee.rb +1 -1
- data/app/models/effective/organization.rb +8 -0
- data/app/models/effective/representative.rb +56 -0
- data/app/views/admin/categories/_form_applicant_eligibility.html.haml +1 -1
- data/app/views/admin/categories/_form_applicant_steps.html.haml +29 -24
- data/app/views/admin/categories/_form_category.html.haml +3 -0
- data/app/views/admin/categories/_form_renewals.html.haml +0 -2
- data/app/views/admin/organizations/_fields.html.haml +6 -0
- data/app/views/admin/organizations/_form.html.haml +31 -0
- data/app/views/admin/organizations/_form_organization.html.haml +23 -0
- data/app/views/admin/representatives/_form.html.haml +38 -0
- data/app/views/{effective/applicants/_demographics_fields.html.haml → admin/representatives/_user_fields.html.haml} +2 -6
- data/app/views/effective/applicants/_dashboard.html.haml +24 -5
- data/app/views/effective/applicants/_demographics.html.haml +1 -1
- data/app/views/effective/applicants/_missing_info.html.haml +7 -3
- data/app/views/effective/applicants/_organization.html.haml +9 -0
- data/app/views/effective/applicants/_select_organization.html.haml +21 -0
- data/app/views/effective/applicants/_summary.html.haml +17 -9
- data/app/views/effective/applicants/billing.html.haml +2 -2
- data/app/views/effective/applicants/demographics.html.haml +7 -6
- data/app/views/effective/applicants/education.html.haml +2 -2
- data/app/views/effective/applicants/organization.html.haml +19 -0
- data/app/views/effective/applicants/references.html.haml +1 -1
- data/app/views/effective/applicants/select.html.haml +11 -1
- data/app/views/effective/applicants/stamp.html.haml +2 -2
- data/app/views/effective/applicants/start.html.haml +17 -11
- data/app/views/effective/applicants/submitted.html.haml +5 -5
- data/app/views/effective/applicants/summary.html.haml +1 -1
- data/app/views/effective/fee_payments/_demographics.html.haml +1 -1
- data/app/views/effective/fee_payments/_organization.html.haml +9 -0
- data/app/views/effective/fee_payments/_summary.html.haml +39 -1
- data/app/views/effective/fee_payments/billing.html.haml +2 -2
- data/app/views/effective/fee_payments/demographics.html.haml +2 -2
- data/app/views/effective/fee_payments/organization.html.haml +18 -0
- data/app/views/effective/fee_payments/start.html.haml +20 -17
- data/app/views/effective/fee_payments/submitted.html.haml +10 -3
- data/app/views/effective/fees/_dashboard.html.haml +20 -8
- data/app/views/effective/memberships/_dashboard.html.haml +16 -5
- data/app/views/effective/organizations/_dashboard.html.haml +10 -0
- data/app/views/effective/organizations/_form.html.haml +8 -0
- data/app/views/effective/organizations/_form_organization.html.haml +11 -0
- data/app/views/effective/representatives/_form.html.haml +33 -0
- data/app/views/effective/{fee_payments/_demographics_fields.html.haml → representatives/_user_fields.html.haml} +2 -6
- data/app/views/organizations/_demographics.html.haml +45 -0
- data/app/views/organizations/_fields_demographics.html.haml +29 -0
- data/app/views/users/_demographics.html.haml +50 -0
- data/app/views/users/_fields_demographics.html.haml +29 -0
- data/config/effective_memberships.rb +3 -0
- data/config/routes.rb +9 -0
- data/db/migrate/01_create_effective_memberships.rb.erb +57 -10
- data/db/seeds.rb +18 -0
- data/lib/effective_memberships/engine.rb +3 -0
- data/lib/effective_memberships/version.rb +1 -1
- data/lib/effective_memberships.rb +6 -2
- metadata +33 -20
- data/app/views/effective/applicants/_demographics_owner.html.haml +0 -20
- data/app/views/effective/fee_payments/_demographics_owner.html.haml +0 -20
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
|
+
version: 0.4.0
|
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-03-
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,20 +192,6 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: effective_organizations
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
196
|
name: effective_developer
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,12 +248,16 @@ files:
|
|
262
248
|
- app/controllers/admin/fee_payments_controller.rb
|
263
249
|
- app/controllers/admin/fees_controller.rb
|
264
250
|
- app/controllers/admin/memberships_controller.rb
|
251
|
+
- app/controllers/admin/organizations_controller.rb
|
265
252
|
- app/controllers/admin/registrar_actions_controller.rb
|
253
|
+
- app/controllers/admin/representatives_controller.rb
|
266
254
|
- app/controllers/effective/applicant_references_controller.rb
|
267
255
|
- app/controllers/effective/applicants_controller.rb
|
268
256
|
- app/controllers/effective/fee_payments_controller.rb
|
269
257
|
- app/controllers/effective/membership_cards_controller.rb
|
270
258
|
- app/controllers/effective/memberships_directory_controller.rb
|
259
|
+
- app/controllers/effective/organizations_controller.rb
|
260
|
+
- app/controllers/effective/representatives_controller.rb
|
271
261
|
- app/datatables/admin/effective_applicant_course_areas_datatable.rb
|
272
262
|
- app/datatables/admin/effective_applicant_course_names_datatable.rb
|
273
263
|
- app/datatables/admin/effective_applicant_references_datatable.rb
|
@@ -277,6 +267,8 @@ files:
|
|
277
267
|
- app/datatables/admin/effective_fees_datatable.rb
|
278
268
|
- app/datatables/admin/effective_membership_histories_datatable.rb
|
279
269
|
- app/datatables/admin/effective_memberships_datatable.rb
|
270
|
+
- app/datatables/admin/effective_organizations_datatable.rb
|
271
|
+
- app/datatables/admin/effective_representatives_datatable.rb
|
280
272
|
- app/datatables/effective_applicant_courses_datatable.rb
|
281
273
|
- app/datatables/effective_applicant_educations_datatable.rb
|
282
274
|
- app/datatables/effective_applicant_experiences_datatable.rb
|
@@ -284,6 +276,8 @@ files:
|
|
284
276
|
- app/datatables/effective_applicants_datatable.rb
|
285
277
|
- app/datatables/effective_fee_payments_datatable.rb
|
286
278
|
- app/datatables/effective_memberships_directory_datatable.rb
|
279
|
+
- app/datatables/effective_organizations_datatable.rb
|
280
|
+
- app/datatables/effective_representatives_datatable.rb
|
287
281
|
- app/helpers/effective_memberships_helper.rb
|
288
282
|
- app/mailers/effective/memberships_mailer.rb
|
289
283
|
- app/models/concerns/effective_memberships_applicant.rb
|
@@ -291,8 +285,10 @@ files:
|
|
291
285
|
- app/models/concerns/effective_memberships_card.rb
|
292
286
|
- app/models/concerns/effective_memberships_category.rb
|
293
287
|
- app/models/concerns/effective_memberships_fee_payment.rb
|
288
|
+
- app/models/concerns/effective_memberships_organization.rb
|
294
289
|
- app/models/concerns/effective_memberships_owner.rb
|
295
290
|
- app/models/concerns/effective_memberships_registrar.rb
|
291
|
+
- app/models/concerns/effective_memberships_user.rb
|
296
292
|
- app/models/effective/applicant.rb
|
297
293
|
- app/models/effective/applicant_course.rb
|
298
294
|
- app/models/effective/applicant_course_area.rb
|
@@ -308,8 +304,10 @@ files:
|
|
308
304
|
- app/models/effective/membership_card.rb
|
309
305
|
- app/models/effective/membership_category.rb
|
310
306
|
- app/models/effective/membership_history.rb
|
307
|
+
- app/models/effective/organization.rb
|
311
308
|
- app/models/effective/registrar.rb
|
312
309
|
- app/models/effective/registrar_action.rb
|
310
|
+
- app/models/effective/representative.rb
|
313
311
|
- app/views/admin/applicant_course_areas/_form.html.haml
|
314
312
|
- app/views/admin/applicant_course_areas/_form_applicant_course_area.html.haml
|
315
313
|
- app/views/admin/applicant_course_areas/index.html.haml
|
@@ -337,6 +335,9 @@ files:
|
|
337
335
|
- app/views/admin/fees/_fee.html.haml
|
338
336
|
- app/views/admin/fees/_form.html.haml
|
339
337
|
- app/views/admin/memberships/_status.html.haml
|
338
|
+
- app/views/admin/organizations/_fields.html.haml
|
339
|
+
- app/views/admin/organizations/_form.html.haml
|
340
|
+
- app/views/admin/organizations/_form_organization.html.haml
|
340
341
|
- app/views/admin/registrar_actions/_form.html.haml
|
341
342
|
- app/views/admin/registrar_actions/_form_assign.html.haml
|
342
343
|
- app/views/admin/registrar_actions/_form_bad_standing.html.haml
|
@@ -344,6 +345,8 @@ files:
|
|
344
345
|
- app/views/admin/registrar_actions/_form_reclassify.html.haml
|
345
346
|
- app/views/admin/registrar_actions/_form_register.html.haml
|
346
347
|
- app/views/admin/registrar_actions/_form_remove.html.haml
|
348
|
+
- app/views/admin/representatives/_form.html.haml
|
349
|
+
- app/views/admin/representatives/_user_fields.html.haml
|
347
350
|
- app/views/effective/applicant_references/_applicant_reference.html.haml
|
348
351
|
- app/views/effective/applicant_references/_datatable_actions.html.haml
|
349
352
|
- app/views/effective/applicant_references/_form.html.haml
|
@@ -356,16 +359,16 @@ files:
|
|
356
359
|
- app/views/effective/applicants/_dashboard.html.haml
|
357
360
|
- app/views/effective/applicants/_declarations.html.haml
|
358
361
|
- app/views/effective/applicants/_demographics.html.haml
|
359
|
-
- app/views/effective/applicants/_demographics_fields.html.haml
|
360
|
-
- app/views/effective/applicants/_demographics_owner.html.haml
|
361
362
|
- app/views/effective/applicants/_education.html.haml
|
362
363
|
- app/views/effective/applicants/_experience.html.haml
|
363
364
|
- app/views/effective/applicants/_files.html.haml
|
364
365
|
- app/views/effective/applicants/_layout.html.haml
|
365
366
|
- app/views/effective/applicants/_missing_info.html.haml
|
366
367
|
- app/views/effective/applicants/_orders.html.haml
|
368
|
+
- app/views/effective/applicants/_organization.html.haml
|
367
369
|
- app/views/effective/applicants/_references.html.haml
|
368
370
|
- app/views/effective/applicants/_select.html.haml
|
371
|
+
- app/views/effective/applicants/_select_organization.html.haml
|
369
372
|
- app/views/effective/applicants/_stamp.html.haml
|
370
373
|
- app/views/effective/applicants/_summary.html.haml
|
371
374
|
- app/views/effective/applicants/billing.html.haml
|
@@ -376,6 +379,7 @@ files:
|
|
376
379
|
- app/views/effective/applicants/education.html.haml
|
377
380
|
- app/views/effective/applicants/experience.html.haml
|
378
381
|
- app/views/effective/applicants/files.html.haml
|
382
|
+
- app/views/effective/applicants/organization.html.haml
|
379
383
|
- app/views/effective/applicants/references.html.haml
|
380
384
|
- app/views/effective/applicants/select.html.haml
|
381
385
|
- app/views/effective/applicants/stamp.html.haml
|
@@ -386,16 +390,16 @@ files:
|
|
386
390
|
- app/views/effective/fee_payments/_dashboard.html.haml
|
387
391
|
- app/views/effective/fee_payments/_declarations.html.haml
|
388
392
|
- app/views/effective/fee_payments/_demographics.html.haml
|
389
|
-
- app/views/effective/fee_payments/_demographics_fields.html.haml
|
390
|
-
- app/views/effective/fee_payments/_demographics_owner.html.haml
|
391
393
|
- app/views/effective/fee_payments/_fee_payment.html.haml
|
392
394
|
- app/views/effective/fee_payments/_layout.html.haml
|
393
395
|
- app/views/effective/fee_payments/_orders.html.haml
|
396
|
+
- app/views/effective/fee_payments/_organization.html.haml
|
394
397
|
- app/views/effective/fee_payments/_summary.html.haml
|
395
398
|
- app/views/effective/fee_payments/billing.html.haml
|
396
399
|
- app/views/effective/fee_payments/checkout.html.haml
|
397
400
|
- app/views/effective/fee_payments/declarations.html.haml
|
398
401
|
- app/views/effective/fee_payments/demographics.html.haml
|
402
|
+
- app/views/effective/fee_payments/organization.html.haml
|
399
403
|
- app/views/effective/fee_payments/start.html.haml
|
400
404
|
- app/views/effective/fee_payments/submitted.html.haml
|
401
405
|
- app/views/effective/fee_payments/summary.html.haml
|
@@ -410,6 +414,15 @@ files:
|
|
410
414
|
- app/views/effective/memberships_mailer/applicant_declined.liquid
|
411
415
|
- app/views/effective/memberships_mailer/applicant_missing_info.liquid
|
412
416
|
- app/views/effective/memberships_mailer/applicant_reference_notification.liquid
|
417
|
+
- app/views/effective/organizations/_dashboard.html.haml
|
418
|
+
- app/views/effective/organizations/_form.html.haml
|
419
|
+
- app/views/effective/organizations/_form_organization.html.haml
|
420
|
+
- app/views/effective/representatives/_form.html.haml
|
421
|
+
- app/views/effective/representatives/_user_fields.html.haml
|
422
|
+
- app/views/organizations/_demographics.html.haml
|
423
|
+
- app/views/organizations/_fields_demographics.html.haml
|
424
|
+
- app/views/users/_demographics.html.haml
|
425
|
+
- app/views/users/_fields_demographics.html.haml
|
413
426
|
- config/effective_memberships.rb
|
414
427
|
- config/routes.rb
|
415
428
|
- db/migrate/01_create_effective_memberships.rb.erb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
%table.table.table-sm
|
2
|
-
%tbody
|
3
|
-
%tr
|
4
|
-
%th Name
|
5
|
-
%td= owner.to_s
|
6
|
-
|
7
|
-
- if owner.respond_to?(:email) && owner.email.present?
|
8
|
-
%tr
|
9
|
-
%th Email
|
10
|
-
%td= mail_to owner.email
|
11
|
-
|
12
|
-
- if owner.respond_to?(:date_of_birth) && owner.date_of_birth.present?
|
13
|
-
%tr
|
14
|
-
%th Date of Birth
|
15
|
-
%td= owner.date_of_birth.strftime('%F')
|
16
|
-
|
17
|
-
- if owner.respond_to?(:phone) && owner.phone.present?
|
18
|
-
%tr
|
19
|
-
%th Phone:
|
20
|
-
%td= owner.phone
|
@@ -1,20 +0,0 @@
|
|
1
|
-
%table.table.table-sm
|
2
|
-
%tbody
|
3
|
-
%tr
|
4
|
-
%th Name
|
5
|
-
%td= owner.to_s
|
6
|
-
|
7
|
-
- if owner.respond_to?(:email) && owner.email.present?
|
8
|
-
%tr
|
9
|
-
%th Email
|
10
|
-
%td= mail_to owner.email
|
11
|
-
|
12
|
-
- if owner.respond_to?(:date_of_birth) && owner.date_of_birth.present?
|
13
|
-
%tr
|
14
|
-
%th Date of Birth
|
15
|
-
%td= owner.date_of_birth.strftime('%F')
|
16
|
-
|
17
|
-
- if owner.respond_to?(:phone) && owner.phone.present?
|
18
|
-
%tr
|
19
|
-
%th Phone:
|
20
|
-
%td= owner.phone
|