-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1356 from bcgov/feature/ALCS-1579
Fixes for Decisions Components
- Loading branch information
Showing
4 changed files
with
47 additions
and
37 deletions.
There are no files selected for viewing
78 changes: 44 additions & 34 deletions
78
...put/decision-components/decision-component/incl-excl-input/incl-excl-input.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,47 @@ | ||
<form [formGroup]="form"> | ||
<div class="grid"> | ||
<mat-form-field appearance="outline"> | ||
<mat-label>ALR Area Impacted (ha)</mat-label> | ||
<input | ||
matInput | ||
min="0.01" | ||
mask="separator.5" | ||
thousandSeparator="," | ||
separatorLimit="9999999999" | ||
formControlName="alrArea" | ||
required | ||
/> | ||
</mat-form-field> | ||
<ng-container *ngIf="form"> | ||
<form [formGroup]="form"> | ||
<div class="grid"> | ||
<mat-form-field appearance="outline"> | ||
<mat-label>ALR Area Impacted (ha)</mat-label> | ||
<input | ||
matInput | ||
min="0.01" | ||
mask="separator.5" | ||
thousandSeparator="," | ||
separatorLimit="9999999999" | ||
formControlName="alrArea" | ||
required | ||
/> | ||
</mat-form-field> | ||
|
||
<mat-form-field appearance="outline" class="date-picker"> | ||
<mat-label>Expiry Date</mat-label> | ||
<input | ||
matInput | ||
(click)="expiryDatePicker.open()" | ||
[matDatepicker]="expiryDatePicker" | ||
formControlName="expiryDate" | ||
name="date" | ||
/> | ||
<mat-datepicker-toggle matSuffix [for]="expiryDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #expiryDatePicker type="date"></mat-datepicker> | ||
</mat-form-field> | ||
<mat-form-field appearance="outline" class="date-picker"> | ||
<mat-label>Expiry Date</mat-label> | ||
<input | ||
matInput | ||
(click)="expiryDatePicker.open()" | ||
[matDatepicker]="expiryDatePicker" | ||
formControlName="expiryDate" | ||
name="date" | ||
/> | ||
<mat-datepicker-toggle matSuffix [for]="expiryDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #expiryDatePicker type="date"></mat-datepicker> | ||
</mat-form-field> | ||
|
||
<div class="full-width"> | ||
<mat-label class="toggle-label">Applicant Type*</mat-label> | ||
<mat-button-toggle-group required id="isFirstNation" formControlName="applicantType" name="isFirstNation"> | ||
<mat-button-toggle value="Land Owner">Land Owner</mat-button-toggle> | ||
<mat-button-toggle value="L/FNG Initiated">L/FNG Initiated</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
<div class="full-width"> | ||
<mat-label class="toggle-label">Applicant Type*</mat-label> | ||
<mat-button-toggle-group | ||
required | ||
id="isFirstNation" | ||
formControlName="applicantType" | ||
name="isFirstNation" | ||
[ngClass]="{ | ||
'error-field-outlined': !form.controls['applicantType'].valid && form.controls['applicantType'].touched | ||
}" | ||
> | ||
<mat-button-toggle value="Land Owner">Land Owner</mat-button-toggle> | ||
<mat-button-toggle value="L/FNG Initiated">L/FNG Initiated</mat-button-toggle> | ||
</mat-button-toggle-group> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</form> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters