Gitlab CI/CD ne fonctionnait pas parce que j'avais pas ajouter le touchupkit component au git...
This commit is contained in:
parent
fd7fe47e51
commit
d309fbab83
|
@ -0,0 +1,23 @@
|
|||
<mat-card class="x-centered mt-5">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Génération d'un kit de retouche</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<form [formGroup]="formGroup">
|
||||
<mat-form-field>
|
||||
<mat-label>Job</mat-label>
|
||||
<input matInput type="text" [formControl]="jobControl" required/>
|
||||
<mat-icon matSuffix svgIcon="briefcase"></mat-icon>
|
||||
</mat-form-field>
|
||||
</form>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button
|
||||
mat-flat-button
|
||||
color="accent"
|
||||
[disabled]="formGroup.invalid"
|
||||
(click)="submit()">
|
||||
Générer
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue