@model IList @using SmartStore.Web.Framework; @using SmartStore.Core.Domain.Catalog; @if (Model.Count > 0) {
@foreach (var attribute in Model) { string controlId = string.Format("product_attribute_{0}_{1}", attribute.ProductAttributeId, attribute.Id);
@if (attribute.IsRequired) { * } @if (!string.IsNullOrEmpty(attribute.TextPrompt)) { @attribute.TextPrompt } else { @attribute.Name } @if (attribute.AttributeControlType == AttributeControlType.TextBox || attribute.AttributeControlType == AttributeControlType.FileUpload) {     } else {
} @switch (attribute.AttributeControlType) { case AttributeControlType.DropdownList: { } break; case AttributeControlType.RadioList: case AttributeControlType.ColorSquares: { foreach (var pvaValue in attribute.Values) { } } break; case AttributeControlType.Checkboxes: { foreach (var pvaValue in attribute.Values) { } } break; case AttributeControlType.TextBox: { } break; case AttributeControlType.MultilineTextbox: { } break; case AttributeControlType.Datepicker: { @Html.DatePickerDropDowns(controlId + "_day", controlId + "_month", controlId + "_year", DateTime.Now.Year, DateTime.Now.Year + 1) } break; case AttributeControlType.FileUpload: { } break; }
}
}