* Refractor components. * Add resolvers. * Add relative router links. * Replace mat-icons by font-awesome icons. * Add comments. Fixes: #298
38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<div class="container">
|
|
|
|
<mat-card>
|
|
|
|
<form [formGroup]="periodicAccrualsForm" (ngSubmit)="submit()">
|
|
|
|
<mat-card-content>
|
|
|
|
<div fxLayout="row">
|
|
|
|
<mat-form-field fxFlex>
|
|
<mat-label>Accrue Till Date</mat-label>
|
|
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="tillDatePicker" required formControlName="tillDate">
|
|
<mat-datepicker-toggle matSuffix [for]="tillDatePicker"></mat-datepicker-toggle>
|
|
<mat-datepicker #tillDatePicker></mat-datepicker>
|
|
<mat-error *ngIf="periodicAccrualsForm.controls.tillDate.hasError('required')">
|
|
Accrue Date is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
|
|
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
|
|
<button mat-raised-button color="primary" [disabled]="!periodicAccrualsForm.valid">
|
|
<fa-icon icon="play"></fa-icon>
|
|
Run Periodic Accruals
|
|
</button>
|
|
</mat-card-actions>
|
|
|
|
</form>
|
|
|
|
</mat-card>
|
|
|
|
</div>
|