feat: shares account actions (apply-shares) (#902)

Fixes: #901
This commit is contained in:
Karan Takalkar
2020-06-24 02:38:13 +05:30
committed by GitHub
parent 96144d4447
commit 4b36a60517
15 changed files with 231 additions and 33 deletions
@@ -0,0 +1,47 @@
<div class="container">
<mat-card>
<form [formGroup]="applySharesForm" (ngSubmit)="submit()">
<mat-card-content>
<div fxLayout="column">
<mat-form-field>
<mat-label>Request Date</mat-label>
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="requestedDatePicker" required formControlName="requestedDate">
<mat-datepicker-toggle matSuffix [for]="requestedDatePicker"></mat-datepicker-toggle>
<mat-datepicker #requestedDatePicker></mat-datepicker>
<mat-error *ngIf="applySharesForm.controls.requestedDate.hasError('required')">
Request Date is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Total No. of Shares</mat-label>
<input matInput required formControlName="requestedShares">
<mat-error *ngIf="applySharesForm.controls.requestedShares.hasError('required')">
Requested Shares is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Today's Price</mat-label>
<input matInput required formControlName="unitPrice">
</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="accent" [disabled]="!applySharesForm.valid">Confirm</button>
</mat-card-actions>
</form>
</mat-card>
</div>