Fix GUI
This commit is contained in:
@@ -16,12 +16,14 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'NewTunnelFlight_Date_Lbl' | translate }}</mat-label>
|
||||
<input matInput [matDatepicker]="flightDateDp" [(ngModel)]="flightDate" name="flightDate" disabled>
|
||||
<mat-datepicker-toggle matSuffix [for]="flightDateDp"></mat-datepicker-toggle>
|
||||
<mat-datepicker #flightDateDp disabled="false"></mat-datepicker>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'NewTunnelFlight_Minutes_Lbl' | translate }}</mat-label>
|
||||
<input matInput placeholder="{{ 'NewTunnelFlight_Minutes' | translate }}" [(ngModel)]="minutesOfFlight"
|
||||
name="minutesOfFlight" type="number">
|
||||
<button *ngIf="minutesOfFlight" matSuffix mat-icon-button aria-label="Clear" (click)="minutesOfFlight=undefined">
|
||||
@@ -30,6 +32,7 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'NewTunnelFlight_Comments_Lbl' | translate }}</mat-label>
|
||||
<textarea matInput placeholder="{{ 'NewTunnelFlight_Comments' | translate }}" [(ngModel)]="comments"
|
||||
name="comments" type="text"></textarea>
|
||||
<button *ngIf="comments" matSuffix mat-icon-button aria-label="Clear" (click)="comments=undefined">
|
||||
@@ -38,8 +41,7 @@
|
||||
</mat-form-field>
|
||||
|
||||
<br />
|
||||
<button mat-raised-button color="accent" *ngIf="isValidatedForm()">{{ 'NewTunnelFlight_Submit' | translate
|
||||
}}</button>
|
||||
<button mat-raised-button color="accent" *ngIf="isValidatedForm()">{{ 'NewTunnelFlight_Submit' | translate }}</button>
|
||||
</form>
|
||||
|
||||
<ng-template #loading>
|
||||
|
||||
@@ -136,4 +136,8 @@ export class NewTunnelFlightComponent implements OnInit {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public displayNameFn(data?: any): string | undefined {
|
||||
return data ? data.name : undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user