|
|
@@ -62,57 +62,74 @@
|
|
|
></vdr-product-assets>
|
|
|
</div>
|
|
|
<div class="variant-form-inputs">
|
|
|
- <div class="variant-form-input-row">
|
|
|
- <div class="tax-category">
|
|
|
- <clr-select-container>
|
|
|
- <label>{{ 'catalog.tax-category' | translate }}</label>
|
|
|
- <select clrSelect name="options" formControlName="taxCategoryId">
|
|
|
- <option
|
|
|
- *ngFor="let taxCategory of taxCategories"
|
|
|
- [value]="taxCategory.id"
|
|
|
- >
|
|
|
- {{ taxCategory.name }}
|
|
|
- </option>
|
|
|
- </select>
|
|
|
- </clr-select-container>
|
|
|
+ <div class="standard-fields">
|
|
|
+ <div class="variant-form-input-row">
|
|
|
+ <div class="tax-category">
|
|
|
+ <clr-select-container>
|
|
|
+ <label>{{ 'catalog.tax-category' | translate }}</label>
|
|
|
+ <select clrSelect name="options" formControlName="taxCategoryId">
|
|
|
+ <option
|
|
|
+ *ngFor="let taxCategory of taxCategories"
|
|
|
+ [value]="taxCategory.id"
|
|
|
+ >
|
|
|
+ {{ taxCategory.name }}
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </clr-select-container>
|
|
|
+ </div>
|
|
|
+ <div class="price">
|
|
|
+ <clr-input-container>
|
|
|
+ <label>{{ 'catalog.price' | translate }}</label>
|
|
|
+ <vdr-currency-input
|
|
|
+ clrInput
|
|
|
+ [currencyCode]="variant.currencyCode"
|
|
|
+ formControlName="price"
|
|
|
+ ></vdr-currency-input>
|
|
|
+ </clr-input-container>
|
|
|
+ </div>
|
|
|
+ <vdr-variant-price-detail
|
|
|
+ [price]="formArray.get([i, 'price'])!.value"
|
|
|
+ [currencyCode]="variant.currencyCode"
|
|
|
+ [priceIncludesTax]="variant.priceIncludesTax"
|
|
|
+ [taxCategoryId]="formArray.get([i, 'taxCategoryId'])!.value"
|
|
|
+ ></vdr-variant-price-detail>
|
|
|
</div>
|
|
|
- <div class="price">
|
|
|
+ <div class="variant-form-input-row">
|
|
|
<clr-input-container>
|
|
|
- <label>{{ 'catalog.price' | translate }}</label>
|
|
|
- <vdr-currency-input
|
|
|
+ <label>{{ 'catalog.stock-on-hand' | translate }}</label>
|
|
|
+ <input
|
|
|
clrInput
|
|
|
- [currencyCode]="variant.currencyCode"
|
|
|
- formControlName="price"
|
|
|
- ></vdr-currency-input>
|
|
|
+ type="number"
|
|
|
+ min="0"
|
|
|
+ step="1"
|
|
|
+ formControlName="stockOnHand"
|
|
|
+ />
|
|
|
</clr-input-container>
|
|
|
+ <clr-checkbox-wrapper class="track-inventory-toggle">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ clrCheckbox
|
|
|
+ name="trackInventory"
|
|
|
+ formControlName="trackInventory"
|
|
|
+ />
|
|
|
+ <label>{{ 'catalog.track-inventory' | translate }}</label>
|
|
|
+ </clr-checkbox-wrapper>
|
|
|
</div>
|
|
|
- <vdr-variant-price-detail
|
|
|
- [price]="formArray.get([i, 'price'])!.value"
|
|
|
- [currencyCode]="variant.currencyCode"
|
|
|
- [priceIncludesTax]="variant.priceIncludesTax"
|
|
|
- [taxCategoryId]="formArray.get([i, 'taxCategoryId'])!.value"
|
|
|
- ></vdr-variant-price-detail>
|
|
|
</div>
|
|
|
- <div class="variant-form-input-row">
|
|
|
- <clr-input-container>
|
|
|
- <label>{{ 'catalog.stock-on-hand' | translate }}</label>
|
|
|
- <input
|
|
|
- clrInput
|
|
|
- type="number"
|
|
|
- min="0"
|
|
|
- step="1"
|
|
|
- formControlName="stockOnHand"
|
|
|
- />
|
|
|
- </clr-input-container>
|
|
|
- <clr-checkbox-wrapper class="track-inventory-toggle">
|
|
|
- <input
|
|
|
- type="checkbox"
|
|
|
- clrCheckbox
|
|
|
- name="trackInventory"
|
|
|
- formControlName="trackInventory"
|
|
|
- />
|
|
|
- <label>{{ 'catalog.track-inventory' | translate }}</label>
|
|
|
- </clr-checkbox-wrapper>
|
|
|
+ <div class="custom-fields">
|
|
|
+ <div class="variant-form-input-row">
|
|
|
+ <section formGroupName="customFields" *ngIf="customFields.length">
|
|
|
+ <!--<label>{{ 'common.custom-fields' | translate }}</label>-->
|
|
|
+ <ng-container *ngFor="let customField of customFields">
|
|
|
+ <vdr-custom-field-control
|
|
|
+ *ngIf="customFieldIsSet(i, customField.name)"
|
|
|
+ [compact]="true"
|
|
|
+ [customFieldsFormGroup]="formArray.at(i).get(['customFields'])"
|
|
|
+ [customField]="customField"
|
|
|
+ ></vdr-custom-field-control>
|
|
|
+ </ng-container>
|
|
|
+ </section>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|