Skip to content
Snippets Groups Projects
Commit 1ced0920 authored by Arthur Guedon's avatar Arthur Guedon
Browse files

changes upload component declarations

parent 7b5aafcd
No related branches found
No related tags found
19 merge requests!68Branchetest,!64adds error message when email is already used and redirects after signup,!63Improve error message,!61adds info on phone number format,!59Adds info on phone number format,!58Personnal data fix,!57Validated signup file display,!54Validated signup file display,!53adds message after user modfies personal data,!55Fix Oser to OSER,!52closes three-panes tag,!50Donnees personnelles,!51Adds message after user changes his personal data,!49Donnees personnelles,!47Donnees personnelles,!44Donnees personnelles,!48Donnees personnelles,!45Donnees personnelles,!46Donnees personnelles
......@@ -28,8 +28,6 @@ import { HttpClientModule } from '@angular/common/http'
BrowserAnimationsModule,
MatProgressBarModule,
],
declarations: [],
exports: [UploadComponent],
providers: [UploadService],
entryComponents : [ParentalAuthDialogComponent,ImageRightsDialogComponent,StudentChartDialogComponent]
})
......
......@@ -34,152 +34,6 @@
</mat-form-field>
<!--
Cette zone permet de saisir les données personnelles lors de l'inscription
<p>
<small>
Données personnelles : nous utiliserons les données fournies pour assurer le contact avec toi et ta famille,
équilibrer les participations aux activités organisées ainsi qu'à des fins d'aggrégation anonymisée
(statistiques, demandes de subvention). Plus d'informations dans nos <a routerLink="/mentions-legales"
target="_blank">mentions légales</a>.
</small>
</p>
<p>
J'accepte qu'OSER utilise mes données personnelles fournies ci-dessus ou dans le formulaire d'inscription
adminsitrative, dans le strict respect du cadre spécifié ci-dessus :
</p>
<mat-checkbox id="checkboxUtilisation" class="checkbox-field" formControlName="agree" required>
J'accepte cette utilisation
</mat-checkbox>
<p class="text-center">
<button type="button" (click)="toggleShowPersonnalDataForm()">
<mat-icon>launch</mat-icon>
Remplir le formulaire
</button>
</p>
<ng-container *ngIf = "showPersonnalDataForm">
<mat-form-field>
<mat-label>Sexe</mat-label>
<mat-select formControlName="gender">
<mat-option value="man">Homme</mat-option>
<mat-option value="woman" >Femme</mat-option>
<mat-option value="other">Autre</mat-option>
</mat-select>
</mat-form-field>
<p class="text-center">Adresse</p>
<div class="form-group">
<mat-form-field class="full-width adress-input quarter-display">
<input matInput type="text" formControlName="adressNumber" placeholder="Numéro de rue" required>
</mat-form-field>
<mat-form-field class="full-width adress-input">
<input matInput type="text" formControlName="street" placeholder="Rue" required>
</mat-form-field>
</div>
<div class="form-group">
<mat-form-field class="full-width adress-input quarter-display">
<input matInput type="text" minlength="5" maxlength="5" formControlName="zipCode" placeholder="Code postal" required>
<mat-error *ngIf="formGroup.controls['city'].hasError('pattern')">
Vous devez rentrer un code postal correct
</mat-error>
</mat-form-field>
<mat-form-field class="full-width adress-input" >
<input matInput type="text" formControlName="city" placeholder="Ville" required>
</mat-form-field>
</div>
<p class="text-center">Informations de contact</p>
<mat-form-field class="full-width" >
<input matInput type="text" formControlName="personnalPhone" placeholder="Numéro de téléphone personnel" required>
</mat-form-field>
<mat-form-field class="full-width" >
<input matInput type="text" formControlName="parentsPhone" placeholder="Numéro de téléphone des parents" required>
</mat-form-field>
<mat-form-field class="full-width" >
<input matInput type="text" formControlName="parentsEmail" placeholder="Email des parents" required>
</mat-form-field>
<p class="text-center">Informations scolaires</p>
<mat-form-field class="full-width" >
<input matInput type="text" formControlName="school" placeholder="Lycée" required>
</mat-form-field>
<div class="form-group">
<mat-form-field class="horizontal-display">
<mat-label>Classe</mat-label>
<mat-select formControlName="grade">
<mat-option value="troisieme">Troisième</mat-option>
<mat-option value="seconde">Seconde</mat-option>
<mat-option value="premiere" >Première</mat-option>
<mat-option value="terminale">Terminale</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="horizontal-display">
<mat-label>Section</mat-label>
<mat-select formControlName="section">
<mat-option value="none">Aucune</mat-option>
<mat-option value="s">S</mat-option>
<mat-option value="es" >ES</mat-option>
<mat-option value="l">L</mat-option>
<mat-option value="sti2d">STI2D</mat-option>
<mat-option value="sti2a">STI2A</mat-option>
<mat-option value="stmg">STMG</mat-option>
</mat-select>
</mat-form-field>
</div>
<mat-form-field class="full-width" >
<input matInput type="text" formControlName="specialTeaching" placeholder="Enseignement de spécialité" required>
</mat-form-field>
<mat-form-field>
<mat-label>Boursier </mat-label>
<mat-select formControlName="scholarship">
<mat-option *ngFor="let scholarship of possibleScholarships" [value]="scholarship.id">{{ scholarship.name }}</mat-option>
</mat-select>
</mat-form-field>
<p class="text-center">Informations parentales</p>
<div class="form-group">
<mat-form-field class="horizontal-display">
<mat-label>Activité de la mère </mat-label>
<mat-select formControlName="motherActivity">
<mat-option *ngFor="let activity of possibleParentsActivities" [value]="activity.id">{{ activity.name }}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="horizontal-display">
<mat-label>Activité du père </mat-label>
<mat-select formControlName="fatherActivity">
<mat-option *ngFor="let activity of possibleParentsActivities" [value]="activity.id">{{ activity.name }}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div class="form-group">
<mat-form-field class="horizontal-display">
<mat-label>Statut des parents </mat-label>
<mat-select formControlName="parentsStatus" >
<mat-option *ngFor="let status of possibleParentsStatus" [value]="status.id">{{ status.name }}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="horizontal-display" >
<input matInput type="number" formControlName="dependantsNumber" placeholder="Nombre de personnes à charge" required>
</mat-form-field>
</div>
</ng-container>
-->
<p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment