Ajout des sources

This commit is contained in:
Julien Gautier
2023-09-12 21:46:56 +02:00
parent fa2288b8ed
commit 747948a422
235 changed files with 45064 additions and 0 deletions
@@ -0,0 +1,3 @@
export * from './jump-add.dialog';
export * from './jump-delete.dialog';
export * from './jump-edit.dialog';
@@ -0,0 +1,90 @@
<h2 mat-dialog-title>Ajouter un saut</h2>
<mat-divider class="mt-2 mb-1 border-light-subtle"></mat-divider>
<mat-dialog-content>
<div fxLayout="row wrap">
<!-- column -->
<div fxFlex.gt-lg="25" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
<mat-form-field appearance="fill">
<mat-label>Numéro</mat-label>
<input matInput [(ngModel)]="jump.numero">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Date</mat-label>
<input matInput [(ngModel)]="jump.date">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Lieu</mat-label>
<input matInput [(ngModel)]="jump.lieu">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Aeronef</mat-label>
<input matInput [(ngModel)]="jump.aeronef">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Hauteur</mat-label>
<input matInput [(ngModel)]="jump.hauteur">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Voile</mat-label>
<input matInput [(ngModel)]="jump.voile">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Taille</mat-label>
<input matInput [(ngModel)]="jump.taille">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Categorie</mat-label>
<input matInput [(ngModel)]="jump.categorie">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Module</mat-label>
<input matInput [(ngModel)]="jump.module">
</mat-form-field>
</div>
<!-- column -->
<div fxFlex.gt-lg="25" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
<mat-form-field appearance="fill">
<mat-label>Participants</mat-label>
<input matInput [(ngModel)]="jump.participants">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Programme</mat-label>
<input matInput [(ngModel)]="jump.programme">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Oaci</mat-label>
<input matInput [(ngModel)]="jump.oaci">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Imat</mat-label>
<input matInput [(ngModel)]="jump.imat">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Accessoires</mat-label>
<input matInput [(ngModel)]="jump.accessoires">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Zone</mat-label>
<input matInput [(ngModel)]="jump.zone">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Dossier</mat-label>
<input matInput [(ngModel)]="jump.dossier">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Video</mat-label>
<input matInput [(ngModel)]="jump.video">
</mat-form-field>
</div>
<!-- column -->
<div fxFlex.gt-lg="25" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
</div>
<!-- column -->
<div fxFlex.gt-lg="25" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
</div>
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onCloseDialog()">Annuler</button>
<button mat-button color="primary" [mat-dialog-close]="jump" cdkFocusInitial>Enregistrer</button>
</mat-dialog-actions>
@@ -0,0 +1,32 @@
import { Component, Inject } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatOptionModule } from '@angular/material/core';
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { MatDividerModule } from '@angular/material/divider';
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { Jump } from 'src/app/core/models';
@Component({
selector: 'huapp-jump-add-dialog',
templateUrl: 'jump-add.dialog.html',
standalone: true,
imports: [
FormsModule,
MatDialogModule, MatFormFieldModule, MatInputModule, MatDividerModule,
MatSelectModule, MatOptionModule, MatButtonModule
]
})
export class JumpAddDialogComponent {
constructor(
public dialogRef: MatDialogRef<JumpAddDialogComponent>,
@Inject(MAT_DIALOG_DATA) public jump: Jump
) { }
onCloseDialog(): void {
this.dialogRef.close();
}
}
@@ -0,0 +1,49 @@
<h2 mat-dialog-title>Supprimer le saut n°{{jump.numero}}</h2>
<mat-divider class="mt-2 mb-1 border-light-subtle"></mat-divider>
<mat-dialog-content>
<p class="mt-2 mb-3 text-accent">Veuillez confirmer la suppression de ce saut. Attention, cette action est irréversible.</p>
<h3>Données du saut :</h3>
<div class="mb-3 clearfix">
<dl class="dl-horizontal">
<dt class="text-lowercase text-bold">numero:</dt>
<dd>{{jump.numero}}</dd>
<dt class="text-lowercase text-bold">date:</dt>
<dd>{{jump.date}}</dd>
<dt class="text-lowercase text-bold">lieu:</dt>
<dd>{{jump.lieu}}</dd>
<dt class="text-lowercase text-bold">oaci:</dt>
<dd>{{jump.oaci}}</dd>
<dt class="text-lowercase text-bold">aeronef:</dt>
<dd>{{jump.aeronef}}</dd>
<dt class="text-lowercase text-bold">imat:</dt>
<dd>{{jump.imat}}</dd>
<dt class="text-lowercase text-bold">hauteur:</dt>
<dd>{{jump.hauteur}}</dd>
<dt class="text-lowercase text-bold">voile:</dt>
<dd>{{jump.voile}}</dd>
<dt class="text-lowercase text-bold">taille:</dt>
<dd>{{jump.taille}}</dd>
<dt class="text-lowercase text-bold">categorie:</dt>
<dd>{{jump.categorie}}</dd>
<dt class="text-lowercase text-bold">module:</dt>
<dd>{{jump.module}}</dd>
<dt class="text-lowercase text-bold">participants:</dt>
<dd>{{jump.participants}}</dd>
<dt class="text-lowercase text-bold">programme:</dt>
<dd>{{jump.programme}}</dd>
<dt class="text-lowercase text-bold">accessoires:</dt>
<dd>{{jump.accessoires}}</dd>
<dt class="text-lowercase text-bold">zone:</dt>
<dd>{{jump.zone}}</dd>
<dt class="text-lowercase text-bold">dossier:</dt>
<dd>{{jump.dossier}}</dd>
<dt class="text-lowercase text-bold">video:</dt>
<dd>{{jump.video}}</dd>
</dl>
</div>
<hr />
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onCloseDialog()">Annuler</button>
<button mat-button color="accent" [mat-dialog-close]="jump" cdkFocusInitial>Supprimer</button>
</mat-dialog-actions>
@@ -0,0 +1,23 @@
import { Component, Inject } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { MatDividerModule } from '@angular/material/divider';
import { Jump } from 'src/app/core/models';
@Component({
selector: 'huapp-jump-delete-dialog',
templateUrl: 'jump-delete.dialog.html',
standalone: true,
imports: [MatDialogModule, MatButtonModule, MatDividerModule]
})
export class JumpDeleteDialogComponent {
constructor(
public dialogRef: MatDialogRef<JumpDeleteDialogComponent>,
@Inject(MAT_DIALOG_DATA) public jump: Jump
) { }
onCloseDialog(): void {
this.dialogRef.close();
}
}
@@ -0,0 +1,84 @@
<h2 mat-dialog-title>Editer un saut</h2>
<mat-divider class="mt-2 mb-1 border-light-subtle"></mat-divider>
<mat-dialog-content>
<div fxLayout="row wrap">
<!-- column -->
<div fxFlex.gt-lg="50" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
<mat-form-field appearance="fill">
<mat-label>Numéro</mat-label>
<input matInput [(ngModel)]="jump.numero">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Date</mat-label>
<input matInput [(ngModel)]="jump.date">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Lieu</mat-label>
<input matInput [(ngModel)]="jump.lieu">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Aeronef</mat-label>
<input matInput [(ngModel)]="jump.aeronef">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Hauteur</mat-label>
<input matInput [(ngModel)]="jump.hauteur">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Voile</mat-label>
<input matInput [(ngModel)]="jump.voile">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Taille</mat-label>
<input matInput [(ngModel)]="jump.taille">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Categorie</mat-label>
<input matInput [(ngModel)]="jump.categorie">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Module</mat-label>
<input matInput [(ngModel)]="jump.module">
</mat-form-field>
</div>
<!-- column -->
<div fxFlex.gt-lg="50" fxFlex.gt-md="50" fxFlex.gt-xs="100" fxFlex="100" class="px-2">
<mat-form-field appearance="fill">
<mat-label>Participants</mat-label>
<input matInput [(ngModel)]="jump.participants">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Programme</mat-label>
<input matInput [(ngModel)]="jump.programme">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Oaci</mat-label>
<input matInput [(ngModel)]="jump.oaci">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Imat</mat-label>
<input matInput [(ngModel)]="jump.imat">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Accessoires</mat-label>
<input matInput [(ngModel)]="jump.accessoires">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Zone</mat-label>
<input matInput [(ngModel)]="jump.zone">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Dossier</mat-label>
<input matInput [(ngModel)]="jump.dossier">
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Video</mat-label>
<input matInput [(ngModel)]="jump.video">
</mat-form-field>
</div>
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onCloseDialog()">Annuler</button>
<button mat-button color="primary" [mat-dialog-close]="jump" cdkFocusInitial>Enregistrer</button>
</mat-dialog-actions>
@@ -0,0 +1,33 @@
import { Component, Inject } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatOptionModule } from '@angular/material/core';
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { Jump } from 'src/app/core/models';
@Component({
selector: 'huapp-jump-edit-dialog',
templateUrl: 'jump-edit.dialog.html',
standalone: true,
imports: [
FormsModule,
MatDialogModule, MatFormFieldModule, MatInputModule, MatDividerModule,
MatSelectModule, MatOptionModule, MatIconModule, MatButtonModule
]
})
export class JumpEditDialogComponent {
constructor(
public dialogRef: MatDialogRef<JumpEditDialogComponent>,
@Inject(MAT_DIALOG_DATA) public jump: Jump
) { }
onCloseDialog(): void {
this.dialogRef.close();
}
}