diff --git a/.github/workflows/analysis.yaml b/.github/workflows/analysis.yaml index 76608574..67b1d97f 100644 --- a/.github/workflows/analysis.yaml +++ b/.github/workflows/analysis.yaml @@ -1,12 +1,12 @@ name: Analysis on: - push: - branches: [main] - pull_request: - types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] - schedule: - - cron: "0 11 * * 0" # 3 AM PST = 12 PM UDT, runs sundays + #push: + # branches: [main] + #pull_request: + # types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] + #schedule: + # - cron: "0 11 * * 0" # 3 AM PST = 12 PM UDT, runs sundays workflow_dispatch: concurrency: diff --git a/src/app/registration/registration.module.ts b/src/app/registration/registration.module.ts index e58a6622..36050c11 100644 --- a/src/app/registration/registration.module.ts +++ b/src/app/registration/registration.module.ts @@ -17,6 +17,7 @@ import { NgxIntlTelInputModule } from '@moddi3/ngx-intl-tel-input'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgxTurnstileModule } from "ngx-turnstile"; import { TimerComponent } from './timer/timer.component'; +import { MountSeymourComponent } from './success/facilityConfirmation/mountSeymour/mountSeymour.component'; import { JoffreLakesComponent } from './success/facilityConfirmation/joffreLakes/joffreLakes.component'; import { GaribaldiConfirmationComponent } from './success/facilityConfirmation/garibaldi/garibaldiConfirmation.component'; import { RubbleCreekConfirmationComponent } from './success/facilityConfirmation/garibaldi/rubbleCreek/rubbleCreekConfirmation.component'; @@ -39,6 +40,7 @@ import { DiamondHeadConfirmationComponent } from './success/facilityConfirmation RubbleCreekConfirmationComponent, CheakamusConfirmationComponent, DiamondHeadConfirmationComponent, + MountSeymourComponent, ], imports: [ CommonModule, diff --git a/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.html b/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.html new file mode 100644 index 00000000..dc5049d2 --- /dev/null +++ b/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.html @@ -0,0 +1,119 @@ + + +
+
Safety
+
+
+
+ +
+
+ Be prepared. Get to know the AdventureSmart's 3Ts. +
+
+
+
+ +
+
+ Check the park page for advisories. +
+
+
+
+ +
+
+ Check for risk of avalanches. +
+
+
+
+ +
+
+ All vehicles must be equipped with winter tires. +
+
+
+
+ + +
+
Visitor guidelines
+
+
+
+ +
+
+ The park access road is open from 7 am to 10 pm daily. Extreme weather can affect road access. Check today's conditions at Mt Seymour. +
+
+ +
+
+ +
+
+ Day-use pass holders may park in lot P1 or Lower P5 (see parking map. +
+
+ +
+
+ +
+
+ Respect wildlife. Keep your distance and don’t feed wildlife, including birds! +
+
+ +
+
+ +
+
+ There are no garbage cans along the trail. Understand your responsibility to #LeaveNoTrace by packing out anything you pack in. +
+
+ + +
+
+ +
+
+ Pets are permitted in, but please leash and clean up after your dog. +
+
+
+ diff --git a/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.scss b/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.ts b/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.ts new file mode 100644 index 00000000..8476a282 --- /dev/null +++ b/src/app/registration/success/facilityConfirmation/mountSeymour/mountSeymour.component.ts @@ -0,0 +1,39 @@ +import { Component, Input } from '@angular/core'; +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-mountSeymour', + templateUrl: './mountSeymour.component.html', + styleUrls: ['./mountSeymour.component.scss'] +}) +export class MountSeymourComponent { + + @Input() regData: any; + public isMountSeymour = true; + public parkLink = 'https://bcparks.ca/mount-seymour-park/#advisories' + public avalancheLink = 'https://avalanche.ca/map/forecasts/9115d426-7872-4b62-bdd8-234a94ae0ab9_fc022cc076b5327b78b2e1d6fbfd8d1d49dec6a1260f070359a9704acaa9fdaa?panel=null' + + constructor(private router: Router) { } + + print(): void { + const qrContent = document.getElementById('qr-code'); + const printContent = document.getElementById('registration'); + const WindowPrt = window.open('', '', 'left=0,top=0,width=900,height=900,toolbar=0,scrollbars=0,status=0'); + WindowPrt.document.write('

BC Parks Day Pass Reservation System

'); + if (qrContent) { + WindowPrt.document.write(qrContent.innerHTML); + } + WindowPrt.document.write(printContent.innerHTML); + WindowPrt.document.close(); + + WindowPrt.onload = () => { + WindowPrt.focus(); + WindowPrt.print(); + } + } + + navigate(): void { + this.router.navigate(['']); + } + + } \ No newline at end of file diff --git a/src/app/registration/success/success.component.html b/src/app/registration/success/success.component.html index 3446fd2a..d38b4350 100644 --- a/src/app/registration/success/success.component.html +++ b/src/app/registration/success/success.component.html @@ -2,7 +2,7 @@

Success! Your reservation is complete.

-
+
@@ -86,6 +86,7 @@

Success! Your reservation is complete.

+ @@ -127,7 +128,7 @@
Next steps
diff --git a/src/app/registration/success/success.component.ts b/src/app/registration/success/success.component.ts index 4322cade..43749b29 100644 --- a/src/app/registration/success/success.component.ts +++ b/src/app/registration/success/success.component.ts @@ -14,6 +14,7 @@ export class SuccessComponent implements OnInit { public parkLink = 'https://bcparks.ca/joffre-lakes-park/' public isJoffreLakes = false; public isGaribaldi = false; + public isMountSeymour constructor(private router: Router) { } @@ -21,11 +22,18 @@ export class SuccessComponent implements OnInit { if (this.regData) { this.regData['park'] = this.park || null; } - if (this.park && this.park.orcs === '0363') { - // Change success layout for Joffre lakes - this.isJoffreLakes = true; - } else if (this.park && this.park.orcs === '0007'){ - this.isGaribaldi = true; + switch (this.park?.orcs) { + case '0363': + this.isJoffreLakes = true; + break; + case '0007': + this.isGaribaldi = true; + break; + case '0015': + this.isMountSeymour = true; + break; + default: + break; } }