effective_memberships 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,34 +1,33 @@
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_endorsements > 0
7
- %p You must include #{resource.min_applicant_endorsements} or more endorsements.
4
+ = card do
5
+ - if resource.min_applicant_endorsements > 0
6
+ %p You must include #{resource.min_applicant_endorsements} or more endorsements.
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
- - endorders_collection = Effective::ApplicantEndorsement.endorser_collection(resource)
11
+ - endorders_collection = Effective::ApplicantEndorsement.endorser_collection(resource)
13
12
 
14
- = f.has_many(:applicant_endorsements, cards: true) do |aef|
15
- - aef.object.endorser_type ||= endorders_collection.klass.name
13
+ = f.has_many(:applicant_endorsements, cards: true) do |aef|
14
+ - aef.object.endorser_type ||= endorders_collection.klass.name
16
15
 
17
- %h4 Endorsement
16
+ %h4 Endorsement
18
17
 
19
- = aef.hidden_field :endorser_id
20
- = aef.hidden_field :endorser_type
18
+ = aef.hidden_field :endorser_id
19
+ = aef.hidden_field :endorser_type
21
20
 
22
- = aef.select :endorser_id, endorders_collection, required: false,
23
- ajax_url: effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource)
21
+ = aef.select :endorser_id, endorders_collection, required: false,
22
+ ajax_url: effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource)
24
23
 
25
- = aef.check_box :unknown_member, label: 'I cant find my endorser in the above list'
24
+ = aef.check_box :unknown_member, label: 'I cant find my endorser in the above list'
26
25
 
27
- = aef.show_if(:unknown_member, true) do
28
- = aef.text_field :name, label: 'Endorser name', required: true
29
- = aef.email_field :endorser_email, label: 'Email', required: true
30
- = aef.phone_field :phone, required: true
26
+ = aef.show_if(:unknown_member, true) do
27
+ = aef.text_field :name, label: 'Endorser name', required: true
28
+ = aef.email_field :endorser_email, label: 'Email', required: true
29
+ = aef.phone_field :phone, required: true
31
30
 
32
- = render_if_exists("effective/applicants/endorsements_fields", f: f)
31
+ = render_if_exists("effective/applicants/endorsements_fields", f: f)
33
32
 
34
- = f.save 'Save and Continue'
33
+ = f.save 'Save and Continue'
@@ -1,25 +1,24 @@
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_equivalences > 0
7
- .alert.alert-danger You must include #{resource.min_applicant_equivalences} or more equivalent memberships.
4
+ = card do
5
+ - if resource.min_applicant_equivalences > 0
6
+ .alert.alert-danger You must include #{resource.min_applicant_equivalences} or more equivalent memberships.
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_equivalences, cards: true) do |aef|
13
- %h4.mb-4 Equivalent Membership
11
+ = f.has_many(:applicant_equivalences, cards: true) do |aef|
12
+ %h4.mb-4 Equivalent Membership
14
13
 
15
- = aef.text_field :name
14
+ = aef.text_field :name
16
15
 
17
- .row
18
- .col= aef.date_field :start_on, label: 'Start Date'
19
- .col= aef.date_field :end_on, label: 'End Date'
16
+ .row
17
+ .col= aef.date_field :start_on, label: 'Start Date'
18
+ .col= aef.date_field :end_on, label: 'End Date'
20
19
 
21
- = aef.text_area :notes
20
+ = aef.text_area :notes
22
21
 
23
- = render_if_exists("effective/applicants/equivalences_fields", f: f)
22
+ = render_if_exists("effective/applicants/equivalences_fields", f: f)
24
23
 
25
- = f.save 'Save and Continue'
24
+ = f.save 'Save and Continue'
@@ -1,51 +1,50 @@
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
- %p You must include #{resource.min_applicant_experiences_months} or more months of experience.
4
+ = card do
5
+ - if resource.min_applicant_educations > 0
6
+ %p You must include #{resource.min_applicant_experiences_months} or more months of experience.
8
7
 
