>
<%--
<%: Html.DropDownList(
ctx,
new SelectList(Lists.SleisUserContactTypes)
as IEnumerable,
new { @class = "text-input small-input contact-type" }) %>
<%: Html.TextBox(ctx, "", new { @class = "text-input half-input", @maxlength = "255" })%>
--%>
<% for (int i = 0; i < Model.Contacts.Count; i++) { %>
">
<%: Html.DropDownListFor(
x => x.Contacts[i].Type,
new SelectList(Lists.SleisUserContactTypes, Model.Contacts[i].Type)
as IEnumerable
,
new { @class = "text-input small-input contact-type" }) %>
<%: Html.TextBoxFor(x => x.Contacts[i].Value, new { @class = "text-input half-input ", @maxlength = "255" })%>
<%: Html.ValidationMessageFor(x => x.Contacts[i].Type, null, new { @class = "contact-type-error" })%>
<%: Html.ValidationMessageFor(x => x.Contacts[i].Value)%>
<%:Html.HiddenFor(x => x.Contacts[i].Id)%>
<%:Html.HiddenFor(x => x.Contacts[i].Index, new { @value = i})%>
<%:Html.HiddenFor(x => x.Contacts[i].UserId, new { @value = Model.Person.Id })%>
<% } %>