effective_memberships 0.4.10 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/datatables/effective_applicant_endorsements_datatable.rb +1 -0
- data/app/datatables/effective_applicant_equivalences_datatable.rb +23 -0
- data/app/datatables/effective_applicant_experiences_datatable.rb +1 -0
- data/app/models/concerns/effective_memberships_applicant.rb +61 -10
- data/app/models/concerns/effective_memberships_category.rb +2 -0
- data/app/models/effective/applicant_endorsement.rb +1 -1
- data/app/models/effective/applicant_equivalence.rb +32 -0
- data/app/views/admin/applicants/_form.html.haml +4 -0
- data/app/views/admin/applicants/_form_transcripts.html.haml +12 -0
- data/app/views/admin/categories/_form_applicant_steps.html.haml +6 -0
- data/app/views/effective/applicant_endorsements/complete.html.haml +2 -3
- data/app/views/effective/applicant_endorsements/edit.html.haml +6 -7
- data/app/views/effective/applicant_references/complete.html.haml +2 -3
- data/app/views/effective/applicant_references/edit.html.haml +6 -7
- data/app/views/effective/applicants/_applicant.html.haml +2 -1
- data/app/views/effective/applicants/_course_amounts.html.haml +9 -17
- data/app/views/effective/applicants/_declarations.html.haml +9 -16
- data/app/views/effective/applicants/_demographics.html.haml +2 -9
- data/app/views/effective/applicants/_education.html.haml +6 -13
- data/app/views/effective/applicants/_endorsements.html.haml +6 -13
- data/app/views/effective/applicants/_equivalences.html.haml +3 -0
- data/app/views/effective/applicants/_experience.html.haml +18 -25
- data/app/views/effective/applicants/_files.html.haml +16 -23
- data/app/views/effective/applicants/_organization.html.haml +2 -9
- data/app/views/effective/applicants/_references.html.haml +6 -13
- data/app/views/effective/applicants/_stamp.html.haml +23 -30
- data/app/views/effective/applicants/_summary.html.haml +5 -0
- data/app/views/effective/applicants/_transcripts.html.haml +30 -0
- data/app/views/effective/applicants/_transcripts_requirements.html.haml +14 -0
- data/app/views/effective/applicants/billing.html.haml +6 -7
- data/app/views/effective/applicants/checkout.html.haml +2 -3
- data/app/views/effective/applicants/course_amounts.html.haml +48 -47
- data/app/views/effective/applicants/declarations.html.haml +10 -9
- data/app/views/effective/applicants/demographics.html.haml +6 -7
- data/app/views/effective/applicants/education.html.haml +16 -17
- data/app/views/effective/applicants/endorsements.html.haml +24 -16
- data/app/views/effective/applicants/equivalences.html.haml +24 -0
- data/app/views/effective/applicants/experience.html.haml +35 -36
- data/app/views/effective/applicants/files.html.haml +9 -8
- data/app/views/effective/applicants/organization.html.haml +10 -11
- data/app/views/effective/applicants/references.html.haml +17 -16
- data/app/views/effective/applicants/select.html.haml +25 -26
- data/app/views/effective/applicants/stamp.html.haml +16 -17
- data/app/views/effective/applicants/start.html.haml +4 -5
- data/app/views/effective/applicants/submitted.html.haml +9 -10
- data/app/views/effective/applicants/transcripts.html.haml +13 -0
- data/app/views/effective/fee_payments/_declarations.html.haml +9 -16
- data/app/views/effective/fee_payments/_demographics.html.haml +2 -9
- data/app/views/effective/fee_payments/_fee_payment.html.haml +2 -1
- data/app/views/effective/fee_payments/_organization.html.haml +2 -9
- data/app/views/effective/fee_payments/billing.html.haml +6 -7
- data/app/views/effective/fee_payments/checkout.html.haml +2 -3
- data/app/views/effective/fee_payments/declarations.html.haml +8 -9
- data/app/views/effective/fee_payments/demographics.html.haml +6 -7
- data/app/views/effective/fee_payments/organization.html.haml +10 -11
- data/app/views/effective/fee_payments/start.html.haml +23 -24
- data/app/views/effective/fee_payments/submitted.html.haml +2 -2
- data/db/migrate/01_create_effective_memberships.rb.erb +24 -0
- data/lib/effective_memberships/version.rb +1 -1
- metadata +10 -2
@@ -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}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
= wizard_card(applicant) do
|
2
|
+
%table.table
|
3
|
+
%tbody
|
4
|
+
%tr
|
5
|
+
%th Status
|
6
|
+
%td
|
7
|
+
- if applicant.transcripts_received?
|
8
|
+
Received on #{applicant.transcripts_received_on.strftime('%F')}
|
9
|
+
- else
|
10
|
+
Not yet received
|
11
|
+
|
12
|
+
- if applicant.transcripts_status.present?
|
13
|
+
%tr
|
14
|
+
%th Transcripts Status
|
15
|
+
%td= applicant.transcripts_status
|
16
|
+
|
17
|
+
- if applicant.transcripts_details.present?
|
18
|
+
%tr
|
19
|
+
%th Details
|
20
|
+
%td= applicant.transcripts_details
|
21
|
+
|
22
|
+
- if applicant.transcripts.present?
|
23
|
+
%tr
|
24
|
+
%th Transcripts Upload
|
25
|
+
%td
|
26
|
+
- applicant.transcripts.each do |file|
|
27
|
+
%p= link_to(file.filename, url_for(file), target: '_blank')
|
28
|
+
|
29
|
+
- unless applicant.transcripts_received?
|
30
|
+
= render('effective/applicants/transcripts_requirements', applicant: applicant)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
%p
|
2
|
+
Official transcripts must be mailed directly from the institution
|
3
|
+
where the credential was granted to:
|
4
|
+
|
5
|
+
%p.text-center
|
6
|
+
TODO
|
7
|
+
%br
|
8
|
+
%br
|
9
|
+
%br
|
10
|
+
|
11
|
+
%p
|
12
|
+
= succeed('.') do
|
13
|
+
Institutions must send the electronic transcripts to
|
14
|
+
= mail_to 'todo@example.com'
|
@@ -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
|
-
|
7
|
-
|
8
|
-
=
|
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
|
-
|
12
|
-
|
10
|
+
= f.fields_for(f.object.owner_symbol, f.object.owner) do |fo|
|
11
|
+
= effective_address_fields(fo, :billing)
|
13
12
|
|
14
|
-
|
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
|
-
|
5
|
-
.
|
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,50 +1,51 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/applicants/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
.
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
=
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
%
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
%
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
%
|
36
|
-
%
|
37
|
-
|
38
|
-
%
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
.
|
48
|
-
|
49
|
-
|
50
|
-
|
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,15 +5,16 @@
|
|
5
5
|
- resource.declare_code_of_ethics = completed
|
6
6
|
- resource.declare_truth = completed
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
=
|
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
|
-
|
14
|
-
|
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
|
-
|
17
|
-
|
15
|
+
= f.check_box :declare_truth,
|
16
|
+
label: 'Yes, I hereby certify that the statements and information contained herein are correct'
|
18
17
|
|
19
|
-
|
18
|
+
= render_if_exists("effective/applicants/declarations_fields", f: f)
|
19
|
+
|
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
|
-
|
5
|
-
|
6
|
-
=
|
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
|
-
|
10
|
-
|
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
|
-
|
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
|
-
|
5
|
-
.
|
6
|
-
-
|
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
|
-
|
10
|
-
|
8
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
9
|
+
= f.hidden_field :id
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
= f.has_many(:applicant_educations, cards: true) do |aef|
|
12
|
+
%h4.mb-4 Post-Secondary Education
|
14
13
|
|
15
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
16
|
+
.row
|
17
|
+
.col= aef.text_field :institution
|
18
|
+
.col= aef.text_field :location
|
22
19
|
|
23
|
-
|
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
|
-
|
24
|
+
= render_if_exists("effective/applicants/education_fields", f: f)
|
26
25
|
|
27
|
-
|
26
|
+
= f.save 'Save and Continue'
|
@@ -1,25 +1,33 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/applicants/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
.
|
6
|
-
|
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
|
-
|
10
|
-
|
8
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
9
|
+
= f.hidden_field :id
|
11
10
|
|
12
|
-
|
13
|
-
%h4 Endorsement
|
11
|
+
- endorders_collection = Effective::ApplicantEndorsement.endorser_collection(resource)
|
14
12
|
|
15
|
-
|
16
|
-
|
13
|
+
= f.has_many(:applicant_endorsements, cards: true) do |aef|
|
14
|
+
- aef.object.endorser_type ||= endorders_collection.klass.name
|
17
15
|
|
18
|
-
|
16
|
+
%h4 Endorsement
|
19
17
|
|
20
|
-
|
21
|
-
|
22
|
-
= aef.text_field :name, required: true
|
23
|
-
= aef.phone_field :phone, required: true
|
18
|
+
= aef.hidden_field :endorser_id
|
19
|
+
= aef.hidden_field :endorser_type
|
24
20
|
|
25
|
-
=
|
21
|
+
= aef.select :endorser_id, endorders_collection, required: false,
|
22
|
+
ajax_url: effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource)
|
23
|
+
|
24
|
+
= aef.check_box :unknown_member, label: 'I cant find my endorser in the above list'
|
25
|
+
|
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
|
30
|
+
|
31
|
+
= render_if_exists("effective/applicants/endorsements_fields", f: f)
|
32
|
+
|
33
|
+
= f.save 'Save and Continue'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
= render 'layout' do
|
2
|
+
= render 'effective/applicants/content', resource: resource
|
3
|
+
|
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.
|
7
|
+
|
8
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
9
|
+
= f.hidden_field :id
|
10
|
+
|
11
|
+
= f.has_many(:applicant_equivalences, cards: true) do |aef|
|
12
|
+
%h4.mb-4 Equivalent Membership
|
13
|
+
|
14
|
+
= aef.text_field :name
|
15
|
+
|
16
|
+
.row
|
17
|
+
.col= aef.date_field :start_on, label: 'Start Date'
|
18
|
+
.col= aef.date_field :end_on, label: 'End Date'
|
19
|
+
|
20
|
+
= aef.text_area :notes
|
21
|
+
|
22
|
+
= render_if_exists("effective/applicants/equivalences_fields", f: f)
|
23
|
+
|
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
|
-
|
5
|
-
.
|
6
|
-
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
15
|
-
|
13
|
+
= f.has_many(:applicant_experiences, cards: true) do |aef|
|
14
|
+
%h4.mb-4 Work Experience
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
.row
|
17
|
+
.col= aef.text_field :employer
|
18
|
+
.col= aef.text_field :position, label: 'Position Title'
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
35
|
+
.col= aef.static_field :months, label: 'Calculated Months', value: aef.object.months.to_i
|
37
36
|
|
38
|
-
|
37
|
+
= aef.text_area :tasks_performed, class: 'mb-0'
|
39
38
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
46
|
+
= f.error :applicant_experiences_months
|
48
47
|
|
49
|
-
|
48
|
+
= render_if_exists("effective/applicants/experience_fields", f: f)
|
50
49
|
|
51
|
-
|
50
|
+
= f.save 'Save and Continue'
|
@@ -1,14 +1,15 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/applicants/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
.
|
6
|
-
|
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
|
-
|
10
|
-
|
8
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
9
|
+
= f.hidden_field :id
|
11
10
|
|
12
|
-
|
11
|
+
= f.file_field :applicant_files, attachment_style: :table
|
13
12
|
|
14
|
-
|
13
|
+
= render_if_exists("effective/applicants/files_fields", f: f)
|
14
|
+
|
15
|
+
= f.save 'Save and Continue'
|
@@ -2,18 +2,17 @@
|
|
2
2
|
|
3
3
|
= render 'effective/applicants/content', resource: resource
|
4
4
|
|
5
|
-
|
6
|
-
.
|
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
|
-
|
10
|
-
|
8
|
+
%h2 Representatives
|
9
|
+
= render_datatable(datatable, inline: true, simple: true)
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
17
|
-
|
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
|
-
|
18
|
+
= f.save 'Save and Continue'
|
@@ -1,24 +1,25 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/applicants/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
.
|
6
|
-
|
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
|
-
|
10
|
-
|
8
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
9
|
+
= f.hidden_field :id
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
= f.has_many(:applicant_references, cards: true) do |arf|
|
12
|
+
%h4 Reference
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
19
|
+
.row
|
20
|
+
.col= arf.select :relationship, Effective::ApplicantReference::RELATIONSHIPS
|
21
|
+
.col= arf.select :known, Effective::ApplicantReference::KNOWNS, label: 'Known for'
|
23
22
|
|
24
|
-
|
23
|
+
= render_if_exists("effective/applicants/references_fields", f: f)
|
24
|
+
|
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
|
-
|
8
|
-
.
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
15
|
-
|
13
|
+
- if categories.present?
|
14
|
+
%p Please select a category to continue.
|
16
15
|
|
17
|
-
|
18
|
-
|
16
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
17
|
+
= f.hidden_field :id
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
23
|
+
= f.select :category_id, categories, required: true
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
32
|
-
|
30
|
+
- if organization_categories.present?
|
31
|
+
%small.text-muted #{mc.category} #{mc.category_type} Membership
|
33
32
|
|
34
|
-
|
33
|
+
= mc.rich_text_body
|
35
34
|
|
36
|
-
|
35
|
+
= render_if_exists("effective/applicants/select/#{mc.to_s.parameterize.underscore}", f: f, category: mc)
|
37
36
|
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
41
|
+
= f.save 'Save and Continue'
|