main / Source / WebService / Web.Admin / Views / Home / _RepositoryList.cshtml

@model DataUp.Web.Admin.ViewModel.RepositoryListViewModel
@using DataUp.Web.Admin
@{
    Layout = null;
}

<script type="text/javascript">
$(function () {
        $(".btnAddList").bind("click", function () {
            $('#repositoryId').val('0');
            $.post('/Home/Get', { repositoryId: 0 }, function (returnedList) {
                $("#editRepoPopUp").html(returnedList);
                $(".editListPopUp").show();
                admin.validateType($('#repositoryTypeId'));
            });
        });
    });
</script>

<div class="mainContainer">
<div class="infoBox">Welcome to the DataUp repository onboarding page. You can click the Add button below to add your repository to the list that is selectable by DataUp users. 
If you are adding a ONEShare repository you will need to provide a default username and password. For all other repositories, users will be prompted for their credential prior to uploading their data. </div>

<div>
      <input type="button" class="rFloat btnAddList" value="Add Repository" />
    </div>
    <div class="bluHeadrBox">
        <header>
        <h2>List of Repositories</h2>
      </header>
              <div class="adminRespHolder">
            @if (!Model.RepositoriesList.Any())
            {
                <div class="noDocumentsContainer">
                    <div class="patternBackground noDocuments">
                        <div style="color: #c96565; margin: 10px;">
                            Add new Repositories
                        </div>
                    </div>
                </div>
            }
            else
            {
                <div class="adminRespHolder">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="respAdminTblHdr">
                        <tr >
                            <td class="respName">
                                Repository Name
                            </td>
                            <td class="respType">
                                Repository Type
                            </td>
                            <td class="respID">
                                Get Identifier URL
                            </td>
                            <td class="respGet">
                                Post File URL
                            </td>
                             <td class="userAgreementTD">
                                User Agreement
                            </td>
                            <td class="userNameTD">
                                User Name
                            </td>
                            <td class="createdByTD">
                                Created By
                            </td>
                            <td class="respEdit">
                            Actions
                            </td>
                        </tr>
                    </table>
                    <div class="respAdminTblScroll">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="respAdminTblCntr">
                            @foreach (var repository in Model.RepositoriesList)
                            {
                                <tr>
                                    <td class="respName"  title="@repository.RepositoryName">
                                        @repository.RepositoryName
                                    </td>
                                    <td class="respType"  title="@repository.RepositoryType">
                                        @repository.RepositoryType
                                    </td>
                                    <td class="respID" title="@repository.IdentifierUrl">
                                        @repository.IdentifierUrl
                                    </td>
                                    <td class="respGet" title="@repository.PostFileUrl">
                                        @repository.PostFileUrl
                                    </td>
                                    <td title="@repository.UserAgreement" class="userAgreementTD">
                                        <textarea readonly="readonly" cols="1" rows="3" style="width:100%">@repository.UserAgreement</textarea>
                                    </td>

                                    <td class="userNameTD" title="@repository.UserName">
                                        @repository.UserName
                                    </td>
                                     <td class="createdByTD" title="@repository.CreatedBy">
                                       @repository.CreatedBy
                                    </td>
                                    <td class="respEdit">
                                        @using (Html.BeginForm("Get", "Home", FormMethod.Post))
                                        {   
                                            <a href="#" class="editSquareGrayBtn editReposLink" title="Edit Record"> </a> 
                                            <input type="hidden" value="@repository.RepositoryId" />
                                        }
                                        @using (Html.BeginForm("Delete", "Home", new { repositoryId = repository.RepositoryId }, FormMethod.Post))
                                        {   
                                            <a errormessage="Are you sure you want to delete this document?" class="closeSquareGrayBtn deleteReposLink" title="Delete Record"></a>
                                            <input type="hidden" value="@repository.RepositoryId" />
                                        }
                                    </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.