Moved to Angular 6.0

----

Pending
* Table width for the points column in incentive
* Linting
* keyboard navigation where it was used earlier
* can remove the unused totals calculated serverside in productledger
* spinner and loading bars
* Activate Guard for Employee Function tabs
* Progress for Fingerprint uploads
* deleted reconcile and receipe features as they were not being used
* focus the right control on component load
This commit is contained in:
tanshu
2018-06-09 17:05:11 +05:30
parent b3cb01da02
commit 6be1dd5a3a
1380 changed files with 23914 additions and 18722 deletions
@@ -0,0 +1,68 @@
<mat-card>
<mat-card-title-group>
<mat-card-title>Employee</mat-card-title>
</mat-card-title-group>
<mat-card-content>
<form [formGroup]="form" fxLayout="column">
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Code</mat-label>
<input matInput placeholder="Code" formControlName="code">
</mat-form-field>
</div>
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Name</mat-label>
<input matInput #nameElement placeholder="Name" formControlName="name">
</mat-form-field>
</div>
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Designation</mat-label>
<input matInput placeholder="Designation" formControlName="designation">
</mat-form-field>
</div>
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Salary</mat-label>
<input matInput placeholder="Salary" formControlName="salary">
</mat-form-field>
</div>
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Points</mat-label>
<input matInput placeholder="Points" formControlName="points">
</mat-form-field>
</div>
<div fxLayout="row">
<mat-checkbox formControlName="isActive">Is Active?</mat-checkbox>
</div>
<div fxLayout="row">
<mat-form-field fxFlex>
<mat-label>Cost Centre</mat-label>
<mat-select placeholder="Cost Centre" formControlName="costCentre" name="CostCentre">
<mat-option *ngFor="let cs of costCentres" [value]="cs.id">
{{ cs.name }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<mat-form-field fxFlex>
<input matInput [matDatepicker]="joiningDate" (focus)="joiningDate.open()" placeholder="Joining Date"
formControlName="joiningDate" autocomplete="off">
<mat-datepicker-toggle matSuffix [for]="joiningDate"></mat-datepicker-toggle>
<mat-datepicker #joiningDate></mat-datepicker>
</mat-form-field>
<mat-form-field *ngIf="!item.isActive" fxFlex>
<input matInput [matDatepicker]="leavingDate" (focus)="leavingDate.open()" placeholder="Leaving Date"
formControlName="leavingDate" autocomplete="off">
<mat-datepicker-toggle matSuffix [for]="leavingDate"></mat-datepicker-toggle>
<mat-datepicker #leavingDate></mat-datepicker>
</mat-form-field>
</form>
</mat-card-content>
<mat-card-actions>
<button mat-raised-button color="primary" (click)="save()">Save</button>
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">Delete</button>
</mat-card-actions>
</mat-card>