feat: group actions (activate) (#1033)

Fixes: #1032
This commit is contained in:
Karan Takalkar
2020-07-08 17:10:50 +05:30
committed by GitHub
parent 0e69e8ea1e
commit f0a2978db5
9 changed files with 149 additions and 3 deletions
@@ -0,0 +1,30 @@
<div class="container">
<mat-card>
<form [formGroup]="activateGroupForm" (ngSubmit)="submit()">
<mat-card-content>
<mat-form-field fxFlex>
<mat-label>Activated On Date</mat-label>
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="activationDatePicker" required formControlName="activationDate">
<mat-datepicker-toggle matSuffix [for]="activationDatePicker"></mat-datepicker-toggle>
<mat-datepicker #activationDatePicker></mat-datepicker>
<mat-error *ngIf="activateGroupForm.controls.activationDate.hasError('required')">
Activated On Date is <strong>required</strong>
</mat-error>
</mat-form-field>
</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]="!activateGroupForm.valid">Confirm</button>
</mat-card-actions>
</form>
</mat-card>
</div>