Skip to content

Commit

Permalink
fix(admin-ui): Improve display of OrderLine custom fields in form
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Feb 12, 2025
1 parent 4595b40 commit 4e92d85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ <h4 class="card-title">{{ 'order.add-item-to-order' | translate }}</h4>
</button>
</div>
<ng-container *ngIf="orderLineCustomFields.length">
<div class="custom-field" *ngFor="let field of orderLineCustomFields">
<vdr-custom-field-control
[compact]="true"
[readonly]="false"
[customField]="field"
[customFieldsFormGroup]="customFieldsFormGroup"
></vdr-custom-field-control>
</div>
<vdr-tabbed-custom-fields
entityName="Order"
[customFields]="orderLineCustomFields"
[customFieldsFormGroup]="customFieldsFormGroup"
></vdr-tabbed-custom-fields>
</ng-container>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,12 @@
</div>
</div>
</div>
<div class="form-grid" *ngIf="addItemSelectedVariant">
<ng-container *ngFor="let customField of orderLineCustomFields">
<vdr-custom-field-control
[readonly]="!addItemSelectedVariant"
[customField]="customField"
[customFieldsFormGroup]="addItemCustomFieldsForm"
entityName="OrderLine"
[compact]="true"
></vdr-custom-field-control>
</ng-container>
<div *ngIf="addItemSelectedVariant">
<vdr-tabbed-custom-fields
entityName="Order"
[customFields]="orderLineCustomFields"
[customFieldsFormGroup]="addItemCustomFieldsForm"
></vdr-tabbed-custom-fields>
</div>
</div>
<div class="flex-spacer"></div>
Expand Down

0 comments on commit 4e92d85

Please sign in to comment.