Modifications du style des boutons et
des formulaires
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div *ngIf="dataSourceTable != null else loading" class="table-container">
|
||||
<button mat-button (click)="openDialogToAdd()" class="btn btn-primary">Add a aircraft</button>
|
||||
<button mat-button (click)="openDialogToAdd()" mat-button>Add a aircraft</button>
|
||||
|
||||
<table mat-table [dataSource]="dataSourceTable">
|
||||
<ng-container matColumnDef="id">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div *ngIf="dataSourceTable != null else loading" class="table-container">
|
||||
<button mat-button (click)="openDialogToAdd()" class="btn btn-primary">Add a drop zone</button>
|
||||
<button mat-button (click)="openDialogToAdd()" mat-button>Add a drop zone</button>
|
||||
|
||||
<table mat-table [dataSource]="dataSourceTable">
|
||||
<ng-container matColumnDef="isfavorite">
|
||||
|
||||
@@ -73,6 +73,9 @@ export class ListOfDzsComponent implements OnInit {
|
||||
}
|
||||
|
||||
openDialogToAdd() {
|
||||
this.dialog.open(NewDropZoneComponent);
|
||||
this.dialog.open(NewDropZoneComponent, {
|
||||
height: "400px",
|
||||
width: "600px"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div *ngIf="dataSourceTable != null else loading" class="table-container">
|
||||
<button mat-button (click)="openDialogToAdd()" class="btn btn-primary">Add a gear</button>
|
||||
<button mat-button (click)="openDialogToAdd()" mat-button>Add a gear</button>
|
||||
|
||||
<table mat-table [dataSource]="dataSourceTable">
|
||||
<ng-container matColumnDef="id">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div *ngIf="dataSourceTable != null else loading" class="table-container">
|
||||
<button mat-button (click)="openDialogToAdd()" class="btn btn-primary">Add a jump type</button>
|
||||
<button mat-button (click)="openDialogToAdd()" mat-button>Add a jump type</button>
|
||||
|
||||
<table mat-table [dataSource]="dataSourceTable">
|
||||
<ng-container matColumnDef="id">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ '{' }}8,15{{ '}' }})</div>
|
||||
</div>
|
||||
</div>
|
||||
<button [disabled]="loading" class="btn btn-primary">
|
||||
<button [disabled]="loading" mat-button>
|
||||
<span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span>
|
||||
Login
|
||||
</button>
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
label {
|
||||
/* label {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: 200px;
|
||||
} */
|
||||
|
||||
|
||||
|
||||
mat-form-field.mat-form-field {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
mat-label {
|
||||
color: #424242;
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<label for="aircraftName">Aircraft name</label>
|
||||
<input id="aircraftName" type="text" formControlName="aircraftName" class="form-control">
|
||||
</p>
|
||||
<button class="button" type="submit" class="btn btn-primary">Add</button>
|
||||
<button type="submit" mat-button>Add</button>
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
label {
|
||||
/* label {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
@@ -13,4 +13,14 @@ input[type="email"] {
|
||||
|
||||
textarea {
|
||||
width: 200px;
|
||||
} */
|
||||
|
||||
|
||||
|
||||
mat-form-field.mat-form-field {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
mat-label {
|
||||
color: #424242;
|
||||
}
|
||||
|
||||
@@ -1,27 +1,31 @@
|
||||
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
|
||||
<p class="form-group">
|
||||
<label for="dzName">Dropzone name</label>
|
||||
<input id="dzName" type="text" formControlName="dzName" class="form-control">
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="gps">GPS</label>
|
||||
<input id="gps" type="text" formControlName="gps" class="form-control">
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="address">Address</label>
|
||||
<textarea id="address" formControlName="address" placeholder="Address of the DZ" class="form-control"></textarea>
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="contactMail">Mail of contact</label>
|
||||
<input id="contactMail" type="text" formControlName="contactMail" class="form-control">
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="isDz">Is a dropzone</label>
|
||||
<input id="isDz" type="checkbox" formControlName="isDz" class="form-control">
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="isTunnel">Is a tunnel</label>
|
||||
<input id="isTunnel" type="checkbox" formControlName="isTunnel" class="form-control">
|
||||
</p>
|
||||
<button class="button" type="submit" class="btn btn-primary">Add</button>
|
||||
<mat-form-field>
|
||||
<mat-label>Dropzone name</mat-label>
|
||||
<input matInput formControlName="dzName">
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<mat-form-field>
|
||||
<mat-label>GPS</mat-label>
|
||||
<input matInput formControlName="gps">
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<mat-form-field>
|
||||
<mat-label>Address</mat-label>
|
||||
<textarea matInput formControlName="address" placeholder="Address of the DZ"></textarea>
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<mat-form-field>
|
||||
<mat-label>Mail of contact</mat-label>
|
||||
<input matInput formControlName="contactMail">
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<mat-form-field>
|
||||
<mat-checkbox formControlName="isDz">Is a dropzone</mat-checkbox>
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<mat-form-field>
|
||||
<mat-checkbox formControlName="isTunnel">Is a tunnel</mat-checkbox>
|
||||
</mat-form-field>
|
||||
<br>
|
||||
<button type="submit" mat-button>Add</button>
|
||||
</form>
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
label {
|
||||
/* label {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: 200px;
|
||||
} */
|
||||
|
||||
|
||||
mat-form-field.mat-form-field {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
mat-label {
|
||||
color: #424242;
|
||||
}
|
||||
|
||||
@@ -28,5 +28,5 @@
|
||||
<input id="reserveCanopy" type="text" formControlName="reserveCanopy" class="form-control">
|
||||
</p>
|
||||
|
||||
<button class="button" type="submit" class="btn btn-primary">Add</button>
|
||||
<button mat-button type="submit">Add</button>
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
label {
|
||||
/* label {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
@@ -6,3 +6,13 @@ label {
|
||||
input[type="text"] {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
mat-form-field.mat-form-field {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
mat-label {
|
||||
color: #424242;
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<label for="jumptypeName">Jump type name</label>
|
||||
<input id="jumptypeName" type="text" formControlName="jumptypeName" class="form-control">
|
||||
</p>
|
||||
<button class="button" type="submit" class="btn btn-primary">Add</button>
|
||||
<button type="submit" mat-button>Add</button>
|
||||
</form>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
</mat-form-field>
|
||||
|
||||
<br />
|
||||
<button class="btn btn-primary" *ngIf="isValidatedForm()">Submit</button>
|
||||
<button mat-button *ngIf="isValidatedForm()">Submit</button>
|
||||
</form>
|
||||
|
||||
<ng-template #loading>
|
||||
|
||||
Reference in New Issue
Block a user