Source

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

@model DataUp.Web.Client.ViewModel.DocumentDetailViewModel
@using DataUp.Web.Client.Infrastructure;
@{
    ViewBag.Title = "Detail";
    string name = Helper.GetLoggedInUserName();
    string fileType = @Model.IsPostAsXSL ? "XLSX" : "CSV";
}
<script src="@Url.Content("~/Scripts/detailv2.js")" type="text/javascript"></script>
<script type="text/C#">
    $(function () {
        $('#docId').val(@Model.DocumentId);
    });
</script>
<section class="mainContainer homePage">
    <div>
    <label >Post as @fileType</label>
    </div>
    <div class="docfileHeader">
        <label class="exlFileNav lFloat">
            @Model.DocumentName</label>
        <label class="info hide">
            Data has been modified please <a class="btnDetailSave" href="#">save</a> your changes</label>
    </div>
    <div class="patternBar">
    </div>
    <div class="documentInfoBox">
        <div class="progressBar">
            <div id="errorsId" class="step">
                <div class="active">
                    <span>
                        <label>
                            1</label></span>
                    <label class="text">
                        issues</label>
                </div>
            </div>
            <div class="arrow">
            </div>
            <div id="metadataId" class="step">
                <div class="normal">
                    <span>
                        <label>
                            2</label></span>
                    <label class="text">
                        metadata</label>
                </div>
            </div>
            <div class="arrow">
            </div>
            <div id="citationId" class="step">
                <div class="normal">
                    <span>
                        <label>
                            3</label></span>
                    <label class="text">
                        citation</label>
                </div>
            </div>
            <div class="arrow">
            </div>
            <div id="postId" class="step">
                <div class="normal">
                    <span>
                        <label>
                            4</label></span>
                    <label class="text">
                        post</label>
                </div>
            </div>
        </div>

        @using (Html.BeginForm("SaveDetail", "Document", FormMethod.Post, new { id = "saveDocumentDetail", postUrl = Url.Action("Post", "Document") }))
        {
            @Html.HiddenFor(m => m.DocumentId);
            @Html.HiddenFor(m => m.DocumentName);
            @Html.HiddenFor(m => m.IsPostAsXSL);
            @Html.AntiForgeryToken("SaveDocumentDetail");
            <div id="errosTab">
                 @{Html.RenderPartial("ErrorTab", Model);}
                 
            </div>

            <div id="metadataTab" style="display: none">
                 @{Html.RenderPartial("MetadataTab", Model);}
            </div>

            <div id="citationTab" style="display: none">
                @{Html.RenderPartial("CitationTab", Model);}
            </div>

            <div id="postTab" style="display: none">
                @{Html.RenderPartial("PostTab", Model);}
            </div>
        }
    </div>
    <!--GET IDENTIFIER Popup--------------------start-->
   <div id="loginRepositoryPopup" style="display: none;">
        <div class="popupWraper">
        </div>
        <div class="popupHolder repositoryPopup loginRepository">
            <h2>
                GET IDENTIFIER</h2>
            <div class="headLine">
            </div>
            <div class="infoText">
                Please provide repository details to get identifier
            </div>
            @using (Html.BeginForm("GetIdentifier", "Repository", FormMethod.Post))
            {
                @Html.AntiForgeryToken("GetIdentifier");
            <div class="elemContainer">
                <div class="elemItemsContainer">
                    <label>Repository&nbsp;Name<span style="color:Red">*</span></label>
                    @Html.DropDownListFor(m => m.SelectedRepositoryId, Model.AvailableRepositories, new { id = "repositories" })
                    @Html.Hidden("repositoryJson", Model.RepositoryTypesJson)
                </div>
                <div class="elemItemsContainer" style="display:none">
                    <label>Repository&nbsp;Type</label>
                    <input type="text" id="lblRepositoryType" readonly="readonly" />
                </div>
                 <span class="elemContainer credentials" style="display: none">
                <div class="elemItemsContainer">
                @*<label class="postLabel">Username<span>*</span></label>*@
                    <label>
                    user&nbsp;name <span style="color:Red">*</span></label>
                    @Html.TextBoxFor(m => m.UserName, new { maxlength = 100, id = "repositoryUsername" })
                    @Html.ValidationMessageFor(m => m.UserName, "* Required", new { @class = "mandtrField" })
                </div>
                <div class="elemItemsContainer">
                @*<label class="postLabel">Password<span>*</span></label>*@
                   <label>
                    password<span style="color:Red">*</span></label>
                    @Html.PasswordFor(m => m.Password, new { maxlength = 100, id = "repositoryPassword" })
                    @Html.ValidationMessageFor(m => m.Password, "* Required", new { @class = "mandtrField" })
                </div>
                </span>
                <div class="elemItemsContainer">
                    <label><input type="checkbox" class="chkAgreement" /> I Accept</label> 
                    <a href="#" class="userAgreeLink agreeLink"> User Agreement </a>
                    <textarea class="userAgreementDisplay agreeText identifierAgreementWidth" cols="1" rows="4" readonly="readonly" style="display:none"></textarea>
                </div>
                <div class="btnHolder identifierBtn">
                    <input type="button" value="OK" class="getIdentifier" />
                    <input type="button" value="Cancel" class="btnCancel" />
                </div>
                @Html.Hidden("userAgreementJson", Model.UserAgreementJson)
                <div id="usercredentialswrong" class="mandatory paddingTop5px" style="display:none">The entered details are incorrect,please try again.</div>
            </div>
            }
        </div>
    </div>
    <!--GET IDENTIFIER Popup--------------------End-->
    <!--File Post Success Popup--------------------start-->
    <div id="filePostSuccessPopup" style="display: none;">
        <div class="popupWraper">
        </div>
        <div class="popupHolder repositoryPopup filePostSuccessPopup">
            <div class="filePosted">
                <img src="@Url.Content("~/Images/SuccessImage.png")" />
                File Posted Successfully</div>
            <div style="border-top: 1px #CCCCCC solid; padding-top: 10px;" class="identifier"></div>
            <div class="popupButtonContainer">
                <a href="#" class="popupButton">OK </a>
            </div>
        </div>
    </div>
    <!---Remove Pop up------start--->
    <div id="RemovedPopup" style="display:none;">
    <div class="popupWraper">
        </div>
        <div class="errorHolder repositoryPopup fileRemoveError">
            <div class="fileDeleted">
                Removed successfully</div>
            <div class="RemoveButtonContainer">
                <a href="#" class="popupButton">OK</a>
            </div>
        </div>
        </div>
    <!--File Post Success Popup--------------------End-->
    <div class="btnHolder">
        <input type="submit" name="post" value="Post" class="rFloat detailBtnPost btnDetailPost" style="display: none" />
        <input type="button" value="Next" class="rFloat btnFinish">
        <input type="button" value="Cancel" class="rFloat btnCancel" onclick="javascript:window.location.href='@Url.Action("Index", "Document")'">
        <input type="button" value="Save" class="rFloat btnSave btnDetailSave">
        <input type="button" value="Back" class="rFloat btnBack" style="display: none">
    </div>
    <input type="hidden" id="docId" />
</section>
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.