@model IList @using SmartStore.Web.Models.Catalog; @using SmartStore.Core.Domain.Catalog; @using SmartStore.Core.Infrastructure; @using SmartStore.Core; @using System.Text; @using System.Globalization; @using SmartStore.Services.Customers; @using SmartStore.Services.Security; @using SmartStore.Web; @{ var hidePrices = !EngineContext.Current.Resolve().Authorize(StandardPermissionProvider.DisplayPrices); } @if (Model.Count > 0) {
@foreach (var attribute in Model) { string controlId = string.Format("product_attribute_{0}_{1}_{2}_{3}", attribute.ProductId, attribute.BundleItemId, attribute.ProductAttributeId, attribute.Id); string textPrompt = !string.IsNullOrEmpty(attribute.TextPrompt) ? attribute.TextPrompt : attribute.Name; string disabled = (attribute.IsDisabled ? " disabled=\"disabled\"" : null);
@textPrompt @if (attribute.IsRequired) { * } @if (!string.IsNullOrEmpty(attribute.Description)) {
@Html.Raw(attribute.Description)
}
@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, attribute.SelectedDay, attribute.SelectedMonth, attribute.SelectedYear, true, attribute.IsDisabled) } break; case AttributeControlType.FileUpload: { } break; }
}
}