effective_memberships 0.4.11 → 0.4.12

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/effective/applicant_endorsements/complete.html.haml +2 -3
  3. data/app/views/effective/applicant_endorsements/edit.html.haml +6 -7
  4. data/app/views/effective/applicant_references/complete.html.haml +2 -3
  5. data/app/views/effective/applicant_references/edit.html.haml +6 -7
  6. data/app/views/effective/applicants/_applicant.html.haml +2 -1
  7. data/app/views/effective/applicants/_course_amounts.html.haml +9 -17
  8. data/app/views/effective/applicants/_declarations.html.haml +9 -16
  9. data/app/views/effective/applicants/_demographics.html.haml +2 -9
  10. data/app/views/effective/applicants/_education.html.haml +6 -13
  11. data/app/views/effective/applicants/_endorsements.html.haml +6 -13
  12. data/app/views/effective/applicants/_equivalences.html.haml +3 -10
  13. data/app/views/effective/applicants/_experience.html.haml +18 -25
  14. data/app/views/effective/applicants/_files.html.haml +16 -23
  15. data/app/views/effective/applicants/_organization.html.haml +2 -9
  16. data/app/views/effective/applicants/_references.html.haml +6 -13
  17. data/app/views/effective/applicants/_stamp.html.haml +23 -30
  18. data/app/views/effective/applicants/_summary.html.haml +5 -0
  19. data/app/views/effective/applicants/billing.html.haml +6 -7
  20. data/app/views/effective/applicants/checkout.html.haml +2 -3
  21. data/app/views/effective/applicants/course_amounts.html.haml +48 -49
  22. data/app/views/effective/applicants/declarations.html.haml +9 -10
  23. data/app/views/effective/applicants/demographics.html.haml +6 -7
  24. data/app/views/effective/applicants/education.html.haml +16 -17
  25. data/app/views/effective/applicants/endorsements.html.haml +20 -21
  26. data/app/views/effective/applicants/equivalences.html.haml +14 -15
  27. data/app/views/effective/applicants/experience.html.haml +35 -36
  28. data/app/views/effective/applicants/files.html.haml +8 -9
  29. data/app/views/effective/applicants/organization.html.haml +10 -11
  30. data/app/views/effective/applicants/references.html.haml +16 -17
  31. data/app/views/effective/applicants/select.html.haml +25 -26
  32. data/app/views/effective/applicants/stamp.html.haml +16 -17
  33. data/app/views/effective/applicants/start.html.haml +4 -5
  34. data/app/views/effective/applicants/submitted.html.haml +9 -10
  35. data/app/views/effective/fee_payments/_declarations.html.haml +9 -16
  36. data/app/views/effective/fee_payments/_demographics.html.haml +2 -9
  37. data/app/views/effective/fee_payments/_fee_payment.html.haml +2 -1
  38. data/app/views/effective/fee_payments/_organization.html.haml +2 -9
  39. data/app/views/effective/fee_payments/billing.html.haml +6 -7
  40. data/app/views/effective/fee_payments/checkout.html.haml +2 -3
  41. data/app/views/effective/fee_payments/declarations.html.haml +8 -9
  42. data/app/views/effective/fee_payments/demographics.html.haml +6 -7
  43. data/app/views/effective/fee_payments/organization.html.haml +10 -11
  44. data/app/views/effective/fee_payments/start.html.haml +23 -24
  45. data/app/views/effective/fee_payments/submitted.html.haml +2 -2
  46. data/lib/effective_memberships/version.rb +1 -1
  47. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a08504cb78fd8324ad3a72904249556ba0761b490a4574e1be3a4f6ac22ef51f
4
- data.tar.gz: 409b51e03245bd8e331aeaf2acd038c111eb060e2852ffdfdbd282e4a20d7e9a
3
+ metadata.gz: 9e598cee90bcbc1349b12ff9d56babaf0686ddcc91f6ed162c8a8edc6c4b5c67
4
+ data.tar.gz: 8ace8c8625d529b305e832b9f24c5377be98e3da711a7d146fdf67d613bf7a93
5
5
  SHA512:
