-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfalcon-pdf.lib
More file actions
962 lines (936 loc) · 42.7 KB
/
falcon-pdf.lib
File metadata and controls
962 lines (936 loc) · 42.7 KB
1
2
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
<!-- PDF Make v0.3.4 -->
<!-- Sizing in points, 1 inch = 72 points -->
<script>
// Global Constants
const FORM_LOGO = 'https://meesterzee.github.io/FalconEDU/images/FLCSLogo_School_Flat.png';
const FORM_HEADER = {
image: 'logo', // URL of the image
width: 96, // Set image width
alignment: 'center', // Align image
margin: [0, 28, 0, 0] // Adjust margin
};
const FORM_FOOTER = {
text: '2900 West Carson Street, Torrance, CA 90503 | (310) 320-9920 ext. 100 or ext. 106 | www.flfalcons.org',
alignment: 'center',
fontSize: 9,
bold: true,
margin: [0, 0, 0, 0] // Adjust margin
};
const FORM_FILL_LAYOUT = {
hLineWidth: function(i, node) {
// Display horizontal lines for the bottom of the first row and at specific positions
return 1;
},
vLineWidth: function(i) {
// No vertical lines
return 0;
},
hLineColor: function(i) {
// Color for horizontal lines
return '#000000';
},
vLineColor: function(i) {
// No vertical lines
return null;
},
paddingLeft: function(i) { return 0; },
paddingRight: function(i) { return 0; },
paddingTop: function(i) { return 0; },
paddingBottom: function(i) { return 20; }
};
////////////////////////
// ADMISSION CONTRACT //
////////////////////////
function createAdmissionContract(feeAmount) {
// Convert Registration Fee to float and perform calculations
const registrationFee = Number(
feeAmount.replace(/[^0-9.]/g, '')
);
const partialRegistrationFee = registrationFee / 2;
const partialFeeAmount = `$${partialRegistrationFee.toFixed(2)}`;
// Build the document
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - ADMISSION CONTRACT', style: 'title' },
{ table: {
widths: ['*'],
body: [
[
{ text: 'By signing my name to this contract, I acknowledge that I am the parent or legal guardian of the students listed below. I agree to the conditions governing continual admission and attendance at the school as stated below:', bold: true, fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{
ol: [
{ text: 'I agree to pay tuition charges, registration fees, applicable daycare program charges and other fees established by the First Lutheran School Board for the duration of enrollment. If, during enrollment, I wish to register, add or deduct daycare hours or discontinue daycare, I must notify both the FLASH program director or be responsible for the charges incurred. I agree to pay any fees incurred through Blackbaud Tuition Management for late or failed payments. I understand that the fees for registration and screenings for enrollment are non-refundable. Any deviation from the established payment schedule must be appealed in writing and approved by the FLS Managing Director. If I choose to withdraw my student(s), two weeks written notice is required. When the notice is given, a ' + APP_SETTINGS.feeSettings.withdrawalFee + ' withdrawal processing fee and any other fees owed will be subtracted from the unused paid tuition.', margin: [0, 0, 0, 5] },
{ text: 'I agree to pay the annual Help Us Grow (HUG) building fee per family.', margin: [0, 0, 0, 5] },
{ text: 'I agree to pay the annual Family Commitment Fee (FCF) or to work the appropriate number of hours as delineated by the First Lutheran School Board policy.', margin: [0, 0, 0, 5] },
{ text: 'I understand that as a condition of continued attendance each student is required to abide by school regulations as explained in the First Lutheran Parent Handbook and/or as presented by the teachers and administration.', margin: [0, 0, 0, 5] },
{ text: 'I understand this contract begins continual enrollment that ends at any of the following:' },
{
ul: [
"The student's 8th grade graduation",
"Written notice from parents of their plan to withdraw the student",
"Notice by First Lutheran School that the student has not met the expectations of the school and may not continue"
],
margin: [0, 0, 0, 5]
}
]
},
{
start: 6, // Explicitly set numbering to continue after ul
ol: [
{ text: 'I understand that by signing this contract my Blackbaud Tuition Management account will be invoiced ' + partialFeeAmount + ' each April and ' + partialFeeAmount + ' each June (for a total of ' + feeAmount + ' per student) for the annual registration fee. If I choose not to continue the following year, I understand I need to let the school office know in writing by March 10th in order to avoid being charged the registration fee for the coming year. After March 10th, the registration fee is non-refundable. If a written notice to withdraw is not received, I understand my Blackbaud Tuition account will still be invoiced ' + partialFeeAmount + ' in April.', margin: [0, 0, 0, 5] },
{ text: 'I understand that the first tuition payment is due August 10th and the last tuition payment is due May 10th each school year. Other fees including but not limited to hourly daycare and field trip fees may be due June 10th or July 10th.', margin: [0, 0, 0, 5] }
]
},
{ table: {
widths: ['*'], // Makes the table stretch across the page
body: [
[
{ text: 'In the event that I fail to abide by the above conditions, I acknowledge that the school may enforce any or all of the following penalties:', bold: true, fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{
ol: [
{ text: 'Suspend or permanently terminate the attendance of any student whose payment of tuition and/or other fees is 60 days delinquent, unless a new payment schedule has been authorized by the FLS Managing Director.', margin: [0, 0, 0, 5] },
{ text: 'Suspend the right of students to receive report cards pending payment to the school of delinquent fees.', margin: [0, 0, 0, 5] },
{ text: 'Initiate disciplinary action for misconduct by students, including suspension or expulsion, for continued and/or serious violations of school regulations during school or daycare.', margin: [0, 0, 0, 5] }
]
},
{
table: {
widths: ['auto', '*'], // 'auto' for the box, '*' for the text
body: [
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0], fillColor: '#eeeeee' // Small margin to align the box
},
{
text: `I hereby accept the 'First Lutheran School - Admission Contract' agreement:`,
bold: true,
fillColor: '#eeeeee'
}
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 26]
},
{
table: {
widths: [170, 10, '*', 20, 170, 10, '*'],
body: [
[
{ text: 'Parent/guardian 1 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 1 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] }
],
[
{ text: 'Student 1 name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Student 2 name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade', border: [false, true, false, false] }
],
[
{ text: 'Student 3 name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Student 4 name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade', border: [false, true, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
margin: [0, 0, 0, 5]
},
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
/////////////////////////////
// TUITION PAYMENT OPTIONS //
/////////////////////////////
function createTuitionPaymentOptions() {
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - TUITION PAYMENT OPTIONS', style: 'title' },
{
table: {
widths: ['*'],
body: [
[
{ text: 'Blackbaud Tuition Management Payment Plan', bold: true, alignment: 'center', fillColor: '#eeeeee' }
],
[
{ text: `To ensure your student's enrollment, please go online by your deadline date to enroll in Blackbaud Tuition Management.`, bold: true, italics: true, decoration: 'underline', alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: 'Please select your Blackbaud Tuition Management payment plan:', bold: true, margin: [0, 0, 0, 5] },
{
table: {
widths: ['auto', '*'], // 'auto' for the box, '*' for the text
body: [
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{
text: 'Option 1: Monthly tuition payments through Blackbaud Tuition Management', bold: true }
]
]
},
layout: 'noBorders'
},
{
ul: [
"Tuition payments are due one month in advance, from August 10th through May 10th.",
"Families with existing students do not need to create a new account. FLS will add new student(s) to their existing account.",
"Blackbaud Tuition Management charges a Platform Fee for ACH or credit/debit card payments.",
"Blackbaud Tuition Management charges a fee for any failed or delinquent payments.",
{ text: "If you had a Blackbaud Tuition Management EEC account, it will be closed. Please create a new Blackbaud Tuition Management account. Enrollment information can be found in the 'Blackbaud Tuition Information' document.", bold: true, decoration: 'underline' }
], margin: [20, 0, 0, 5]
},
{
table: {
widths: ['auto', '*'], // 'auto' for the box, '*' for the text
body: [
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'Option 2: Annual tuition payment through Blackbaud Tuition Management', bold: true }
]
]
},
layout: 'noBorders'
},
{
ul: [
"Pay the entire school year's tuition in advance to receive a 3% discount.",
"Blackbaud Tuition Management charges a Platform Fee for ACH or credit/debit card payments.",
"Blackbaud Tuition Management charges a fee for any failed or delinquent payments.",
{ text: "If you had a Blackbaud Tuition Management EEC account, it will be closed. Please create a new Blackbaud Tuition Management account. Enrollment information can be found in the 'Blackbaud Tuition Information' document.", bold: true, decoration: 'underline' }
], margin: [20, 0, 0, 5]
},
{
table: {
widths: ['*'],
body: [
[
{ text: 'FLASH (before and after school daycare) billed via Blackbaud Tuition Management', bold: true, alignment: 'center', fillColor: '#eeeeee' }
],
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: 'Regardless of your payment method, choosing a monthly daycare option adds the cost to your tuition. A ' + APP_SETTINGS.feeSettings.flashFee + ' processing fee will be charged after the second FLASH change request for the current year.', margin: [0, 0, 0, 5] },
{ text: 'Please select your FLASH needs:', bold: true, margin: [0, 0, 0, 5] },
{
table: {
widths: ['auto', '*'], // 'auto' for the box, '*' for the text
body: [
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'AM/PM FLASH monthly daycare (7:00 am – 8:05 am & 3:00 pm – 6:00 pm)' }
],
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'AM FLASH monthly daycare only (7:00 am - 8:05 am)' }
],
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'PM FLASH monthly maycare only (3:00 pm - 6:00 pm)' }
],
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'Occasional FLASH daycare (hourly fee)' }
],
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0]
},
{ text: 'No daycare needed (if a student is checked in to FLASH, the hourly fee applies)' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 26]
},
{
table: {
widths: [170, 10, 170, 10, '*'],
body: [
[
{ text: 'Student last name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Student first name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade level', border: [false, true, false, false] }
],
[
{ text: 'Sibling(s) name(s)', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{ text: 'Parent/guardian 1 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 1 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] }
],
[
{ text: 'Parent/guardian 2 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 2 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] }
],
]
},
layout: FORM_FILL_LAYOUT,
},
{ text: 'A written notice of withdrawal must be submitted to the school office at least two weeks in advance. After receiving written notice, the school office will calculate outstanding tuition, HUG and FCF fees, daycare payments, and any other fees. The principal appreciates an opportunity to discuss the reason for withdrawal.' }
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
//////////////////////////////
// MEDICAL CONSENT TO TREAT //
//////////////////////////////
function createMedicalConsentToTreat() {
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - MEDICAL CONSENT TO TREAT', style: 'title' },
{ table: {
widths: ['*'],
body: [
[
{ text: 'CONSENT AGREEMENT', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: "I, ________________________________________, parent or legal guardian of ________________________________________, born the day of ____________________, 20____ do hereby consent to any medical care and the administration of anesthesia determined by a physician to be necessary for the welfare of my child while said child is under the care of First Lutheran School, located at 2900 West Carson Street, Torrance, California, and I am not reasonably available by telephone to give consent. This authorization is effective from the date of signature and will remain in effect for as long as the child is enrolled at First Lutheran School.", margin: [0, 0, 0, 26] },
{
table: {
widths: [170, 10, 170, 10, '*'],
body: [
[
{ text: 'Parent/guardian signature', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
},
{
table: {
widths: ['*'],
body: [
[
{ text: 'ADDITIONAL INFORMATION', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: "This consent form will be taken with the child to the hospital or physician's office when the child is taken for treatment. This additional information is not required, but will assist in treatment.", margin: [0, 0, 0, 26] },
{
table: {
widths: [170, 10, 170, 10, '*'],
body: [
[
{ text: 'Date of last tetanus', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Allergies to drugs/food', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{
text: 'Special medications, blood type, and/or pertinent information', colSpan: 5, border: [false, true, false, false] }, {}, {}, {}, {}
],
[
{ text: "Child's physician name", border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: "Child's physician phone number", border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Preferred hospital', border: [false, true, false, false] }
],
[
{ text: "Insurance provider", border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: "Policy number", border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
},
{
table: {
widths: ['*'],
body: [
[
{ text: 'CONTACT INFORMATION', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 26]
},
{
table: {
widths: [170, 10, 170, 10, '*'],
body: [
[
{ text: 'Home address', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{ text: 'Parent/guardian 1 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 1 phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
},
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
////////////////////////////////
// STUDENT EMERGENCY CONTACTS //
////////////////////////////////
function createStudentEmergencyContacts() {
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - STUDENT EMERGENCY CONTACTS', style: 'title' },
{ table: {
widths: ['*'],
body: [
[
{ text: 'STUDENT DETAILS', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 26]
},
{
table: {
widths: ['*', 10, '*', 10, '*'],
body: [
[
{ text: 'Student last name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Student first name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Incoming grade level', border: [false, true, false, false] }
],
[
{ text: 'Home address', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{ text: 'City', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'State', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Zip code', border: [false, true, false, false] }
],
[
{ text: 'Primary phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Alternate phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Primary email address', border: [false, true, false, false] }
],
]
},
layout: FORM_FILL_LAYOUT,
},
{ table: {
widths: ['*'],
body: [
[
{ text: 'EMERGENCY CONTACTS', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: 'Please provide the information of two individuals, excluding parents, to be contacted in case of an emergency.', margin: [0, 0, 0, 26] },
{
table: {
widths: ['*', 10, '*', 10, '*'],
body: [
[
{ text: 'Primary contact name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Primary contact phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Relationship to student', border: [false, true, false, false] }
],
[
{ text: 'Primary contact home address', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{ text: 'Secondary contact name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Secondary contact phone number', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Relationship to student', border: [false, true, false, false] }
],
[
{ text: 'Secondary contact home address', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
},
{
table: {
widths: ['*'],
body: [
[
{ text: 'MEDICAL INFORMATION', bold: true, alignment: 'center', fillColor: '#eeeeee' }
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: 'Please list any known allegies or medical conditions:', margin: [0, 0, 0, 26] },
{
table: {
widths: ['*', 10, '*', 10, '*'],
body: [
[
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
],
[
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] },
{ text: '', border: [false, true, false, false] }
]
]
},
layout: FORM_FILL_LAYOUT,
}
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
////////////////////////
// TECHNOLOGY CONSENT //
////////////////////////
function createTechnologyUseConsent() {
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - TECHNOLOGY USE CONSENT', style: 'title' },
{ text: "At First Lutheran School, we integrate technology into our curriculum to enhance learning, creativity, and collaboration. With your permission, we will provide your student with a Google Workspace for Education account and access to school devices (iPads, Chromebooks, or computers in the computer lab) for educational purposes.", margin: [0, 0, 0, 5]},
{ text: "Google Workspace for Education", bold: true },
{ text: "Google Workspace for Education is a suite of educational tools from Google, including Gmail, Calendar, Docs, and Classroom, used worldwide by millions of students and teachers. Students at First Lutheran School use their accounts to complete assignments, communicate with teachers, access third-party educational platforms (such as Clever and Seesaw), and develop digital citizenship skills.", margin: [0, 0, 0, 5]},
{
text: [
"This Google account is essential for providing your student with a full range of learning opportunities at First Lutheran. Without it, access to critical resources and tools will be significantly limited. Google complies with privacy practices designed for K-12 education, as outlined in the Google Workspace for Education Privacy Notice: ",
{
text: "https://workspace.google.com/terms/education_privacy/",
decoration: 'underline'
},
"."
],
margin: [0, 0, 0, 5]
},
{ text: "School Device Usage", bold: true },
{ text: "To facilitate a secure, focused, and effective learning environment, each student at First Lutheran School will have access to school-issued devices, including iPads, Chromebooks, and computers in the computer lab. These devices are designated for educational purposes during classroom hours only. They are managed by the school’s technology department and monitored by faculty to ensure safe and appropriate usage in line with school policies.", margin: [0, 0, 0, 5] },
{ text: "Responsible Technology Use", bold: true },
{ text: "To maintain a productive learning environment, students are expected to:" },
{ ul:
[
{ text: "Communicate Respectfully: Use all digital tools respectfully with teachers and peers."},
{ text: "Follow Appropriate Use: Use accounts and devices only for school-related activities."},
{ text: "Practice Digital Citizenship: Engage responsibly online, respecting privacy and intellectual property rights."}
], margin: [0, 0, 0, 7]
},
{
table: {
widths: ['auto', '*'], // 'auto' for the box, '*' for the text
body: [
[
{
canvas: [
{ type: 'rect', x: 0, y: 0, w: 8, h: 8, lineWidth: 1 }
],
margin: [1, 1, 0, 0],
fillColor: '#eeeeee' // Small margin to align the box
},
{
stack: [
{
text: "I hereby give permission for First Lutheran School to:",
bold: true
},
{
ul: [
"Create and manage a Google Workspace for Education account for your student.",
"Provide access to school devices for educational use.",
"Allow Google and third-party services to collect and use information solely for educational purposes, per the Google Workspace for Education Privacy Notice.",
"Maintain this consent for the duration of your student's enrollment at First Lutheran School."
]
}
]
}
]
]
},
layout: {
fillColor: function(rowIndex, node, columnIndex) {
return (rowIndex === 0) ? '#eeeeee' : null;
},
hLineWidth: function() { return 0; },
vLineWidth: function() { return 0; }
},
margin: [0, 0, 0, 26]
},
{
table: {
widths: [170, 10, '*', 20, 170, 10, '*'],
body: [
[
{ text: 'Student name', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 1 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 name (print)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: '', border: [false, false, false, false] }
],
[
{ text: 'Parent/guardian 1 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Parent/guardian 2 name (signature)', border: [false, true, false, false] },
{ text: '', border: [false, false, false, false] },
{ text: 'Date', border: [false, true, false, false] }
],
]
},
layout: FORM_FILL_LAYOUT,
margin: [0, 0, 0, 5]
}
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
///////////////////////////////////
// BLACKBAUD TUITION INFORMATION //
///////////////////////////////////
function createBlackbaudTuitionInformation() {
const docDefinition = {
pageSize: 'LETTER',
pageOrientation: 'portrait',
pageMargins: [36, 110, 36, 36], // left, top, right, bottom
header: function(currentPage, pageCount, pageSize) {
return FORM_HEADER;
},
content: [
{ text: 'FIRST LUTHERAN SCHOOL - BLACKBAUD TUITION INFORMATION', style: 'title' },
{ text: [
"We are pleased to announce that we’re partnering with Blackbaud Tuition Management to process and collect tuition and fees. ",
{ text: "If you already have a student enrolled with First Lutheran School, please do not create a new account. EEC families with new students entering the day school will need to create a new account.", decoration: 'underline' }
], margin: [0, 0, 0, 5]
},
{ table: {
widths: ['*'], // Makes the table stretch across the page
body: [
[
{
text: [
{ text: "Please go online by your deadline date to enroll in Blackbaud Tuition Management at: " },
{ text: `https://enroll.blackbaud.school`, decoration: 'underline' },
{ text: ". First Lutheran's school code is: " },
{ text: "02162", decoration: 'underline' }
],
bold: true,
fillColor: '#eeeeee'
}
]
]
},
layout: 'noBorders', margin: [0, 0, 0, 5]
},
{ text: 'Blackbaud Tuition Management enables you to:', bold: true, margin: [0, 0, 0, 5] },
{ text: 'Select a payment method that works best for you:', bold: true},
{
ul: [
'Choose to receive a monthly invoice.',
'Set up recurring automatic payments from your bank account or credit card.',
'Visa, MasterCard, Discover, and American Express are accepted. Credit/debit card transactions are subject to a service charge.'
], margin: [10, 0, 0, 5]
},
{ text: 'Access your account online to:', bold: true},
{
ul: [
'Review account history, transaction details, and print monthly invoices.',
'Edit your contact information, password, and payment method.',
'Make a payment or set up recurring payments.'
], margin: [10, 0, 0, 5]
},
{ text: 'Receive payment and follow up reminders:', bold: true},
{
ul: [
'For recurring payments, a reminder is emailed 7-10 days before the due date.',
'For missed payments or outstanding balances, you will receive an email.'
], margin: [10, 0, 0, 5]
},
{ text: 'Speak with a customer service representative:', bold: true},
{
ul: [
'Families can access their accounts to check balances and make payments 24/7.',
'Spanish speaking representatives are available.',
'Call toll free to make payments at (888) 868-8828.'
], margin: [10, 0, 0, 5]
}
],
footer: function(currentPage, pageCount, pageSize) {
return FORM_FOOTER;
},
defaultStyle: {
fontSize: 9 // Set the default font size
},
styles: {
title: {
fontSize: 12,
bold: true,
alignment: 'center',
margin: [0, 10, 0, 10]
},
},
images: { logo: FORM_LOGO }
};
return docDefinition;
}
</script>