Moved from tslint to eslint as tslint was depreciated.
Added prettier and also prettied all the typescript files using prettier ESLint is using the AirBnB rules which are the most strict to lint the files.
This commit is contained in:
@@ -1,40 +1,45 @@
|
||||
<mat-card>
|
||||
<mat-card-title-group>
|
||||
<mat-card-title>Employee</mat-card-title>
|
||||
<mat-icon matSuffix (click)="item.isStarred = !item.isStarred" class="pointer" [class.gold]="item.isStarred">
|
||||
{{ item.isStarred ? 'star' : 'star_border' }}
|
||||
</mat-icon>
|
||||
<mat-icon
|
||||
matSuffix
|
||||
(click)="item.isStarred = !item.isStarred"
|
||||
class="pointer"
|
||||
[class.gold]="item.isStarred"
|
||||
>
|
||||
{{ item.isStarred ? 'star' : 'star_border' }}
|
||||
</mat-icon>
|
||||
</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">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<input matInput placeholder="Points" formControlName="points" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxLayout="row">
|
||||
@@ -51,14 +56,26 @@
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<mat-form-field fxFlex>
|
||||
<input matInput [matDatepicker]="joiningDate" (focus)="joiningDate.open()" placeholder="Joining Date"
|
||||
formControlName="joiningDate" autocomplete="off">
|
||||
<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">
|
||||
<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>
|
||||
@@ -66,6 +83,8 @@
|
||||
</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>
|
||||
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
|
||||
Delete
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
||||
Reference in New Issue
Block a user