Source

main-vinayFork / Source / WebClient / Web.Client / Views / Document / _Errors.cshtml

@model Microsoft.Research.Dcxl.Web.Client.ViewModel.DocumentDetailViewModel
@using System.Linq;
@using Microsoft.Research.Dcxl.Web.Client.Infrastructure;
@{
    ViewBag.Title = "Errors";
    Layout = "~/Views/Shared/_DocumentDetailLayoutPage.cshtml";
}
<div class="documentSubTabHolder">
    <ul class="documentSubTab">
        @for (int index = 0; index < Model.DocumentSheetList.Count(); index++)
        {
            var documentSheet = @Model.DocumentSheetList.ElementAt(index);

            if (index == 0)
            {
            <li><a class="active">@documentSheet.Name (@documentSheet.DocumentErrors.Count())</a></li>
            }
            else
            {
            <li><a>@documentSheet.Name (@documentSheet.DocumentErrors.Count())</a></li>
            }
        }
    </ul>
</div>
<div class="docRemovBtnHoldr">
    <a class="docRemovBtn">REMOVE SELECTED</a></div>
<div class="documentErorTableContainer">
    <table width="100%" border="0" cellspacing="0" cellpadding="1" class="documentErorTableHeader">
        <tr>
            <td class="documentErorTableContainerTD1">
                <input name="" type="checkbox" value="" class="documentTableChkBx">
            </td>
            <td class="documentErorTableContainerTD2">
                #
            </td>
            <td class="documentErorTableContainerTD3">
                TITLE
            </td>
            <td class="documentErorTableContainerTD4">
                DESCRIPTION
            </td>
            <td class="documentErorTableContainerTD5">
                RECOMMENDATION
            </td>
        </tr>
    </table>
    @if (Model.DocumentSheetList.Any())
    {
        foreach (var documentError in Model.DocumentSheetList.ElementAt(0).DocumentErrors)
        {
        <table width="100%" border="0" cellspacing="0" cellpadding="1" class="documentErorTableContainer">
            <tr>
                <td class="documentErorTableContainerTD1">
                    <input name="" type="checkbox" value="" class="documentTableChkBx">
                </td>
                <td class="documentErorTableContainerTD2">
                    #
                </td>
                <td class="documentErorTableContainerTD3">
                    @documentError.Title
                </td>
                <td class="documentErorTableContainerTD4">
                    @documentError.Description
                </td>
                <td class="documentErorTableContainerTD5">
                    @documentError.Recommendation
                </td>
            </tr>
        </table>
        }
    }
</div>