@model IList @using SmartStore.Core.Domain.Catalog; @if (Model.Count > 0) {
@foreach (var attribute in Model) { string controlId = string.Format("checkout_attribute_{0}", attribute.Id); string textPrompt = !string.IsNullOrEmpty(attribute.TextPrompt) ? attribute.TextPrompt : attribute.Name;
@switch (attribute.AttributeControlType) { case AttributeControlType.DropdownList: { } break; case AttributeControlType.RadioList: { foreach (var caValue in attribute.Values) { } } break; case AttributeControlType.Checkboxes: { foreach (var caValue 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) } break; case AttributeControlType.FileUpload: { } break; }
}
}