Ajout des couleurs et un peu css
This commit is contained in:
parent
0244cb29ea
commit
49049bc255
8 changed files with 60 additions and 16 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<div class="form-floating">
|
||||
<input type="color" class="form-control" id="floatingInputcouleur" placeholder="" name="couleur"
|
||||
formControlName="couleurFc">
|
||||
formControlName="couleurFc" value= "{{ listContactInfo.couleur }}">
|
||||
</div>
|
||||
|
||||
<div class="form-floating">
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ export class PageModifierContactComponent implements OnInit {
|
|||
|
||||
// *********************************pensser à changer group car déprécié********************************
|
||||
this.modifContactForm = this.fb.group({
|
||||
couleurFc: new FormControl('', [Validators.required]),
|
||||
lastNameFc: new FormControl('', [Validators.required]),
|
||||
firstNameFc: new FormControl('', [Validators.required]),
|
||||
telephoneFc: new FormControl('', [Validators.required]),
|
||||
|
|
@ -71,7 +72,7 @@ export class PageModifierContactComponent implements OnInit {
|
|||
|
||||
//Méthode qui envoie les champs modifiés pour mise à jour
|
||||
public onSubmit(): void {
|
||||
const couleurValue = this.modifContactForm.value[''];
|
||||
const couleurValue = this.modifContactForm.value['couleurFc'];
|
||||
const firstNameValue = this.modifContactForm.value['firstNameFc'];
|
||||
const lastNameValue = this.modifContactForm.value['lastNameFc'];
|
||||
const telephoneValue = this.modifContactForm.value['telephoneFc'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue