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

Naethra D 3ee1b94 



















































@model DataUp.Web.Client.ViewModel.DocumentDetailViewModel
@using DataUp.Web.BizLogic.Model;
@{
    ViewBag.Title = "post to repository";   
}
<script type="text/javascript">
    $(function () {
        $('#postRepositories').change(function () {
            dataUp.validateUserNamePassword(window.repositoryList, $(this), 'docMetadataItmHolder', $("#postUsername"), $("#postPassword"), $(".btnHolder .btnDetailPost"));
        });
    });

</script>
<div class="screenInfoBox">
    <p>
        Submit your data to a repository for long-term archiving. If you do not have an
        existing relationship with any repository listed, select "ONEShare" to proceed.
    </p>
</div>
<div class="docMetadataItmHolder">
    <div class="docMetadataElemHolder marginbottom20">
        <label class="postLabel">
            Repository<span>*</span></label>
        @Html.DropDownListFor(m => m.SelectedRepositoryId, Model.AvailableRepositories, new { id = "postRepositories" })
    </div>
    <div class="docMetadataElemHolder marginbottom20" style="display: none">
        <label class="postLabel">
            Repository Type</label>
        <input type="text" id="lblRepositoryType" readonly="readonly" />
    </div>
    <span class="elemContainer credentials" style="display: none">
        <div class="docMetadataElemHolder marginbottom20">
            <label class="postLabel">
                Username<span>*</span></label>
            @Html.TextBoxFor(m => m.PostUserName, new { maxlength = 100, id = "postUsername" })
            @Html.ValidationMessageFor(m => m.PostUserName, "", new { @class = "mandtrField PostError" })
        </div>
        <div class="docMetadataElemHolder marginbottom20">
            <label class="postLabel">
                Password<span>*</span></label>
            @Html.PasswordFor(m => m.PostPassword, new { maxlength = 100, id = "postPassword" })
            @Html.ValidationMessageFor(m => m.PostPassword, "", new { @class = "mandtrField PostError" })
        </div>
    </span>
    <div class="docMetadataElemHolder marginbottom20">
        <label class="agreementLabel">
            <input type="checkbox" class="chkAgreement" />
            I Accept</label>
        <a href="#" class="userAgreeLink agreeLink">User Agreement </a>
        <textarea class="userAgreementDisplay agreeText" cols="1" rows="4" readonly="readonly"
            style="display: none"></textarea>
    </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.