Skip to content

Commit 0647f7e

Browse files
committed
Finished sections, photo section remaining
1 parent 5700215 commit 0647f7e

File tree

1 file changed

+197
-76
lines changed

1 file changed

+197
-76
lines changed

api/templates/places/placePrint.handlebars

Lines changed: 197 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@
115115
display: inline-block;
116116
min-width: 100px;
117117
}
118+
.textbox {
119+
border: 1px #ccc solid;
120+
padding: 3px;
121+
border-radius: 3px;
122+
margin-top: 3px;
123+
min-height: 32px;
124+
margin-bottom: 6px;
125+
}
126+
.textbox span {
127+
font-weight: 700;
128+
display: inline-block;
129+
min-width: 100px;
130+
}
118131
.section {
119132
margin-bottom: 25px;
120133
page-break-inside: avoid;
@@ -271,15 +284,15 @@
271284
<tr>
272285
<strong>Conditions</strong>
273286
<td>
274-
<p>Floor condition</p><div class='box'>{{yHSIId}}</div>
275-
<p>Roof condition</p><div class='box'>{{yHSIId}}</div>
276-
<p>Wall condition</p><div class='box'>{{yHSIId}}</div>
277-
<p>Door condition</p><div class='box'>{{yHSIId}}</div>
287+
<p>Floor condition</p><div class='box'>{{floorCondition}}</div>
288+
<p>Roof condition</p><div class='box'>{{roofCondition}}</div>
289+
<p>Wall condition</p><div class='box'>{{wallCondition}}</div>
290+
<p>Door condition</p><div class='box'>{{doorCondition}}</div>
278291
</td>
279292
<td>
280-
<p>Site status</p><div class='box'>{{yHSIId}}</div>
281-
<p>Building size</p><div class='box'>{{yHSIId}}</div>
282-
<p>All other resource types</p><div class='box'>{{yHSIId}}</div>
293+
<p>Site status</p><div class='box'>{{siteStatus}}</div>
294+
<p>Building size</p><div class='box'>{{buildingSize}}</div>
295+
<p>All other resource types</p><div class='box'>{{resourceType}}</div>
283296
<p>Condition notes</p><textarea>{{conditionComment}}</textarea>
284297
</td>
285298
</tr>
@@ -344,26 +357,44 @@
344357
<h1>Associations</h1>
345358
<hr />
346359

347-
<strong>Associations</strong>
348-
<table
349-
class='infoTable'
350-
border='0'
351-
cellspacing='0'
352-
cellpadding='0'
353-
style='margin-bottom: 1em;'
354-
>
355-
<tr>
356-
<td>
357-
</td>
358-
</tr>
359-
</table>
360+
<div style='margin-bottom: 1em;'>
361+
<strong>Associations</strong>
362+
{{#if associations}}
363+
{{#each associations}}
364+
<div class='box'>
365+
{{type}}
366+
-
367+
{{description}}
368+
</div>
369+
{{/each}}
370+
{{else}}
371+
<div class='box'></div>
372+
{{/if}}
373+
</div>
360374

361375
<strong>First Nation Associations</strong>
362376
<table class='infoTable' border='0' cellspacing='0' cellpadding='0'>
363-
<tr>
364-
<td>
365-
</td>
366-
</tr>
377+
{{#if firstNationAssociations}}
378+
{{#each firstNationAssociations}}
379+
<tr>
380+
<td>
381+
<div class='box'>
382+
{{firstNationAssociationType}}
383+
-
384+
{{firstNation}}
385+
-
386+
{{comments}}
387+
</div>
388+
</td>
389+
</tr>
390+
{{/each}}
391+
{{else}}
392+
<tr>
393+
<td>
394+
<div class='box'></div>
395+
</td>
396+
</tr>
397+
{{/if}}
367398
</table>
368399
</div>
369400
{{/if}}
@@ -374,18 +405,19 @@
374405
<hr />
375406

376407
<strong>Ownerships</strong>
377-
<table
378-
class='infoTable'
379-
border='0'
380-
cellspacing='0'
381-
cellpadding='0'
382-
style='margin-bottom: 1em;'
383-
>
384-
<tr>
385-
<td>
386-
</td>
387-
</tr>
388-
</table>
408+
{{#if ownerships}}
409+
{{#each ownerships}}
410+
<div class='box'>
411+
{{ownershipType}}
412+
-
413+
{{comments}}
414+
</div>
415+
{{/each}}
416+
{{else}}
417+
<div class='box'></div>
418+
{{/if}}
419+
420+
<div style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'></div>
389421

390422
<table
391423
class='infoTable'
@@ -396,27 +428,42 @@
396428
>
397429
<tr>
398430
<td>
399-
<p>Zoning</p><div class='box'></div>
400-
<p>Site district</p><div class='box'></div>
401-
<p>Group</p><div class='box'></div>
402-
<p>Block</p><div class='box'></div>
431+
<strong>Zoning</strong><div class='box'>{{zoning}}</div>
432+
<strong>Site district</strong><div class='box'>{{siteDistrictNumber}}</div>
433+
<strong>Group</strong><div class='box'>{{groupYHSI}}</div>
434+
<strong>Block</strong><div class='box'>{{block}}</div>
403435
</td>
404436
<td>
405-
<p>Town site map number</p><div class='box'></div>
406-
<p>Group YHSI</p><div class='box'></div>
407-
<p>Lot</p><div class='box'></div>
408-
<p>Plan number</p><div class='box'></div>
437+
<strong>Town site map number</strong><div class='box'>{{townSiteMapNumber}}</div>
438+
<strong>Group YHSI</strong><div class='box'>{{groupYHSI}}</div>
439+
<strong>Lot</strong><div class='box'>{{lot}}</div>
440+
<strong>Plan number</strong><div class='box'>{{planNumber}}</div>
409441
</td>
410442
</tr>
411443
</table>
412444

445+
<div style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'></div>
446+
413447
<strong>Previous Ownerships</strong>
414-
<table class='infoTable' border='0' cellspacing='0' cellpadding='0'>
415-
<tr>
416-
<td>
417-
</td>
418-
</tr>
419-
</table>
448+
{{#if previousOwnerships}}
449+
{{#each previousOwnerships}}
450+
<div style='margin-top: 1em;'>
451+
<div style='display: flex; gap: 1em;'>
452+
<div>
453+
<p>Ownership Date</p><div class='box'>{{ownershipDate}}</div>
454+
</div>
455+
<div>
456+
<p>Ownership Number</p><div class='box'>{{ownershipNumber}}</div>
457+
</div>
458+
</div>
459+
<p>Ownership Name</p><div class='box'>{{ownershipName}}</div>
460+
</div>
461+
462+
<div style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'></div>
463+
{{/each}}
464+
{{else}}
465+
<div class='box'></div>
466+
{{/if}}
420467
</div>
421468
{{/if}}
422469

@@ -444,12 +491,35 @@
444491
border='0'
445492
cellspacing='0'
446493
cellpadding='0'
447-
style='margin-bottom: 1em;'
494+
style='margin-top: 1em;'
448495
>
449-
<tr>
450-
<td>
451-
</td>
452-
</tr>
496+
{{#if revisionLogs}}
497+
{{#each revisionLogs}}
498+
<tr>
499+
<td>
500+
<p>Revision Type</p><div class='box'>{{revisionLogType}}</div>
501+
<p>Revised By</p><div class='box'>{{revisedBy}}</div>
502+
</td>
503+
<td>
504+
<p>Date</p><div class='box'>{{revisionDate}}</div>
505+
<p>Details</p><div class='box'>{{details}}</div>
506+
</td>
507+
</tr>
508+
<tr>
509+
<td colspan='2'>
510+
<div
511+
style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'
512+
></div>
513+
</td>
514+
</tr>
515+
{{/each}}
516+
{{else}}
517+
<tr>
518+
<td>
519+
<div class='box'></div>
520+
</td>
521+
</tr>
522+
{{/if}}
453523
</table>
454524

455525
<strong>Contacts</strong>
@@ -458,12 +528,42 @@
458528
border='0'
459529
cellspacing='0'
460530
cellpadding='0'
461-
style='margin-bottom: 1em;'
531+
style='margin-top: 1em;'
462532
>
463-
<tr>
464-
<td>
465-
</td>
466-
</tr>
533+
{{#if contacts}}
534+
{{#each contacts}}
535+
<tr>
536+
<td>
537+
<p>Type</p><div class='box'>{{contactType}}</div>
538+
</td>
539+
</tr>
540+
<tr>
541+
<td>
542+
<p>First Name</p><div class='box'>{{firstName}}</div>
543+
<p>Phone</p><div class='box'>{{phoneNumber}}</div>
544+
<p>Mailing Address</p><div class='box'>{{mailingAddress}}</div>
545+
</td>
546+
<td>
547+
<p>Last Name</p><div class='box'>{{lastName}}</div>
548+
<p>Email</p><div class='box'>{{email}}</div>
549+
<p>Description</p><div class='textbox'>{{description}}</div>
550+
</td>
551+
</tr>
552+
<tr>
553+
<td colspan='2'>
554+
<div
555+
style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'
556+
></div>
557+
</td>
558+
</tr>
559+
{{/each}}
560+
{{else}}
561+
<tr>
562+
<td>
563+
<div class='box'></div>
564+
</td>
565+
</tr>
566+
{{/if}}
467567
</table>
468568

469569
<strong>Web Links</strong>
@@ -472,41 +572,62 @@
472572
border='0'
473573
cellspacing='0'
474574
cellpadding='0'
475-
style='margin-bottom: 1em;'
575+
style='margin-top: 1em;'
476576
>
477-
<tr>
478-
<td>
479-
</td>
480-
</tr>
577+
{{#if webLinks}}
578+
{{#each webLinks}}
579+
<tr>
580+
<td>
581+
<p>Link Type</p><div class='box'>{{type}}</div>
582+
</td>
583+
<td>
584+
<p>Web Address</p><div class='box'>{{address}}</div>
585+
</td>
586+
</tr>
587+
{{/each}}
588+
{{else}}
589+
<tr>
590+
<td>
591+
<div class='box'></div>
592+
</td>
593+
</tr>
594+
{{/if}}
481595
</table>
482596

597+
<div style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'></div>
598+
599+
<strong>Designation Information</strong>
483600
<table
484601
class='infoTable'
485602
border='0'
486603
cellspacing='0'
487604
cellpadding='0'
488-
style='margin-bottom: 1em;'
605+
style='margin-top: 1em;'
489606
>
490607
<tr>
491608
<td>
492-
<strong>Designation Information</strong>
493-
<p>Jurisdiction</p><div class='box'></div>
494-
<p>Recognition Date</p><div class='box'></div>
495-
<p>Owner Consent</p><div class='box'></div>
609+
<strong>Jurisdiction</strong><div class='box'>{{jurisdiction}}</div>
610+
<strong>Recognition Date</strong><div class='box'>{{recognitionDate}}</div>
611+
<strong>Owner Consent</strong><div class='box'>{{ownerConsent}}</div>
612+
<strong>Publicly Accessible</strong><div class='box'>{{isPubliclyAccessible}}</div>
496613
</td>
497614
<td>
498-
<p>YG Building Number</p><div class='box'></div>
499-
<p>YG Reserve Number</p><div class='box'></div>
500-
<p>CIHB Number</p><div class='box'></div>
501-
<p>FHBRO Number</p><div class='box'></div>
615+
<strong>YG Building Number</strong><div class='box'>{{yGBuildingNumber}}</div>
616+
<strong>YG Reserve Number</strong><div class='box'>{{yGReserveNumber}}</div>
617+
<strong>CIHB Number</strong><div class='box'>{{cIHBNumber}}</div>
618+
<strong>FHBRO Number</strong><div class='box'>{{fHBRONumber}}</div>
502619
</td>
503620
</tr>
504621
</table>
505622

506-
<p>Statue - Recognition Authority / Recognition Type / Statute</p><div class='box'></div>
623+
<div style='border-top: 1px #ccc solid; margin-top: 1em; margin-bottom: 1em;'></div>
624+
625+
<p>Statue - Recognition Authority / Recognition Type / Statute</p><div
626+
class='box'
627+
>{{statute}}</div>
507628
<p>Secondary Statue - Recognition Authority / Recognition Type / Statute</p><div
508629
class='box'
509-
></div>
630+
>{{secondaryStatute}}</div>
510631
</div>
511632
{{/if}}
512633

0 commit comments

Comments
 (0)