6
- metadata.gz: ca160549bff37e5194ca4eaea87f1479426b9f019631497892d564ec4e4be828dc41513085418c89a5b08aa3fa5b2190ee7eb30a3b84acec7f6b5f03a15ff82e
7
- data.tar.gz: 184c786911efb0309e0d988e288f3d61f7ce9cb440e850e45a2c6fb13903e9a2f5eb79ef6b414a4b9f1365c3af9dfdd5536e050f780d1f50f60b19fd47008586
6
+ metadata.gz: 2dadd826408201278a2cfcd8638399c140c755ceda775accdb015b8613e7f036d68dbd0776e39d77ff76bc41d0bec765972c33c1f859dc3dfcfc5ce3f57d965f
7
+ data.tar.gz: 7d915acf40e2b27b05773674e536d70c45555ea217f3f7abaa34c330ee51c00d75c914681c91f8ec43d39d33c0fe2127a6614f1f5afc7fb8664b8af937b054cd
@@ -1,3 +1,2 @@
1
- .card
2
- .card-body
3
- %p Thank you! The confidential endorsement has been completed.
1
+ = card do
2
+ %p Thank you! The confidential endorsement has been completed.
@@ -1,8 +1,7 @@
1
- .card
2
- .card-body
3
- %p
4
- Please provide a endorsement for the applicant
5
- = succeed('.') do
6
- %strong= @applicant_endorsement.applicant.owner
1
+ = card do
2
+ %p
3
+ Please provide a endorsement for the applicant
4
+ = succeed('.') do
5
+ %strong= @applicant_endorsement.applicant.owner
7
6
 
8
- = render('form_declaration', applicant_endorsement: @applicant_endorsement)
7
+ = render('form_declaration', applicant_endorsement: @applicant_endorsement)
@@ -1,3 +1,2 @@
1
- .card
2
- .card-body
3
- %p Thank you! The confidential reference has been completed.
1
+ = card do
2
+ %p Thank you! The confidential reference has been completed.
@@ -1,8 +1,7 @@
1
- .card
2
- .card-body
3
- %p
4
- Please provide a reference for the applicant
5
- = succeed('.') do
6
- %strong= @applicant_reference.applicant.owner
1
+ = card do
2
+ %p
3
+ Please provide a reference for the applicant
4
+ = succeed('.') do
5
+ %strong= @applicant_reference.applicant.owner
7
6
 
8
- = render('form_declaration', applicant_reference: @applicant_reference)
7
+ = render('form_declaration', applicant_reference: @applicant_reference)
@@ -1,3 +1,4 @@
1
1
  .effective-applicant
2
2
  - applicant.render_steps.each do |partial|
3
- = render "effective/applicants/#{partial}", applicant: applicant, step: partial
3
+ - applicant.render_step = partial
4
+ = render "effective/applicants/#{partial}", applicant: applicant
@@ -1,19 +1,11 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:course_amounts)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:course_amounts)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ - applicant.applicant_course_areas_collection.each do |area|
3
+ - datatable = EffectiveApplicantCoursesDatatable.new(applicant: applicant, applicant_course_area_id: area.id)
8
4
 
5
+ .mb-4
6
+ %h6= area
7
+ = render_simple_datatable(datatable)
8
+ %p #{area} courses: #{applicant.applicant_course_area_sum(applicant_course_area: area)}
9
9
 
10
- - applicant.applicant_course_areas_collection.each do |area|
11
- - datatable = EffectiveApplicantCoursesDatatable.new(applicant: applicant, applicant_course_area_id: area.id)
12
-
13
- .mb-4
14
- %h6= area
15
- = render_simple_datatable(datatable)
16
- %p #{area} courses: #{applicant.applicant_course_area_sum(applicant_course_area: area)}
17
-
18
- %p
19
- %strong All courses: #{pluralize(applicant.applicant_courses_sum, 'total course')}
10
+ %p
11
+ %strong All courses: #{pluralize(applicant.applicant_courses_sum, 'total course')}
@@ -1,16 +1,9 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:declarations)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:declarations)) if edit_effective_wizard?
8
-
9
- %table.table.table-sm
10
- %tbody
11
- %tr
12
- %td= icon('check')
13
- %td Yes, I hereby certify that I have read and will adhere to the Code of Ethics
14
- %tr
15
- %td= icon('check')
16
- %td Yes, I hereby certify that the statements and information contained herein are correct
1
+ = wizard_card(applicant) do
2
+ %table.table.table-sm
3
+ %tbody
4
+ %tr
5
+ %td= icon('check')
6
+ %td Yes, I hereby certify that I have read and will adhere to the Code of Ethics
7
+ %tr
8
+ %td= icon('check')
9
+ %td Yes, I hereby certify that the statements and information contained herein are correct
@@ -1,9 +1,2 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:demographics)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:demographics)) if edit_effective_wizard?
8
-
9
- = render 'users/demographics', parent: applicant, user: applicant.user
1
+ = wizard_card(applicant) do
2
+ = render 'users/demographics', parent: applicant, user: applicant.user
@@ -1,14 +1,7 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:education)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:education)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ - datatable = EffectiveApplicantEducationsDatatable.new(applicant: applicant)
3
+ .mb-4= render_simple_datatable(datatable)
8
4
 