9
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
10
- = f.hidden_field :id
11
- = f.error :applicant_experiences
12
- = f.error :applicant_experiences_months
8
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
9
+ = f.hidden_field :id
10
+ = f.error :applicant_experiences
11
+ = f.error :applicant_experiences_months
13
12
 
14
- = f.has_many(:applicant_experiences, cards: true) do |aef|
15
- %h4.mb-4 Work Experience
13
+ = f.has_many(:applicant_experiences, cards: true) do |aef|
14
+ %h4.mb-4 Work Experience
16
15
 
17
- .row
18
- .col= aef.text_field :employer
19
- .col= aef.text_field :position, label: 'Position Title'
16
+ .row
17
+ .col= aef.text_field :employer
18
+ .col= aef.text_field :position, label: 'Position Title'
20
19
 
21
- .row
22
- .col= aef.date_field :start_on, label: 'Start Date', 'data-applicant-experiences-month': true
23
- .col
24
- = aef.date_field :end_on, label: 'End Date', required: false, 'data-applicant-experiences-month': true
25
- = aef.check_box :still_work_here, label: 'I still work here'
20
+ .row
21
+ .col= aef.date_field :start_on, label: 'Start Date', 'data-applicant-experiences-month': true
22
+ .col
23
+ = aef.date_field :end_on, label: 'End Date', required: false, 'data-applicant-experiences-month': true
24
+ = aef.check_box :still_work_here, label: 'I still work here'
26
25
 
27
- .row
28
- .col
29
- = aef.radios :level, aef.object.class.const_get(:LEVELS), inline: true,
30
- label: 'Employment', 'data-applicant-experiences-month': true
26
+ .row
27
+ .col
28
+ = aef.radios :level, aef.object.class.const_get(:LEVELS), inline: true,
29
+ label: 'Employment', 'data-applicant-experiences-month': true
31
30
 
32
- = aef.show_if :level, 'Part Time' do
33
- = aef.percent_field :percent_worked, label: 'Percent time worked',
34
- hint: 'required when part time', 'data-applicant-experiences-month': true
31
+ = aef.show_if :level, 'Part Time' do
32
+ = aef.percent_field :percent_worked, label: 'Percent time worked',
33
+ hint: 'required when part time', 'data-applicant-experiences-month': true
35
34
 
36
- .col= aef.static_field :months, label: 'Calculated Months', value: aef.object.months.to_i
35
+ .col= aef.static_field :months, label: 'Calculated Months', value: aef.object.months.to_i
37
36
 
38
- = aef.text_area :tasks_performed, class: 'mb-0'
37
+ = aef.text_area :tasks_performed, class: 'mb-0'
39
38
 
40
- %h3 Total Months
41
- .row
42
- .col= f.static_field :applicant_experiences_months, label: 'Entered Months', value: f.object.applicant_experiences_months.to_i
43
- .col
44
- = f.static_field :min_applicant_experiences_months, label: 'Required Months' do
45
- #{f.object.min_applicant_experiences_months} months, or #{f.object.min_applicant_experiences_months / 12} years
39
+ %h3 Total Months
40
+ .row
41
+ .col= f.static_field :applicant_experiences_months, label: 'Entered Months', value: f.object.applicant_experiences_months.to_i
42
+ .col
43
+ = f.static_field :min_applicant_experiences_months, label: 'Required Months' do
44
+ #{f.object.min_applicant_experiences_months} months, or #{f.object.min_applicant_experiences_months / 12} years
46
45
 
47
- = f.error :applicant_experiences_months
46
+ = f.error :applicant_experiences_months
48
47
 
49
- = render_if_exists("effective/applicants/experience_fields", f: f)
48
+ = render_if_exists("effective/applicants/experience_fields", f: f)
50
49
 
