main / Source / WebClient / Web.Client / Views / Document / DocumentList.cshtml

@model DataUp.Web.Client.ViewModel.DocumentViewModel
@{
    Layout = null;
}
<div class="documentsDetails">
    @*<div class="infoText">
        Here is your workspace, with all your uploaded documents
    </div>*@
    <div class="bluHeadrBox documentDetailInfoBox">
        <header>
                <h2>
                    Uploaded Data Files</h2>
            </header>
        <div class="documentListTableContainer">
            @if (!Model.DocumentList.Any())
            {
                <div class="noDocumentsContainer">
                    <div class="patternBackground noDocuments">
                        <div style="color: #7a7a7a; margin: 10px;">
                            There are currently no data files uploaded
                        </div>
                    </div>
                </div>
            }
            else
            {
                <div id="DocumentList">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="docListTableHeader">
                        <tr class="gridHeader">
                            <th class="docListTableHeaderCol1">
                            Download
                            </th>
                            <th class="docListTableHeaderCol2">
                                File Name
                            </th>
                            <th class="docListTableHeaderCol4">
                                Size
                            </th>
                            <th class="docListTableHeaderCol5">
                                Date Uploaded
                            </th>
                            <th class="docListTableHeaderCol6">
                                Status
                            </th>
                            <th class="docListTableHeaderCol7">
                                Identifier
                            </th>
                            <th class="docListTableHeaderCol8">
                            Actions
                            </th>
                            <th class="docListTableHeaderCol9">
                            </th>
                        </tr>
                    </table>
                    <div class="documentListScroll">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="docListTableContent">
                            @foreach (var document in Model.DocumentList)
                            {
                                <tr>
                                    <td class="docListTableContentCol1">
                                        <a title="Download" href="@Url.Action("Download", "Document", new { id = document.ID })">
                                            <img src="../../Images/DragDropIconSmall.png" alt="download" class="borderless downloadButton" />
                                        </a>
                                    </td>
                                    <td class="docListTableContentCol2" title="@document.Filename">
                                        <div class="exlFileNavGlobel">
                                            @document.Filename</div>
                                    </td>
                                    <td class="docListTableContentCol4" title="@document.Size">
                                        @document.Size Byte
                                    </td>
                                    <td class="docListTableContentCol5" title="@document.UploadedOn.ToString()">
                                        @document.UploadedOn.ToString()
                                    </td>
                                    <td class="docListTableContentCol6" title="@document.Status">
                                        @document.Status
                                    </td>
                                    <td class="docListTableContentCol7" title="@document.Identifier">
                                        @document.Identifier
                                    </td>
                                    <td class="docListTableContentCol8">
                                        <input type="button" class="postingBtn" value="Post" />
                                        <input type="hidden" value="@document.ID" />
                                        <input type="hidden" class="fileName" value="@document.Filename" />
                                    </td>
                                    <td class="docListTableContentCol9">
                                        @using (Html.BeginForm("Delete", "Document", new { documentId = document.ID }, FormMethod.Post))
                                        {                                     
                                            @Html.AntiForgeryToken("DocumentDelete")
                                            <a errormessage="Are you sure you want to delete this file?" class="deleteLink browsButton grayBG" title="delete file">
                                                X</a>
                                        }
                                    </td>
                                </tr>
                            }
                        </table>
                    </div>
                </div>
            }
        </div>
    </div>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.