9
- - datatable = EffectiveApplicantEducationsDatatable.new(applicant: applicant)
10
- .mb-4= render_simple_datatable(datatable)
11
-
12
- - if applicant.applicant_educations_details.present?
13
- %h6 Additional Education Details
14
- = simple_format(applicant.applicant_educations_details)
5
+ - if applicant.applicant_educations_details.present?
6
+ %h6 Additional Education Details
7
+ = simple_format(applicant.applicant_educations_details)
@@ -1,15 +1,8 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:endorsements)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:endorsements)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ - applicant.applicant_endorsements.each_with_index do |applicant_endorsement, index|
3
+ - if index > 0
4
+ .mb-4
8
5
 
9
- - applicant.applicant_endorsements.each_with_index do |applicant_endorsement, index|
10
- - if index > 0
11
- .mb-4
6
+ %h6 Endorsement ##{index + 1}
12
7
 
13
- %h6 Endorsement ##{index + 1}
14
-
15
- = render('effective/applicant_endorsements/applicant_endorsement', applicant_endorsement: applicant_endorsement)
8
+ = render('effective/applicant_endorsements/applicant_endorsement', applicant_endorsement: applicant_endorsement)
@@ -1,10 +1,3 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:equivalences)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:equivalences)) if edit_effective_wizard?
8
-
9
- - datatable = EffectiveApplicantEquivalencesDatatable.new(applicant: applicant)
10
- .mb-4= render_simple_datatable(datatable)
1
+ = wizard_card(applicant) do
2
+ - datatable = EffectiveApplicantEquivalencesDatatable.new(applicant: applicant)
3
+ .mb-4= render_simple_datatable(datatable)
@@ -1,28 +1,21 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:experience)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:experience)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ %table.table
3
+ %tbody
4
+ -# %tr
5
+ -# %th CV / Resume Upload
6
+ -# %td
7
+ -# - if applicant.cv.attached?
8
+ -# = link_to(applicant.cv.filename, url_for(applicant.cv), target: '_blank')
9
+ -# - else
10
+ -# None
8
11
 
9
- %table.table
10
- %tbody
11
- -# %tr
12
- -# %th CV / Resume Upload
13
- -# %td
14
- -# - if applicant.cv.attached?
15
- -# = link_to(applicant.cv.filename, url_for(applicant.cv), target: '_blank')
16
- -# - else
17
- -# None
12
+ %tr
13
+ %th Total Months
14
+ %td= applicant.applicant_experiences_months
18
15
 
19
- %tr
20
- %th Total Months
21
- %td= applicant.applicant_experiences_months
16
+ - datatable = EffectiveApplicantExperiencesDatatable.new(applicant: applicant)
17
+ .mb-4= render_simple_datatable(datatable)
22
18
 
23
- - datatable = EffectiveApplicantExperiencesDatatable.new(applicant: applicant)
24
- .mb-4= render_simple_datatable(datatable)
25
-
26
- - if applicant.applicant_experiences_details.present?
27
- %h6 Additional Experiences Details
28
- = simple_format(applicant.applicant_experiences_details)
19
+ - if applicant.applicant_experiences_details.present?
20
+ %h6 Additional Experiences Details
21
+ = simple_format(applicant.applicant_experiences_details)
@@ -1,27 +1,20 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:files)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:files)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ %table.table.table-sm
3
+ %tbody
4
+ - applicant.applicant_files.each do |file|
8
5
 
9
- %table.table.table-sm
10
- %tbody
11
- - applicant.applicant_files.each do |file|
6
+ - url = url_for(file)
7
+ - title = file.filename.to_s
12
8
 
