<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl>" %> <% string ctx = ViewData["EditorContext"] as string; if (String.IsNullOrEmpty(ctx)) { ctx = String.Empty; } %>
<% if (Model != null && Model.Count > 0) { for (int i = 0; i < Model.Count; i++) {%> > <%:Html.Hidden("AlternateNames.Index", i)%> <%} %> <% } %>
> > > > Actions
> <%:Html.TextBox("AlternateNames[%Index%].Name", "", new{@class=" text-input full-input" })%> <%:Html.ValidationMessage("AlternateNames[%Index%].Name")%> <%:Html.Hidden("AlternateNames.Index", "", new { @class = "alternateName_index" })%> > <%:Html.DropDownList("AlternateNames[%Index%].ProgramSystemCode", new SelectList(LookupUtility.Get(), "Code", "CodeDescription"), "", new { @class = "full-input" })%> <%:Html.ValidationMessage("AlternateNames[%Index%].ProgramSystemCode")%> > <%:Html.DropDownList("AlternateNames[%Index%].NameType", EnumUtility.CreateSelectList(), "", new { @class = "full-input" })%> <%:Html.ValidationMessage("AlternateNames[%Index%].NameType")%> > <%:Html.TextBox("AlternateNames[%Index%].EffectiveDate", "", new { @class = "text-input short-input templateCal dateVal" })%> <%:Html.ValidationMessage("AlternateNames[%Index%].EffectiveDate")%>
> <%:Html.TextBox("AlternateNames[" + i + "].Name", Model[i].Name, new { @class = " text-input full-input" })%> <%:Html.ValidationMessage("AlternateNames[" + i + "].Name")%> > <%:Html.DropDownList("AlternateNames[" + i + "].ProgramSystemCode", new SelectList(LookupUtility.Get(), "Code", "CodeDescription", Model[i].ProgramSystemCode), "", new { @class = "full-input" })%> <%:Html.ValidationMessage("AlternateNames[" + i + "].ProgramSystemCode")%> > <%:Html.DropDownList("AlternateNames[" + i + "].NameType", EnumUtility.CreateSelectList(Model[i].NameType), new { @class = "full-input" })%> <%:Html.ValidationMessage("AlternateNames[" + i + "].NameType")%> > <%:Html.TextBox("AlternateNames[" + i + "].EffectiveDate", HtmlUtility.Format(Model[i].EffectiveDate), new { @class = "text-input short-input showAsCal dateVal" })%> <%:Html.ValidationMessage("AlternateNames[" + i + "].EffectiveDate")%>