@model IList @using Nop.Core.Domain.Catalog; @foreach (var attribute in Model) { string controlId = string.Format("address_attribute_{0}", attribute.Id); string 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: { //not support attribute type } break; } @if (attribute.IsRequired) { @Html.RequiredHint() }
}