51
- = f.save 'Save and Continue'
50
+ = f.save 'Save and Continue'
@@ -1,16 +1,15 @@
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_files > 0
7
- %p You must include #{resource.min_applicant_files} or more files.
4
+ = card do
5
+ - if resource.min_applicant_files > 0
6
+ %p You must include #{resource.min_applicant_files} or more files.
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.file_field :applicant_files, attachment_style: :table
11
+ = f.file_field :applicant_files, attachment_style: :table
13
12
 
14
- = render_if_exists("effective/applicants/files_fields", f: f)
13
+ = render_if_exists("effective/applicants/files_fields", f: f)
15
14
 
16
- = f.save 'Save and Continue'
15
+ = f.save 'Save and Continue'
@@ -2,18 +2,17 @@
2
2
 
3
3
  = render 'effective/applicants/content', resource: resource
4
4
 
5
- .card
6
- .card-body
7
- - datatable = EffectiveResources.best('EffectiveRepresentativesDatatable').new(self, organization: resource.organization)
5
+ = card do
6
+ - datatable = EffectiveResources.best('EffectiveRepresentativesDatatable').new(self, organization: resource.organization)
8
7
 
9
- %h2 Representatives
10
- = render_datatable(datatable, inline: true, simple: true)
8
+ %h2 Representatives
9
+ = render_datatable(datatable, inline: true, simple: true)
11
10
 
12
- %h2 Organization Info
13
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
14
- = f.hidden_field :id
11
+ %h2 Organization Info
12
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
13
+ = f.hidden_field :id
15
14
 
16
- = f.fields_for(:organization, f.object.organization) do |fo|
17
- = render 'organizations/fields_demographics', f: fo, organization: f.object.organization, parent: resource
15
+ = f.fields_for(:organization, f.object.organization) do |fo|
16
+ = render 'organizations/fields_demographics', f: fo, organization: f.object.organization, parent: resource
18
17
 
19
- = f.save 'Save and Continue'
18
+ = f.save 'Save and Continue'
@@ -1,26 +1,25 @@
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_references > 0
7
- %p You must include #{resource.min_applicant_references} or more references.
4
+ = card do
5
+ - if resource.min_applicant_references > 0
6
+ %p You must include #{resource.min_applicant_references} or more references.
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_references, cards: true) do |arf|
13
- %h4 Reference
11
+ = f.has_many(:applicant_references, cards: true) do |arf|
12
+ %h4 Reference
14
13
 
15
- = arf.text_field :name, label: 'Full Name'
16
- .row
17
- .col= arf.email_field :email
18
- .col= arf.tel_field :phone
14
+ = arf.text_field :name, label: 'Full Name'
15
+ .row
16
+ .col= arf.email_field :email
17
+ .col= arf.tel_field :phone
19
18
 
20
- .row
21
- .col= arf.select :relationship, Effective::ApplicantReference::RELATIONSHIPS
22
- .col= arf.select :known, Effective::ApplicantReference::KNOWNS, label: 'Known for'
19
+ .row
20
+ .col= arf.select :relationship, Effective::ApplicantReference::RELATIONSHIPS
21
+ .col= arf.select :known, Effective::ApplicantReference::KNOWNS, label: 'Known for'
23
22
 
24
- = render_if_exists("effective/applicants/references_fields", f: f)
23
+ = render_if_exists("effective/applicants/references_fields", f: f)
25
24
 
26
- = f.save 'Save and Continue'
25
+ = f.save 'Save and Continue'
@@ -4,39 +4,38 @@
4
4
  - categories = resource.can_apply_categories_collection()
5
5
  - organization_categories = categories.select(&:organization?)
6
6
 
7
- .card
8
- .card-body
9
- - if categories.blank?
10
- %p
11
- There are no categories available for you to apply for.
12
- Please contact us if you believe this is in error.
7
+ = card do
8
+ - if categories.blank?
9
+ %p
10
+ There are no categories available for you to apply for.
11
+ Please contact us if you believe this is in error.
13
12
 
14
- - if categories.present?
15
- %p Please select a category to continue.
13
+ - if categories.present?
14
+ %p Please select a category to continue.
16
15
 
17
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
18
- = f.hidden_field :id
16
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
17
+ = f.hidden_field :id
19
18
 
