<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="~/PatientAccess/PasswordResetConfirmV2.aspx.cs" Inherits="Axium.Web.PasswordResetConfirmV2" Title="Change Password" %>
<%@ Register TagPrefix="axi" TagName="CredentialReset" Src="~/PatientAccess/Controls/CredentialsResetPasswordV2.ascx" %>
<%@ Register TagPrefix="axi" TagName="LogoImage" Src="~/PatientAccess/Controls/LogoImageControl.ascx" %>
<%@ Register TagPrefix="axi" TagName="ModalSpinner" Src="~/PatientAccess/Controls/ModalSpinner.ascx" %>
<%@ Register TagPrefix="axi" TagName="Copyright" Src="~/PatientAccess/Controls/CopyrightControl.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
    <title></title>

    <meta http-equiv="X-UA-Compatible" content="IE=8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"/>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous" />
    <link rel="stylesheet" href="Includes/css/selfRegistration.css"/>
    <link rel="stylesheet" href="Includes/Css/PA2.0/common.css"/>
    <link rel="stylesheet" href="Includes/Css/PA2.0/getOneTimeCode.css"/>

    <script src="Includes/Scripts/jquery-3.5.1.min.js" type="text/javascript"></script>
    <script src="Includes/Scripts/jquery-migrate-3.3.2.min.js" type="text/javascript"></script>
    <script src="Includes/Scripts/jquery.validate-1.19.2.min.js" type="text/javascript"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" type="text/javascript" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
    <script src="Includes/Scripts/PA2.0/common.js" type="text/javascript"></script>
    <script src="Includes/Scripts/PA2.0/getOneTimeCode.js" type="text/javascript"></script>
    <script src="Includes/Scripts/PA2.0/pendo.js" type="text/javascript"></script>

</head>
<body>
<form name="aspnetForm" method="post" action="PasswordResetConfirmV2.aspx" id="aspnetForm" runat="server" class="needs-validation" novalidate>
    <asp:HiddenField ID="HdnLogoImgTopPosition" runat="server" ClientIDMode="Static" />
    <axi:ModalSpinner ID="ModalSpinner" runat="server"/>
    <div id="containerId" class="container">

        <div class="otp-main-content">

            <div class="university-logo-container">
                <axi:LogoImage ID="LogoImage1" runat="server" CssImage="university-logo"/>
            </div>

            <div id="RegisterFormContainer" runat="server" class="text-container">

                <asp:HiddenField ID="IsOtp" runat="server" />
            
                <div id="Credentials" class="pt-0">
                    <div id="PageTitle" runat="server" class="text-register-access">
                        Create New Password
                    </div>
                    <div id="content1" runat="server" class="description">
                        <b>Step 4:</b>&nbsp;Create a new password for your account.
                    </div>
                    <div id="content2" runat="server">
                        <axi:CredentialReset ID="Creds" runat="server"/>
                    </div>
                    <input id="HdnId" type="hidden" runat="server"/>
                    <asp:PlaceHolder ID="AutoLogout" runat="server" Visible="false" EnableViewState="false"/>
                </div>

                <div class="text-center w-100">
                    <asp:Button ID="UpdateDesktopBtn" CssClass="btn btn-pa btn-primary desktop-submit-btn HideOnMobile" runat="server" Text="Save" OnClick="UpdateButton_Click" EnableViewState="false"/>
                </div>

                <asp:Literal ID="Notifications" runat="server" Visible="false" EnableViewState="false"/>
                <div class="validationError validation">
                    <ul>
                    </ul>
                </div>

            </div>

        </div>

        <div id="ButtonDiv" class="buttons mx-3 mt-4">
            <asp:Button ID="Update" runat="server" CssClass="btn btn-pa btn-primary confirm-update-btn w-100 ShowOnMobile" AccessKey="l" OnClick="UpdateButton_Click" EnableViewState="false" Text="Save"/>
        </div>

        <axi:Copyright ID="Copyright" runat="server" />

    </div>
</form>

<div class="HideOnMobile">
    <div id="welcomeIfrmId" class="welcome-iframe-box">
        <iframe class="welcome-iframe" src='/PatientAccess/WelcomeToPA.aspx'></iframe>
    </div>
</div>

<script type="text/javascript">
    //36732337 Hide any notification message
    $(document).ready(function () {
        $('input').on('keydown', function (e) {
            $('.success').hide();
            $('.errorMsg').hide();
        });
        $('select').on('change', function () {
            $('.success').hide();
            $('.errorMsg').hide();
        });
        
        extendValidationCheck();
    });

    // AX-25635 Refresh Default Page
    function RefreshParentDefault() {
        window.parent.location.href = '/PatientAccess/Default.aspx';
    }
        
</script>
</body>
</html>