From 500b32626ec38cad1daa714284505e3b6f13d7ef Mon Sep 17 00:00:00 2001 From: MiharyR Date: Wed, 17 Nov 2021 20:30:33 +0100 Subject: [PATCH] modification popup-update-user --- .../input-interests-profil.component.html | 6 +- .../input-interests-profil.component.scss | 4 + .../page-profil-user.component.ts | 2 +- .../popup-update-user.component.html | 179 +++++++++++------- .../popup-update-user.component.scss | 38 +++- .../popup-update-user.component.ts | 10 +- 6 files changed, 156 insertions(+), 83 deletions(-) diff --git a/src/app/user/myProfil/input-interests-profil/input-interests-profil.component.html b/src/app/user/myProfil/input-interests-profil/input-interests-profil.component.html index 847d672..be2bd07 100644 --- a/src/app/user/myProfil/input-interests-profil/input-interests-profil.component.html +++ b/src/app/user/myProfil/input-interests-profil/input-interests-profil.component.html @@ -2,10 +2,6 @@ - Tags - - - -
- -
-
- -
+ +
+
+ +

- -

+ +
+ + +
+ + +
+
{{errorMessage}}
+
+ + +
+ + +
+ +
+ + + + + + + +
- - Pseudo - - -
- - - - Email - - -
+
+ +
+ +
+
- - Date de naissance - - -
+
+ +
+ +
+
- - - Homme     - Femme - -

- - - - - -

+ +
+ + Homme     + Femme + +
-
- Modifier mot de passe: - +
+ +
+ +
- -
- - - Nouveau mot de passe - - -
- - - Confirmation nouveau mot de passe - - -
-

- - -
- - -
- {{errorMessage}} + +
+ +
+ +
- -
- - + +
+ +
+ +
-
+ + + + + + + + +
+ + +
+ +
+ +
+
+ +
+
diff --git a/src/app/user/myProfil/popup-update-user/popup-update-user.component.scss b/src/app/user/myProfil/popup-update-user/popup-update-user.component.scss index 8db0898..636928e 100644 --- a/src/app/user/myProfil/popup-update-user/popup-update-user.component.scss +++ b/src/app/user/myProfil/popup-update-user/popup-update-user.component.scss @@ -1,4 +1,4 @@ -.boite { +.myContainer { font-size: small; } @@ -15,6 +15,42 @@ img { font-size: xxx-large; } +.inputUrlImage { + width: 80%; + text-align: center; + margin-left: 10%; + margin-right: 10%; + font-size: small; + border-radius: 5px; +} + +input { + font-size: small; +} + +// ------------------------------------------------------------------------- + +.myRow { + margin: 15px 0px 15px 0px; +} +.myLeftLabel { + text-align: right; + padding: 0px 0px 0px 0px; + margin: 0px 0px 0px 0px; + font-weight: bold; +} +.myRightLabel { + text-align: left; + padding: 0px 0px 0px 0px; + margin: 0px 0px 0px 0px; + font-weight: bold; +} +.myValue { + text-align: left; + padding: 0px 0px 0px 0px; + margin: 0px 0px 0px 0px; +} + // ------------------------------------------------------------------------- // aura diff --git a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts index 38980e9..a971cfc 100644 --- a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts +++ b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts @@ -67,15 +67,15 @@ export class PopupUpdateUserComponent implements OnInit checkField() { if(this.userCopy.login.length === 0) { - this.errorMessage = "Veuillez remplir le champ 'login'" ; + this.errorMessage = "Veuillez remplir le champ 'login'." ; this.hasError = true; } else if(this.userCopy.mail.length === 0) { - this.errorMessage = "Veuillez remplir le champ 'email'" ; + this.errorMessage = "Veuillez remplir le champ 'email'." ; this.hasError = true; } else if(!this.isValidEmail(this.userCopy.mail)) { - this.errorMessage = "Email invalide" ; + this.errorMessage = "Email invalide." ; this.hasError = true; } else if((this.userCopy.dateOfBirth === undefined) || (this.userCopy.dateOfBirth === null)) { @@ -84,10 +84,10 @@ export class PopupUpdateUserComponent implements OnInit } else if(this.changePassword) { if (this.newPassword.length === 0) { - this.errorMessage = "Veuillez remplir le champ 'mot de passe'" ; + this.errorMessage = "Veuillez remplir le champ 'mot de passe'." ; this.hasError = true; } else if (this.newPassword !== this.confirmNewPassword) { - this.errorMessage = "Le mot de passe est différent de sa confirmation" ; + this.errorMessage = "Le mot de passe est différent de sa confirmation." ; this.hasError = true; } }