Skip to content

Commit

Permalink
fix: Add required asterisks for permission form (#19681)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrozdsap authored Dec 3, 2024
1 parent 287bc44 commit afb32e1
Showing 1 changed file with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
*ngIf="(types$ | async)?.length"
[formGroup]="$any(form.get('orderApprovalPermissionType'))"
>
<span class="label-content required">{{
'orgPurchaseLimit.orderApprovalPermissionType' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'orgPurchaseLimit.orderApprovalPermissionType' | cxTranslate }}
<ng-template [ngTemplateOutlet]="requiredAsterisk"></ng-template>
</span>
<ng-select
[inputAttrs]="{ required: 'true' }"
formControlName="code"
Expand Down Expand Up @@ -68,9 +69,10 @@
</label>

<label *ngIf="form.get('periodRange')">
<span class="label-content required">{{
'orgPurchaseLimit.periodRange' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'orgPurchaseLimit.periodRange' | cxTranslate }}
<ng-template [ngTemplateOutlet]="requiredAsterisk"></ng-template>
</span>
<ng-select
[inputAttrs]="{ required: 'true' }"
formControlName="periodRange"
Expand Down Expand Up @@ -101,9 +103,10 @@
*ngIf="form.get('currency')"
[formGroup]="$any(form.get('currency'))"
>
<span class="label-content required">{{
'orgPurchaseLimit.currency' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'orgPurchaseLimit.currency' | cxTranslate }}
<ng-template [ngTemplateOutlet]="requiredAsterisk"></ng-template>
</span>
<ng-select
*ngIf="currencies$ | async as currencies"
[inputAttrs]="{ required: 'true' }"
Expand Down Expand Up @@ -133,9 +136,10 @@
</label>

<label *ngIf="form.get('threshold')">
<span class="label-content required">{{
'orgPurchaseLimit.threshold' | cxTranslate
}}</span>
<span class="label-content required">
{{ 'orgPurchaseLimit.threshold' | cxTranslate }}
<ng-template [ngTemplateOutlet]="requiredAsterisk"></ng-template>
</span>
<input
class="form-control"
type="number"
Expand Down

0 comments on commit afb32e1

Please sign in to comment.