From d309fbab8363784620b9dc8b998b75a560144c5d Mon Sep 17 00:00:00 2001 From: FyloZ Date: Tue, 4 May 2021 10:12:00 -0400 Subject: [PATCH] Gitlab CI/CD ne fonctionnait pas parce que j'avais pas ajouter le touchupkit component au git... --- .../touchupkit/touchupkit.component.html | 23 ++++++++++++++ .../touchupkit/touchupkit.component.sass | 0 .../others/touchupkit/touchupkit.component.ts | 30 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 src/app/pages/others/touchupkit/touchupkit.component.html create mode 100644 src/app/pages/others/touchupkit/touchupkit.component.sass create mode 100644 src/app/pages/others/touchupkit/touchupkit.component.ts diff --git a/src/app/pages/others/touchupkit/touchupkit.component.html b/src/app/pages/others/touchupkit/touchupkit.component.html new file mode 100644 index 0000000..0218a25 --- /dev/null +++ b/src/app/pages/others/touchupkit/touchupkit.component.html @@ -0,0 +1,23 @@ + + + Génération d'un kit de retouche + + +
+ + Job + + + +
+
+ + + +
diff --git a/src/app/pages/others/touchupkit/touchupkit.component.sass b/src/app/pages/others/touchupkit/touchupkit.component.sass new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/others/touchupkit/touchupkit.component.ts b/src/app/pages/others/touchupkit/touchupkit.component.ts new file mode 100644 index 0000000..1ffe1e8 --- /dev/null +++ b/src/app/pages/others/touchupkit/touchupkit.component.ts @@ -0,0 +1,30 @@ +import {Component, OnInit} from '@angular/core' +import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms' +import {TouchupkitService} from '../../../modules/shared/service/touchupkit.service' + +@Component({ + selector: 'cre-touchupkit', + templateUrl: './touchupkit.component.html', + styleUrls: ['./touchupkit.component.sass'] +}) +export class TouchupkitComponent implements OnInit { + formGroup: FormGroup + jobControl: FormControl + + constructor( + private touchUpKitService: TouchupkitService, + private formBuilder: FormBuilder + ) { + } + + ngOnInit(): void { + this.jobControl = new FormControl(null, Validators.required) + this.formGroup = this.formBuilder.group({ + job: this.jobControl + }) + } + + submit() { + this.touchUpKitService.generateJobPdfDocument(this.jobControl.value) + } +}