<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl>" %>
<%if (Model!=null && Model.Count > 0 && Model[0] is AgencyFacilityIdentifierModel) { %> <%} %> <% if (Model!= null && Model.Count > 0) { for (int i = 0; i < Model.Count; i++) {%> > <%:Html.Hidden("Identifiers.Index", i)%> <%if (Model[i] is AgencyFacilityIdentifierModel) { %> <% } %> <% } %> <% } %>
> >County/State FIPS> Actions
> <%:Html.TextBox("Identifiers[%Index%].IdentifierText", "", new { @class = "text-input full-input" })%> <%:Html.ValidationMessage("Identifiers[%Index%].Identifier")%> <%:Html.Hidden("Identifiers.Index", "", new { @class = "identifier_index" })%> > <%:Html.DropDownList("Identifiers[%Index%].ProSysCode", new SelectList(LookupUtility.Get(), "Code", "CodeDescription"), "", new { @class = "full-input" })%> <%:Html.ValidationMessage("Identifiers[%Index%].ProSysCode")%> > <%:Html.DropDownList("Identifiers[%Index%].CountyStateFips", new SelectList(LookupUtility.Get().OrderBy(x=>x.Value), "Code", "CodeDescription"), "", new { @class = "full-input" })%> <%:Html.ValidationMessage("Identifiers[%Index%].CountyStateFips")%> > <%:Html.TextBox("Identifiers[%Index%].EffectiveDate", "", new { @class = "text-input short-input templateCal dateVal" })%> <%:Html.ValidationMessage("Identifiers[%Index%].EffectiveDate")%>
> <%=Html.TextBox("Identifiers[" + i + "].IdentifierText", Model[i].IdentifierText, new { @class = "text-input full-input" })%> <%:Html.ValidationMessage("Identifiers[" + i + "].IdentifierText")%> > <%:Html.DropDownList("Identifiers[" + i + "].ProSysCode", new SelectList(LookupUtility.Get(), "Code", "CodeDescription", Model[i].ProSysCode), new { @class = "full-input" })%> <%:Html.ValidationMessage("Identifiers[" + i + "].ProSysCode")%> > <%:Html.DropDownList("Identifiers[" + i + "].CountyStateFips", new SelectList(LookupUtility.Get().OrderBy(x => x.Value), "Code", "CodeDescription", ((AgencyFacilityIdentifierModel)Model[i]).CountyStateFips), new { @class = "full-input" })%> <%:Html.ValidationMessage("Identifiers[" + i + "].CountyStateFips")%> > <%:Html.TextBox("Identifiers[" + i + "].EffectiveDate", HtmlUtility.Format(Model[i].EffectiveDate), new { @class = "text-input short-input showAsCal dateVal" })%> <%:Html.ValidationMessage("Identifiers[" + i + "].EffectiveDate")%>