Skip to content

Commit

Permalink
feat(CB2-14451): add tags to select
Browse files Browse the repository at this point in the history
  • Loading branch information
pbardy2000 committed Dec 4, 2024
1 parent b3fe7fe commit 096bae7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<div class="govuk-form-group-select">
<label for="{{ id }}" [id]="labelId">
<label tag for="{{ id }}" [id]="labelId">
{{ controlLabel }}
<ng-container *ngIf="tags?.length">
<div>
<app-tag *ngFor="let tag of tags" [type]="tag.colour">{{ tag.label }}</app-tag>
</div>
</ng-container>
</label>

<ng-container *ngIf="controlHint">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@

<ng-template #otherVehicleConfigurations>
<govuk-form-group-select
label="Vehicle configuration"
[tags]="[{ label: TagTypeLabels.REQUIRED, colour: TagType.RED }]"
[options]="vehicleConfigurationOptions"
formControlName="techRecord_vehicleConfiguration"
></govuk-form-group-select>
label="Vehicle configuration"
[tags]="[{ label: TagTypeLabels.REQUIRED, colour: TagType.RED }]"
[options]="vehicleConfigurationOptions"
formControlName="techRecord_vehicleConfiguration"
></govuk-form-group-select>
</ng-template>
</ng-container>

Expand Down

0 comments on commit 096bae7

Please sign in to comment.