13
- - url = url_for(file)
14
- - title = file.filename.to_s
9
+ - image_tag = content_tag(:img, '', class: '', src: url, alt: title) if file.image?
10
+ - link_tag = link_to('Download', url, target: '_blank')
11
+ - size_tag = (file.content_type + '<br>' + number_to_human_size(file.byte_size)).html_safe
15
12
 
16
- - image_tag = content_tag(:img, '', class: '', src: url, alt: title) if file.image?
17
- - link_tag = link_to('Download', url, target: '_blank')
18
- - size_tag = (file.content_type + '<br>' + number_to_human_size(file.byte_size)).html_safe
13
+ %tr
14
+ %td= image_tag
15
+ %td= title
16
+ %td= size_tag
17
+ %td= link_tag
19
18
 
20
- %tr
21
- %td= image_tag
22
- %td= title
23
- %td= size_tag
24
- %td= link_tag
25
-
26
- - if applicant.applicant_files.blank?
27
- %p No files attached
19
+ - if applicant.applicant_files.blank?
20
+ %p No files attached
@@ -1,9 +1,2 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:organization)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:organization)) if edit_effective_wizard?
8
-
9
- = render 'organizations/demographics', parent: applicant, organization: applicant.organization
1
+ = wizard_card(applicant) do
2
+ = render 'organizations/demographics', parent: applicant, organization: applicant.organization
@@ -1,15 +1,8 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:references)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:references)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ - applicant.applicant_references.each_with_index do |applicant_reference, index|
3
+ - if index > 0
4
+ .mb-4
8
5
 
9
- - applicant.applicant_references.each_with_index do |applicant_reference, index|
10
- - if index > 0
11
- .mb-4
6
+ %h6 Reference ##{index + 1}
12
7
 
13
- %h6 Reference ##{index + 1}
14
-
15
- = render('effective/applicant_references/applicant_reference', applicant_reference: applicant_reference)
8
+ = render('effective/applicant_references/applicant_reference', applicant_reference: applicant_reference)
@@ -1,36 +1,29 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= applicant.wizard_step_title(:stamp)
6
- .col-sm-auto.text-right
7
- = link_to('Edit', wizard_path(:stamp)) if edit_effective_wizard?
1
+ = wizard_card(applicant) do
2
+ - applicant.stamps.each do |stamp|
3
+ %table.table.table-sm
4
+ %tbody
5
+ %tr
6
+ %th Name
7
+ %td= stamp.name
8
8
 
9
- - applicant.stamps.each do |stamp|
10
- %table.table.table-sm
11
- %tbody
12
- %tr
13
- %th Name
14
- %td= stamp.name
9
+ %tr
10
+ %th Name Confirmation
11
+ %td= stamp.name_confirmation
15
12
 
16
- %tr
17
- %th Name Confirmation
18
- %td= stamp.name_confirmation
13
+ %tr
14
+ %th Category
15
+ %td= stamp.category
19
16
 
17
+ - if stamp.shipping_address.present?
20
18
  %tr
21
- %th Category
22
- %td= stamp.category
23
-
24
- - if stamp.shipping_address.present?
25
- %tr
26
- %th Shipping Address
27
- %td= stamp.shipping_address.to_html
19
+ %th Shipping Address
20
+ %td= stamp.shipping_address.to_html
28
21
 
29
- - if applicant.was_approved?
30
- %tr
31
- %th Submitted
32
- %td= stamp.submitted_at&.strftime('%F') || '-'
22
+ - if applicant.was_approved?
23
+ %tr
24
+ %th Submitted
25
+ %td= stamp.submitted_at&.strftime('%F') || '-'
33
26
 
34
- %tr
35
- %th Issued
36
- %td= stamp.issued_at&.strftime('%F') || 'Not Issued'
27
+ %tr
28
+ %th Issued
29
+ %td= stamp.issued_at&.strftime('%F') || 'Not Issued'
@@ -31,6 +31,11 @@
31
31
  %th Category
32
32
  %td= [applicant.applicant_type, applicant.category].join(' - ')
33
33
 
34
+ - if applicant.try(:stream).present?
35
+ %tr
36
+ %th Stream
37
+ %td= applicant.stream
38
+
34
39
  - if applicant.orders.present?
35
40
  %tr
