@model ProductVariantAttributeCombinationModel @Html.ValidationSummary(false) @Html.HiddenFor(model => model.Id)@*otherwise we get a model state error*@ @if (ViewBag.RefreshPage == true) { }
@if (ViewBag.IsEdit) {
@Html.Raw(Html.TableFormattedVariantAttributes(Model.AttributesXml))
} else {
@Html.Partial("_ProductAttributes", Model.ProductVariantAttributes)
}
@if (!ViewBag.IsEdit) {
@if (Model.Warnings.Count > 0) {
@foreach (var warning in Model.Warnings) {

 @warning

}
}
}
@Html.SmartLabelFor(model => model.IsActive) @Html.EditorFor(model => model.IsActive) @Html.ValidationMessageFor(model => model.IsActive)

@Html.SmartLabelFor(model => model.AssignedPictureIds) @foreach (var x in Model.AssignablePictures) {
}
@Html.SmartLabelFor(model => model.Sku) @Html.EditorFor(model => model.Sku) @Html.ValidationMessageFor(model => model.Sku)
@Html.SmartLabelFor(model => model.ManufacturerPartNumber) @Html.EditorFor(model => model.ManufacturerPartNumber) @Html.ValidationMessageFor(model => model.ManufacturerPartNumber)
@Html.SmartLabelFor(model => model.Gtin) @Html.EditorFor(model => model.Gtin) @Html.ValidationMessageFor(model => model.Gtin)
@Html.SmartLabelFor(model => model.Price) @Html.EditorFor(model => model.Price) @Html.ValidationMessageFor(model => model.Price)
@Html.SmartLabelFor(model => model.DeliveryTimeId) @Html.DropDownListFor(model => model.DeliveryTimeId, Model.AvailableDeliveryTimes, T("Common.Unspecified")) @Html.ValidationMessageFor(model => model.DeliveryTimeId)
@Html.SmartLabelFor(model => model.BasePriceBaseAmount) @Html.EditorFor(model => model.BasePriceBaseAmount) @Html.ValidationMessageFor(model => model.BasePriceBaseAmount)
@Html.SmartLabelFor(model => model.BasePriceAmount) @Html.EditorFor(model => model.BasePriceAmount) @Html.ValidationMessageFor(model => model.BasePriceAmount)

@Html.SmartLabelFor(model => model.Length) @Html.EditorFor(model => model.Length) @Html.ValidationMessageFor(model => model.Length)
@Html.SmartLabelFor(model => model.Width) @Html.EditorFor(model => model.Width) @Html.ValidationMessageFor(model => model.Width)
@Html.SmartLabelFor(model => model.Height) @Html.EditorFor(model => model.Height) @Html.ValidationMessageFor(model => model.Height)

@Html.SmartLabelFor(model => model.StockQuantity) @Html.EditorFor(model => model.StockQuantity) @Html.ValidationMessageFor(model => model.StockQuantity)
@Html.SmartLabelFor(model => model.AllowOutOfStockOrders) @Html.EditorFor(model => model.AllowOutOfStockOrders) @Html.ValidationMessageFor(model => model.AllowOutOfStockOrders)