<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% Dictionary Fields = ViewData["Fields"] as Dictionary; if (Fields == null) { Fields = new Dictionary(); } bool renderAsAgency = (ViewData["renderAsAgency"] != null && (bool) ViewData["renderAsAgency"]); %>
> <%: Html.TextBoxFor(x => x.Latitude, new { @class = "text-input smallish-input latitudeField" })%> <%: Html.ValidationMessageFor(x => x.Latitude)%>
> <%:Html.TextBoxFor(x => x.Longitude, new { @class = "text-input smallish-input longitudeField" })%> <%: Html.ValidationMessageFor(x => x.Longitude)%>
> <%: Html.TextBoxFor(x => x.UtmEast, new { @class = "text-input smallish-input UtmX" })%> <%: Html.ValidationMessageFor(x => x.UtmEast)%>
> <%: Html.TextBoxFor(x => x.UtmNorth, new { @class = "text-input smallish-input UtmY" })%> <%: Html.ValidationMessageFor(x => x.UtmNorth)%>
> <%: Html.TextBoxFor(x => x.UtmZone, new { @class = "text-input smallish-input UtmZone" })%> <%: Html.ValidationMessageFor(x => x.UtmZone)%> Assumes northern hemisphere
> <%: Html.DropDownListFor(x => x.CollectionMethodCode, LookupUtility.Get(Model.CollectionMethodCode, SessionUtility.GetCurrentReportYear()).Select( m => new SelectListItem { Selected = (Model!=null && m.Code == Model.CollectionMethodCode), Value = m.Code, Text = string.Format("{0} - {1}", m.Code, m.Value) }), "", new { @class = "text-input full-input" })%> <%: Html.ValidationMessageFor(x => x.CollectionMethodCode)%>
> <%: Html.EditorFor(x => x.CollectionTime)%> <%: Html.ValidationMessageFor(x => x.CollectionTime)%>
> <%: Html.DropDownListFor(x => x.ReferencePointCode, LookupUtility.Get(Model.ReferencePointCode, SessionUtility.GetCurrentReportYear()).Select(m => new SelectListItem { Selected = (Model != null && m.Code == Model.ReferencePointCode), Value = m.Code, Text = string.Format("{0} - {1}", m.Code, m.Value) }), "", new { @class = "text-input full-input" })%> <%: Html.ValidationMessageFor(x => x.ReferencePointCode)%>
> <%:Html.DropDownListFor(x => x.ReferenceSystemCode, LookupUtility.Get(Model.ReferenceSystemCode, SessionUtility.GetCurrentReportYear()).Select(m => new SelectListItem { Selected = (Model != null && m.Code == Model.ReferenceSystemCode), Value = m.Code, Text = string.Format("{0} - {1}", m.Code, m.Value) }), "", new { @class = "text-input smallish-input" })%> <%: Html.ValidationMessageFor(x => x.ReferenceSystemCode)%>