36
41
  %th Order#{'s' if applicant.orders.length > 1}
@@ -3,12 +3,11 @@
3
3
 
4
4
  - raise('expected owner to respond to billing_address') unless resource.owner.respond_to?(:billing_address)
5
5
 
6
- .card
7
- .card-body
8
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
9
- = f.hidden_field :id
6
+ = card do
7
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
8
+ = f.hidden_field :id
10
9
 
11
- = f.fields_for(f.object.owner_symbol, f.object.owner) do |fo|
12
- = effective_address_fields(fo, :billing)
10
+ = f.fields_for(f.object.owner_symbol, f.object.owner) do |fo|
11
+ = effective_address_fields(fo, :billing)
13
12
 
14
- = f.save 'Save and Continue'
13
+ = f.save 'Save and Continue'
@@ -1,6 +1,5 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/applicants/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- = render_checkout_step2(resource.submit_order, purchased_url: wizard_path(:submitted), deferred_url: wizard_path(:checkout), declined_url: wizard_path(:checkout))
4
+ = card do
5
+ = render_checkout_step2(resource.submit_order, purchased_url: wizard_path(:submitted), deferred_url: wizard_path(:checkout), declined_url: wizard_path(:checkout))
@@ -1,52 +1,51 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/applicants/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- - if resource.min_applicant_courses > 0
7
- .alert.alert-danger You must include #{resource.min_applicant_courses} or more courses.
8
-
9
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
10
- = f.hidden_field :id
11
-
12
- .applicant-courses-sum
13
- Total Courses:
14
- %span{'data-applicant-courses-sum': true}= f.object.applicant_courses_sum
15
-
16
- - f.object.applicant_course_areas_collection.each do |area|
17
- .applicant-course-area.my-4
18
- %h2= area
19
-
20
- - if area.body.present?
21
- %p= area.body
22
-
23
- %table.table.table-sm.table-borderless.table-courses
24
- %tbody
25
- - area.applicant_course_names.each do |applicant_course_name|
26
- - applicant_course = f.object.applicant_course(applicant_course_name: applicant_course_name)
27
-
28
- = f.fields_for(:applicant_courses, applicant_course) do |acf|
29
- %tr
30
- %th.table-courses-course-name= applicant_course_name
31
- %td
32
- = acf.number_field :amount, label: false, required: false, 'data-applicant-courses-amount': true, class: 'col-3'
33
- = acf.hidden_field :applicant_course_name_id, value: applicant_course_name.id
34
-
35
- %tfoot
36
- %tr
37
- %th.table-courses-course-name Total #{area}
38
- %td
39
- %span{'data-applicant-course-area-sum': true}= f.object.applicant_course_area_sum(applicant_course_area: area)
40
-
41
- .applicant-courses-sum.my-2
42
- %h2 Total
43
- .row
44
- .col
45
- %p Total Courses:
46
- %span{'data-applicant-courses-sum': true}= f.object.applicant_courses_sum
47
- .col
48
- = f.static_field :min_applicant_courses, label: 'Required Courses'
49
-
50
- = render_if_exists("effective/applicants/course_amounts_fields", f: f)
51
-
52
- = f.save 'Save and Continue'
4
+ = card do
5
+ - if resource.min_applicant_courses > 0
6
+ .alert.alert-danger You must include #{resource.min_applicant_courses} or more courses.
7
+
8
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
9
+ = f.hidden_field :id
10
+
11
+ .applicant-courses-sum
12
+ Total Courses:
13
+ %span{'data-applicant-courses-sum': true}= f.object.applicant_courses_sum
14
+
15
+ - f.object.applicant_course_areas_collection.each do |area|
16
+ .applicant-course-area.my-4
17
+ %h2= area
18
+
19
+ - if area.body.present?
20
+ %p= area.body
21
+
22
+ %table.table.table-sm.table-borderless.table-courses
23
+ %tbody
24
+ - area.applicant_course_names.each do |applicant_course_name|
25
+ - applicant_course = f.object.applicant_course(applicant_course_name: applicant_course_name)
26
+
27
+ = f.fields_for(:applicant_courses, applicant_course) do |acf|
28
+ %tr
29
+ %th.table-courses-course-name= applicant_course_name
30
+ %td
31
+ = acf.number_field :amount, label: false, required: false, 'data-applicant-courses-amount': true, class: 'col-3'
32
+ = acf.hidden_field :applicant_course_name_id, value: applicant_course_name.id
33
+
34
+ %tfoot
35
+ %tr
36
+ %th.table-courses-course-name Total #{area}
37
+ %td
38
+ %span{'data-applicant-course-area-sum': true}= f.object.applicant_course_area_sum(applicant_course_area: area)
39
+
40
+ .applicant-courses-sum.my-2
41
+ %h2 Total
42
+ .row
43
+ .col
44
+ %p Total Courses:
45
+ %span{'data-applicant-courses-sum': true}= f.object.applicant_courses_sum
46
+ .col
47
+ = f.static_field :min_applicant_courses, label: 'Required Courses'
48
+
49
+ = render_if_exists("effective/applicants/course_amounts_fields", f: f)
50
+
51
+ = f.save 'Save and Continue'
@@ -5,17 +5,16 @@
5
5
  - resource.declare_code_of_ethics = completed
