|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<p>
|
|
|
|
|
<!--<p>
|
|
|
|
|
envoyer-carte works!
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
@ -6,32 +6,30 @@
|
|
|
|
|
<li *ngFor="let par of parrainExistList | async">
|
|
|
|
|
Parrains: {{par.firstname}} {{par.familyname}}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</ul>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container" style="padding-top:10%">
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="well">
|
|
|
|
|
<p class="h5 text-center mb-4">Envoyer Carte</p>
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
<form class="form-inline">
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="Newparrain" value="Newparrain" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="Newparrain">Nouveau Parrain</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="ParrainExist" value ="ParrainExist" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="ParrainExist">Parrain Existant</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="ParrainAffi" value ="ParrainAffi" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="ParrainAffi">Parrain Affilier</label>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</label>
|
|
|
|
|
<p class="text-center mb-4" style="padding-top: 2%;">Choisissez quelle type de parrain à qui envoyer la carte</p>
|
|
|
|
|
<form class="form-inline flex-center">
|
|
|
|
|
<div class="md-form" style="padding-left: 2%;">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="Newparrain" value="Newparrain" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="Newparrain">Nouveau Parrain</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="md-form" style="padding-left: 2%;">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="ParrainExist" value ="ParrainExist" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="ParrainExist">Parrain Existant</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="md-form" style="padding-left: 2%;">
|
|
|
|
|
<input name="group2" type="radio" class="with-gap" id="ParrainAffi" value ="ParrainAffi" (click)="initParSelect()" [(ngModel)]="radioParrain">
|
|
|
|
|
<label for="ParrainAffi">Parrain Affilier</label>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- Si cest un nouveau parrain -->
|
|
|
|
|
<div *ngIf="radioParrain === 'Newparrain'" class="alert alert-danger">
|
|
|
|
|
<div *ngIf="radioParrain === 'Newparrain'">
|
|
|
|
|
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<i class="fa fa-user prefix grey-text"></i>
|
|
|
|
@ -47,7 +45,7 @@
|
|
|
|
|
<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">
|
|
|
|
|
<div class="md-form" style="padding-left: 2%;">
|
|
|
|
|
<input name="group3" type="radio" class="with-gap" id="femme" value="Femme" [(ngModel)]="parrain.sex">
|
|
|
|
|
<label for="femme">Femme</label>
|
|
|
|
|
</div>
|
|
|
|
@ -69,14 +67,14 @@
|
|
|
|
|
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" (click)="registerNewParrain()">Creer nouveau parrain & envoyer carte</button>
|
|
|
|
|
<button class="btn btn-light-green waves-light" [disabled]="email.errors" (click)="registerNewParrain()">Creer nouveau parrain & envoyer carte</button>
|
|
|
|
|
<button class="btn btn-cyan" (click)="goToOpComm()">Back</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Fin Si cest un nouveau parrain -->
|
|
|
|
|
|
|
|
|
|
<!-- Si cest un parrain existant -->
|
|
|
|
|
<div *ngIf="radioParrain === 'ParrainExist'" class="alert alert-danger">
|
|
|
|
|
<div *ngIf="radioParrain === 'ParrainExist'">
|
|
|
|
|
<p>{{parSelect}}</p>
|
|
|
|
|
<div class="dropdown" dropdown>
|
|
|
|
|
<button dropdownToggle type="button" class="btn btn-primary dropdown-toggle waves-light" mdbRippleRadius>
|
|
|
|
@ -89,7 +87,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<div class="md-form" style="padding-top:2%;">
|
|
|
|
|
<i class="fa fa-birthday-cake prefix grey-text"></i>
|
|
|
|
|
<input type="date" id="orangeForm-Birthday" placeholder="Birthday">
|
|
|
|
|
</div>
|
|
|
|
@ -100,14 +98,14 @@
|
|
|
|
|
données, y compris notre Utilisation des cookies.
|
|
|
|
|
</label>
|
|
|
|
|
<div class="text-center" style="margin-top:5%">
|
|
|
|
|
<button class="btn btn-deep-orange" [disabled]="parSelect === ''" (click)="creerCartePar()">Envoyer Carte et affilié le parrain</button>
|
|
|
|
|
<button class="btn btn-light-green waves-light" [disabled]="parSelect === ''" (click)="creerCartePar()">Envoyer Carte et affilié le parrain</button>
|
|
|
|
|
<button class="btn btn-cyan" (click)="goToOpComm()">Back</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Fin Si cest un parrain existant -->
|
|
|
|
|
|
|
|
|
|
<!-- Si cest un parrain connu et affilié -->
|
|
|
|
|
<div *ngIf="radioParrain === 'ParrainAffi'" class="alert alert-danger">
|
|
|
|
|
<div *ngIf="radioParrain === 'ParrainAffi'">
|
|
|
|
|
<p>{{parSelect}}</p>
|
|
|
|
|
<div class="dropdown" dropdown>
|
|
|
|
|
<button dropdownToggle type="button" class="btn btn-primary dropdown-toggle waves-light" mdbRippleRadius>
|
|
|
|
@ -119,7 +117,7 @@
|
|
|
|
|
<a class="dropdown-item" *ngFor="let parAf of parrainAffListTemp" (click)="getIdParrain(parAf.uid)">{{parAf.firstname}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="md-form">
|
|
|
|
|
<div class="md-form" style="padding-top: 2%;">
|
|
|
|
|
<i class="fa fa-birthday-cake prefix grey-text"></i>
|
|
|
|
|
<input type="date" id="orangeForm-Birthday" placeholder="Birthday">
|
|
|
|
|
</div>
|
|
|
|
@ -130,7 +128,7 @@
|
|
|
|
|
données, y compris notre Utilisation des cookies.
|
|
|
|
|
</label>
|
|
|
|
|
<div class="text-center" style="margin-top:5%">
|
|
|
|
|
<button class="btn btn-deep-orange" [disabled]="parSelect === ''" (click)="register()">S'inscrire</button>
|
|
|
|
|
<button class="btn btn-light-green waves-light" [disabled]="parSelect === ''" (click)="register()">S'inscrire</button>
|
|
|
|
|
<button class="btn btn-cyan" (click)="goToOpComm()">Back</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -138,3 +136,4 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|