@ -2,49 +2,140 @@
< div class = "well" >
< p class = "h5 text-center mb-4" > Sign up< / p >
< label >
< form class = "form-inline" >
< div class = "md-form" >
< input name = "group2" type = "radio" class = "with-gap" id = "parrain" value = "Parrain" [ ( ngModel ) ] = " currentUser . status " >
< label for = "parrain" > Parrain< / label >
< / div >
< div class = "md-form" >
< input name = "group2" type = "radio" class = "with-gap" id = "commercant" value = "Commercant" [ ( ngModel ) ] = " currentUser . status " >
< label for = "commercant" > Commercant< / label >
< / div >
< / form >
< / label >
<!-- Si cest un parrain -->
< div * ngIf = "currentUser.status === 'Parrain'" class = "alert alert-danger" >
< div class = "md-form" >
< i class = "fa fa-user prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Familyname" [ ( ngModel ) ] = " currentUser . familyname " placeholder = "Your family name" >
< input type = "text" id = "orangeForm-Familyname" [ ( ngModel ) ] = " parrain. familyname " placeholder = "F amily name">
< / div >
< div class = "md-form" >
< i class = "fa fa-user prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Firstname" [ ( ngModel ) ] = " currentUser . firstname " placeholder = "Your firstname" >
< input type = "text" id = "orangeForm-Firstname" [ ( ngModel ) ] = " parrain. firstname " placeholder = "F irstname">
< / div >
< form class = "form-inline" >
< div class = "md-form" >
< i class = "fa fa-venus-mars prefix grey-text" > < / i >
< input name = "group3" type = "radio" class = "with-gap" id = "homme" value = "Homme" [ ( ngModel ) ] = " parrain . sex " >
< label for = "homme" > Homme< / label >
< / div >
< div class = "md-form" >
< input name = "group3" type = "radio" class = "with-gap" id = "femme" value = "Femme" [ ( ngModel ) ] = " parrain . sex " >
< label for = "femme" > Femme< / label >
< / div >
< / form >
< div class = "md-form" >
< i class = "fa fa-user prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Username" [ ( ngModel ) ] = " currentUser . username " placeholder = "User name" >
< i class = "fa fa- birthday-cake prefix grey-text"> < / i >
< input type = " date" id = "orangeForm-Birthday" [ ( ngModel ) ] = " parrain . birthday " placeholder = "Birthday ">
< / div >
< div class = "md-form" >
< i class = "fa fa-birthday-cake prefix grey-text" > < / i >
< input type = "date" id = "orangeForm-Birthday" [ ( ngModel ) ] = " currentUser . birthday " placeholder = "Birthday.." >
< i class = "fa fa-tty prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Username" required minlength = "10" [ ( ngModel ) ] = " parrain . telephone " placeholder = "Telephone" name = "telephone" # telephone = "ngModel" >
< div * ngIf = "telephone.errors && (telephone.dirty || telephone.touched)" class = "alert alert-danger" >
< strong > Telephone< / strong > must have 10 numbers or more
< / div >
< / div >
< div class = "md-form" >
< i class = "fa fa-envelope prefix grey-text" > < / i >
< input type = "email" id = "orangeForm-email" [ ( ngModel ) ] = " currentUser . email " placeholder = "Your email" >
< input type = "email" id = "orangeForm-email" [ ( ngModel ) ] = " parrain . email " placeholder = "Email" name = "email" required pattern = "^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$" # email = "ngModel" >
< div * ngIf = "email.errors && email.errors.pattern && (email.dirty || email.touched)" class = "alert alert-danger" >
Email is required and format should be < strong > < i > john@parrain.fr< / i > < / strong > .
< / div >
< / div >
< div class = "md-form" >
< i class = "fa fa-lock prefix grey-text" > < / i >
< input id = "orangeForm-pass" type = "password" [ ( ngModel ) ] = " currentUser . password " placeholder = "Your password" >
< / div >
< div class = "md-form" >
< input name = "group2" type = "radio" class = "with-gap" id = "client" >
< label for = "client" > Client< / label >
< input id = "orangeForm-pass" type = "password" [ ( ngModel ) ] = " parrain . password " placeholder = "Password" name = "password" # password = "ngModel" required minlength = "5" >
< div * ngIf = "password.errors && (password.dirty || password.touched)" class = "alert alert-danger" >
< strong > Password< / strong > must have more than 5 caracteres
< / div >
< / div >
< div class = "md-form" >
< input name = "group2" type = "radio" class = "with-gap" id = "commercant" >
< label for = "commercant" > Commercant< / label >
< i class = "fa fa-lock prefix grey-text" > < / i >
< input id = "orangeForm-passC" type = "password" [ ( ngModel ) ] = " ConfirmPasswordParrain " placeholder = "Confirm your password" name = "confirmPassword" # confirmPassword = "ngModel" >
< div * ngIf = "(parrain.password != ConfirmPasswordParrain) && (confirmPassword.touched)" class = "alert alert-danger" >
Please write the same of your < strong > < i > password< / i > < / strong > .
< / div >
< / div >
< label >
En cliquant sur Créer un compte, vous acceptez nos Conditions
et indiquez que vous aves lu notre Politique d'utilisation des
données, y compris notre Utilisation des cookies.
< / label >
< div class = "text-center" style = "margin-top:5%" >
< button class = "btn btn-deep-orange" (click ) = " register ( ) " > Sign up< / button >
< button class = "btn btn-deep-orange" [disabled ] = " email . errors | | password . errors | | ( parrain . password ! = ConfirmPasswordParrain ) " (click ) = " register ( ) " > Sign up< / button >
< button class = "btn btn-cyan" ( click ) = " loadHomeComponent ( ) " > Back< / button >
< / div >
< / div >
<!-- Fin Si cest un parrain -->
<!-- Si cest un commercant -->
< div * ngIf = "currentUser.status === 'Commercant'" class = "alert alert-danger" >
< div class = "md-form" >
< i class = "fa fa-institution prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Familyname" [ ( ngModel ) ] = " commercant . raisonSociale " placeholder = "Raison sociale" >
< / div >
< div class = "md-form" >
< i class = "fa fa-user prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Firstname" [ ( ngModel ) ] = " commercant . commercialName " placeholder = "Commercial name" >
< / div >
< div class = "md-form" >
< i class = "fa fa-info prefix grey-text" > < / i >
< input type = "text" id = "orangeForm-Username" [ ( ngModel ) ] = " commercant . siret " placeholder = "Siret" required minlength = "14" name = "siret" # siret = "ngModel" >
< div * ngIf = "siret.errors && (siret.dirty || siret.touched)" class = "alert alert-danger" >
< strong > Siret< / strong > must have 14 numbers
< / div >
< / div >
< div class = "md-form" >
< i class = "fa fa-envelope prefix grey-text" > < / i >
< input type = "email" id = "orangeForm-email" [ ( ngModel ) ] = " commercant . email " placeholder = "Email" name = "email" required pattern = "^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$" # email = "ngModel" >
< div * ngIf = "email.errors && email.errors.pattern && (email.dirty || email.touched)" class = "alert alert-danger" >
Email is required and format should be < strong > < i > john@commercant.fr< / i > < / strong > .
< / div >
< / div >
< div class = "md-form" >
< i class = "fa fa-lock prefix grey-text" > < / i >
< input id = "orangeForm-pass" type = "password" [ ( ngModel ) ] = " commercant . password " placeholder = "Password" name = "password" # password = "ngModel" required minlength = "5" >
< div * ngIf = "password.errors && (password.dirty || password.touched)" class = "alert alert-danger" >
< strong > Password< / strong > must have more than 5 caracteres
< / div >
< / div >
< div class = "md-form" >
< i class = "fa fa-lock prefix grey-text" > < / i >
< input id = "orangeForm-passC" type = "password" [ ( ngModel ) ] = " ConfirmPasswordCommercant " placeholder = "Confirm your password" name = "confirmPassword" # confirmPassword = "ngModel" >
< div * ngIf = "(commercant.password != ConfirmPasswordCommercant) && (confirmPassword.touched)" class = "alert alert-danger" >
Please write the same of your < strong > < i > password< / i > < / strong > .
< / div >
< / div >
< label >
En cliquant sur Créer un compte, vous acceptez nos Conditions
et indiquez que vous aves lu notre Politique d'utilisation des
données, y compris notre Utilisation des cookies.
< / label >
< div class = "text-center" style = "margin-top:5%" >
< button class = "btn btn-deep-orange" [ disabled ] = " email . errors | | password . errors | | ( commercant . password ! = ConfirmPasswordCommercant ) " ( click ) = " register ( ) " > Sign up< / button >
< button class = "btn btn-cyan" ( click ) = " loadHomeComponent ( ) " > Back< / button >
< / div >
< / div >
<!-- Fin Si cest un commercant -->
< / div >
< / div >