@using Resources @using PagedList.Mvc @using PagedList @model IEnumerable @{ ViewBag.Title = Resource.StaticLabelPCRList; Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml"; }

@Resource.StaticLabelPCRList


@Html.ActionLink(Resource.StaticLabelGlobal_New, "Edit", new { id = 0 }, new { @class = "btn btn-default" })
@foreach (var item in Model) { }
@Resource.PcrName @Html.DisplayNameFor(model => model.Percentage) @Html.DisplayNameFor(model => model.version) @Resource.ProductLcaCount
@Html.DisplayFor(modelItem => item.DisplayName) @Html.DisplayFor(modelItem => item.Percentage) @Html.DisplayFor(modelItem => item.version) @item.ProductLCAs.Count() @Html.ActionLink(Resource.StaticLabelGlobal_Edit, "Edit", new { id = item.ID }, new { @class = "btn btn-xs btn-default" }) @if (item.ProductLCAs.Count() == 0) { @Html.ActionLink(Resource.StaticLabelGlobal_Delete, "Delete", new { id = item.ID }, new { @class = "btn btn-xs btn-default" })@: } @Html.ActionLink(Resource.StaticLabelGlobal_New, "Edit", new { id = 0, copyfrom = item.ID }, new { @class = "btn btn-xs btn-default" })
@Html.PagedListPager((IPagedList)Model, page => Url.Action("index", new { page }))