<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% int year = (int)ViewData["Year"]; %> <% Dictionary Fields = ViewData["Fields"] as Dictionary; if (Fields == null) { Fields = new Dictionary(); } %>
> <%--
--%>
<%for(int i=0; i
<% string desc = "text-input full-input pollutant-description" + i;%>
<%:Html.TextBoxFor(x => x.Pollutants[i].Code, new { @class = "text-input smaller-full-input pollutant-type", @title = "Begin typing..." })%> <%:Html.ValidationMessageFor(x => x.Pollutants[i].Code)%>
<%:Html.TextBoxFor(x => x.Pollutants[i].Efficency, new { @class = "text-input smaller-full-input pollutant-efficency" })%>
<%SimpleLookupItem item = LookupUtility.Get(Model.Pollutants[i].Code); %> <%:Html.TextBox("", item == null ? string.Empty : item.Value, new { @class = desc, @disabled = "disabled", @style = "border:1px solid white; background:#D5D5D5;" })%>
<%:Html.ValidationMessageFor(x => x.Pollutants[i].Efficency, null, new { @style="margin-left:14%;" } )%> <%:Html.HiddenFor(x => x.Pollutants[i].Code, new { @class = "hidden-code" + i })%> <%:Html.HiddenFor(x => x.Pollutants[i].Id)%> <%:Html.HiddenFor(x => x.Pollutants[i].ControlDeviceId)%>
<%} %>