20
- = f.hidden_field :organization_id, value: nil
21
- = f.hidden_field :organization_type, value: nil
22
- = f.hidden_field :category_type, value: EffectiveMemberships.Category.name
19
+ = f.hidden_field :organization_id, value: nil
20
+ = f.hidden_field :organization_type, value: nil
21
+ = f.hidden_field :category_type, value: EffectiveMemberships.Category.name
23
22
 
24
- = f.select :category_id, categories, required: true
23
+ = f.select :category_id, categories, required: true
25
24
 
26
- - categories.each do |mc|
27
- = f.show_if(:category_id, mc.id) do
28
- .mb-4
29
- %h3= mc.to_s
25
+ - categories.each do |mc|
26
+ = f.show_if(:category_id, mc.id) do
27
+ .mb-4
28
+ %h3= mc.to_s
30
29
 
31
- - if organization_categories.present?
32
- %small.text-muted #{mc.category} #{mc.category_type} Membership
30
+ - if organization_categories.present?
31
+ %small.text-muted #{mc.category} #{mc.category_type} Membership
33
32
 
34
- = mc.rich_text_body
33
+ = mc.rich_text_body
35
34
 
36
- = render_if_exists("effective/applicants/select/#{mc.to_s.parameterize.underscore}", f: f, category: mc)
35
+ = render_if_exists("effective/applicants/select/#{mc.to_s.parameterize.underscore}", f: f, category: mc)
37
36
 
38
- - if organization_categories.present?
39
- = f.show_if_any(:category_id, organization_categories.map(&:id)) do
40
- = render('effective/applicants/select_organization', f: f)
37
+ - if organization_categories.present?
38
+ = f.show_if_any(:category_id, organization_categories.map(&:id)) do
39
+ = render('effective/applicants/select_organization', f: f)
41
40
 
42
- = f.save 'Save and Continue'
41
+ = f.save 'Save and Continue'
@@ -1,28 +1,27 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/applicants/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- %p Should your application be approved, you are eligible to receive a Professional Stamp.
4
+ = card do
5
+ %p Should your application be approved, you are eligible to receive a Professional Stamp.
7
6
 
8
- %p Please confirm your name as it should appear on any Professional Stamp.
7
+ %p Please confirm your name as it should appear on any Professional Stamp.
9
8
 
10
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
- = f.hidden_field :id
9
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
10
+ = f.hidden_field :id
12
11
 
13
- = f.fields_for(:stamps, f.object.stamp) do |fs|
14
- = fs.hidden_field :applicant_id
15
- = fs.hidden_field :applicant_type
12
+ = f.fields_for(:stamps, f.object.stamp) do |fs|
13
+ = fs.hidden_field :applicant_id
14
+ = fs.hidden_field :applicant_type
16
15
 
17
- = fs.hidden_field :user_id
18
- = fs.hidden_field :user_type
16
+ = fs.hidden_field :user_id
17
+ = fs.hidden_field :user_type
19
18
 
20
- = fs.hidden_field :price
21
- = fs.hidden_field :tax_exempt
22
- = fs.hidden_field :qb_item_name
19
+ = fs.hidden_field :price
20
+ = fs.hidden_field :tax_exempt
21
+ = fs.hidden_field :qb_item_name
23
22
 
24
- = render 'effective/stamps/fields', f: fs
23
+ = render 'effective/stamps/fields', f: fs
25
24
 
26
- %p Stamps will be processed after approval of this application.
25
+ %p Stamps will be processed after approval of this application.
27
26
 
28
- = f.save 'Save and Continue'
27
+ = f.save 'Save and Continue'
@@ -1,11 +1,10 @@
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
8
- = f.save 'Save and Continue'
4
+ = card do
5
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
6
+ = f.hidden_field :id
7
+ = f.save 'Save and Continue'
9
8
 
10
9
  -# .card
11
10
  -# .card-body
@@ -12,16 +12,15 @@
12
12
  = render 'effective/applicants/missing_info', applicant: resource
