22 lines
731 B
HTML
22 lines
731 B
HTML
<mat-form-field>
|
|
<mat-label>Path</mat-label>
|
|
<input name="path"
|
|
matInput
|
|
type="text"
|
|
placeholder="Pick a policy..."
|
|
[formControl]="policyControl"
|
|
[matAutocomplete]="auto" />
|
|
<mat-autocomplete #auto="matAutocomplete">
|
|
@for (option of filteredPolicies | async; track option.path) {
|
|
<mat-option [value]="option.path">
|
|
<p class="path">{{option.path}}</p>
|
|
<p class="description muted">{{option.description}}</p>
|
|
</mat-option>
|
|
}
|
|
</mat-autocomplete>
|
|
@if (policyControl.invalid && (policyControl.dirty || policyControl.touched)) {
|
|
@if (policyControl.hasError('required')) {
|
|
<small class="error">This field is required.</small>
|
|
}
|
|
}
|
|
</mat-form-field> |