Source

main / Source / WebClient / Web.Client / Views / Document / Detail - Copy.cshtml

@model Microsoft.Research.Dcxl.Web.Client.ViewModel.DocumentDetailViewModel
@using System.Linq;
@using Microsoft.Research.Dcxl.Web.Client.Infrastructure;
@{
    ViewBag.Title = "Errors";

    string name = Helper.GetLoggedInUserName();
}

<script type="text/javascript">
    $(function () {
        $("#tabs").tabs();
    });
</script>
<section class="mainContainer homePage">
    <h2>
        Document details</h2>
    <div class="docfileHeader">
        <label class="exlFileNav">
            @Model.DocumentName</label>
        <label class="userName">
            @name</label>
        <label class="userNameWelcome">
            Welcome</label>
    </div>
    <div id="tabs" class="bluHeadrBox documentInfoBox">
        @*<header>*@
            <ul class="documentTab">
                <li><a href="#tabs-1">ERRORS @Model.DocumentSheetList.Select(ds => ds.DocumentErrors.Count()).Sum()</a></li>
                <li><a href="#tabs-2">METADATA</a></li>
                <li><a href="#tabs-3">CITIATION</a></li>
                <li><a>POST</a></li>
            </ul>
        @*</header>*@
        <!-- Start - Errors Tab -->
        <div id="tabs-1">
        tabs-1
            <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>
        </div>
        <!-- End - Errors Tab -->
        <!-- Start - Metadata Tab -->
        <div id="tabs-2">
        tabs-2
            <div class="docMetadataItmHolder MetadataTab">
                @foreach (var documentMetadata in Model.DocumentMetadataList)
                {
                    <div class="docMetadataElemHolder">
                        @Html.Label(documentMetadata.Label)
                        @Html.TextBox(documentMetadata.Value, new { maxlength = 50 })
                        @Html.ValidationMessage(documentMetadata.Value, "", new { @class = "mandtrField" })
                    </div>
                }
            </div>
        </div>
        <!-- End - Metadata Tab -->
        <!-- Start - Citation Tab -->
        <div id="tabs-3">
        tabs-3
            <div class="docCitiationHolder CitationTab">
                @Html.Label(Model.DocumentCitation.Label):&nbsp;@Html.Label(Model.DocumentCitation.Value)
            </div>
        </div>
        <!-- End - Citation Tab -->
    </div>
    <div class="btnHolder">
        <input type="button" value="Save" class="rFloat btnSave">
        <input type="button" value="back" class="rFloat btnBack">
    </div>
</section>