<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% Dictionary Fields = ViewData["Fields"] as Dictionary; if (Fields == null) { Fields = new Dictionary(); } string ctx = ViewData["EditorContext"] as string; if (String.IsNullOrEmpty(ctx)) { ctx = String.Empty; } string sectionHeader = ViewData["SectionHeader"] as string; %> <%:Html.HiddenFor(x=>x.Id) %> <%:Html.HiddenFor(x=>x.FacilityId) %>
> <%= sectionHeader %>
> <%: Html.TextBoxFor(x => x.StreetLine1, new { @class = "text-input small-full-input" })%> <%: Html.ValidationMessageFor(x => x.StreetLine1) %>
> <%: Html.TextBoxFor(x => x.StreetLine2, new { @class = "text-input small-full-input" })%> <%: Html.ValidationMessageFor(x => x.StreetLine2)%>
> <%: Html.TextBoxFor(x => x.City, new { @class = "text-input small-full-input" })%> <%: Html.ValidationMessageFor(x => x.City)%>
> <%: Html.DropDownListFor(x => x.State, new SelectList(LookupUtility.Get(), "Code", "Value", Model!=null ? Model.State : ""), "", new { @class = "text-input small-full-input" })%> <%: Html.ValidationMessageFor(x => x.State)%>
> <%: Html.TextBoxFor(x => x.Zip, new { @class = "text-input small-full-input" })%> <%: Html.ValidationMessageFor(x => x.Zip)%>