13
13
 
14
14
  - unless resource.approved?
15
- .card
16
- .card-body
17
- %p
18
- Your application must still be approved.
19
- We will send
20
- %strong= resource.user.email
21
- an email notifying you of the application's approval status.
22
-
23
- .card
24
- .card-body= render 'effective/applicants/summary', applicant: resource
15
+ = card do
16
+ %p
17
+ Your application must still be approved.
18
+ We will send
19
+ %strong= resource.user.email
20
+ an email notifying you of the application's approval status.
21
+
22
+ = card do
23
+ = render 'effective/applicants/summary', applicant: resource
25
24
 
26
25
  - if resource.min_applicant_references.to_i > 0 || resource.applicant_references.present?
27
26
  = card do
@@ -1,16 +1,9 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= fee_payment.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(fee_payment) 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= fee_payment.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: fee_payment, user: fee_payment.user
1
+ = wizard_card(fee_payment)
2
+ = render 'users/demographics', parent: fee_payment, user: fee_payment.user
@@ -1,3 +1,4 @@
1
1
  .effective-fee-payment
2
2
  - fee_payment.render_steps.each do |partial|
3
- = render "effective/fee_payments/#{partial}", fee_payment: fee_payment, resource: fee_payment, step: partial
3
+ - fee_payment.render_step = partial
4
+ = render "effective/fee_payments/#{partial}", fee_payment: fee_payment
@@ -1,9 +1,2 @@
1
- .card
2
- .card-body
3
- .row
4
- .col-sm
5
- %h5.card-title= fee_payment.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: fee_payment, organization: fee_payment.organization
1
+ = wizard_card(fee_payment)
2
+ = render 'organizations/demographics', parent: fee_payment, organization: fee_payment.organization
@@ -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/fee_payments/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))
@@ -6,15 +6,14 @@
6
6
  - resource.declare_code_of_ethics = completed
7
7
  - resource.declare_truth = completed
8
8
 
9
- .card
10
- .card-body
11
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
12
- = f.hidden_field :id
9
+ = card do
10
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
11
+ = f.hidden_field :id
13
12
 
14
- = f.check_box :declare_code_of_ethics,
15
- label: 'Yes, I hereby certify that I have read and will adhere to the Code of Ethics'
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'
16
15
 
17
- = f.check_box :declare_truth,
18
- label: 'Yes, I hereby certify that the statements and information contained herein are correct'
16
+ = f.check_box :declare_truth,
17
+ label: 'Yes, I hereby certify that the statements and information contained herein are correct'
19
18
 
20
- = f.save 'Save and Continue'
19
+ = f.save 'Save and Continue'
@@ -1,12 +1,11 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/fee_payments/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,18 +1,17 @@
1
1
  = render 'layout' do
2
2
  = render 'effective/fee_payments/content', resource: resource
3
3
 
4
- .card
5
- .card-body
6
- - datatable = EffectiveResources.best('EffectiveRepresentativesDatatable').new(self, organization: resource.organization)
4
+ = card do
5
+ - datatable = EffectiveResources.best('EffectiveRepresentativesDatatable').new(self, organization: resource.organization)
7
6
 
8
- %h2 Representatives
9
- = render_datatable(datatable, inline: true, simple: true)
7
+ %h2 Representatives
8
+ = render_datatable(datatable, inline: true, simple: true)
10
9
 
11
- %h2 Organization Info
12
- = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
13
- = f.hidden_field :id
10
+ %h2 Organization Info
11
+ = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
12
+ = f.hidden_field :id
14
13
 
15
- = f.fields_for(:organization, f.object.organization) do |fo|
16
- = render 'organizations/fields_demographics', f: fo, organization: f.object.organization, parent: resource
14
+ = f.fields_for(:organization, f.object.organization) do |fo|
15
+ = render 'organizations/fields_demographics', f: fo, organization: f.object.organization, parent: resource
17
16
 
18
- = f.save 'Save and Continue'
17
+ = f.save 'Save and Continue'