@model IList @using Nop.Core.Domain.Catalog; @foreach (var attribute in Model) { var controlId = attribute.ControlId; var textPrompt = attribute.Name;
@switch (attribute.AttributeControlType) { case AttributeControlType.DropdownList: { } break; case AttributeControlType.RadioList: { } break; case AttributeControlType.Checkboxes: case AttributeControlType.ReadonlyCheckboxes: { } break; case AttributeControlType.TextBox: { } break; case AttributeControlType.MultilineTextbox: { } break; case AttributeControlType.Datepicker: case AttributeControlType.FileUpload: case AttributeControlType.ColorSquares: case AttributeControlType.ImageSquares: { //not support attribute type } break; } @if (attribute.IsRequired) { }
}