6
6
  - resource.declare_truth = completed
7
7
 
8
- .card
9
- .card-body
10
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
- = f.hidden_field :id
8
+ = card do
9
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
10
+ = f.hidden_field :id
12
11
 
13
- = f.check_box :declare_code_of_ethics,
14
- label: 'Yes, I hereby certify that I have read and will adhere to the Code of Ethics'
12
+ = f.check_box :declare_code_of_ethics,
13
+ label: 'Yes, I hereby certify that I have read and will adhere to the Code of Ethics'
15
14
 
16
- = f.check_box :declare_truth,
17
- label: 'Yes, I hereby certify that the statements and information contained herein are correct'
15
+ = f.check_box :declare_truth,
16
+ label: 'Yes, I hereby certify that the statements and information contained herein are correct'
18
17
 
19
- = render_if_exists("effective/applicants/declarations_fields", f: f)
18
+ = render_if_exists("effective/applicants/declarations_fields", f: f)
20
19
 
21
- = f.save 'Save and Continue'
20
+ = f.save 'Save and Continue'
@@ -1,12 +1,11 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/applicants/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
7
- = f.hidden_field :id
4
+ = card do
5
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
6
+ = f.hidden_field :id
8
7
 
9
- = f.fields_for(:user, f.object.user) do |fu|
10
- = render 'users/fields_demographics', f: fu, user: f.object.user, parent: resource
8
+ = f.fields_for(:user, f.object.user) do |fu|
9
+ = render 'users/fields_demographics', f: fu, user: f.object.user, parent: resource
11
10
 
12
- = f.save 'Save and Continue'
11
+ = f.save 'Save and Continue'
@@ -1,27 +1,26 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/applicants/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- - if resource.min_applicant_educations > 0
7
- .alert.alert-danger You must include #{resource.min_applicant_educations} or more post-secondary educations.
4
+ = card do
5
+ - if resource.min_applicant_educations > 0
6
+ .alert.alert-danger You must include #{resource.min_applicant_educations} or more post-secondary educations.
8
7
 
9
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
10
- = f.hidden_field :id
8
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
9
+ = f.hidden_field :id
11
10
 
12
- = f.has_many(:applicant_educations, cards: true) do |aef|
13
- %h4.mb-4 Post-Secondary Education
11
+ = f.has_many(:applicant_educations, cards: true) do |aef|
12
+ %h4.mb-4 Post-Secondary Education
14
13
 
15
- .row
16
- .col= aef.text_field :institution
17
- .col= aef.text_field :location
14
+ = aef.text_field :degree_obtained, label: 'Degree, diploma or program'
18
15
 
19
- .row
20
- .col= aef.date_field :start_on, label: 'Start Date'
21
- .col= aef.date_field :end_on, label: 'End Date'
16
+ .row
17
+ .col= aef.text_field :institution
18
+ .col= aef.text_field :location
22
19
 
23
- = aef.text_field :degree_obtained, label: 'Degree, diploma or program'
20
+ .row
21
+ .col= aef.date_field :start_on, label: 'Start Date'
22
+ .col= aef.date_field :end_on, label: 'End Date'
24
23
 
25
- = render_if_exists("effective/applicants/education_fields", f: f)
24
+ = render_if_exists("effective/applicants/education_fields", f: f)
26
25
 
27
- = f.save 'Save and Continue'
26
+ = f.save 'Save and Continue'