<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Change-Credentials.aspx.cs" Inherits="Axium.Web.Users.Change_Credentials" Title="Change Credentials" %>
<%@ Register TagPrefix="axi" TagName="Copyright" Src="~/PatientAccess/Controls/CopyrightControl.ascx" %>
<%@ Register TagPrefix="axi" TagName="Notification" Src="~/PatientAccess/Controls/Notification.ascx" %>

<%@ Import Namespace="Axium.Web.Code" %>
<%@ Register TagPrefix="axi" TagName="CredentialFull" Src="~/PatientAccess/Controls/CredentialsFullNoQuestion.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"/>
    <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/json2.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/utilities.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jqModal-r14.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/ui.datepicker.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery.maxlength-1.0.3.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery.timer.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/jquery.validate-1.19.2.min.js" type="text/javascript"></script>
    <script src="../Includes/Scripts/PA2.0/common.js" type="text/javascript"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
    <script src="../Includes/Scripts/PA2.0/pendo.js" type="text/javascript"></script>


    <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/changeCredentials.css"/>
    <link rel="stylesheet" href="../Includes/Css/PA2.0/common.css"/>

    <script type="text/javascript">
        //36732337 Hide any notification message
        $(document).ready(function () {
            $('input').on('keydown', function (e) {		// AX-24898.24919.2 .keydown(function (e) {
                $('.success').hide();
                $('.errorMsg').hide();
            });
            $('select').on('change', function () {     	// AX-24898.24919.2 .change(function () {
                $('.success').hide();
                $('.errorMsg').hide();
            });
            
            extendValidationCheck();
            parent.closeModalSpinner();
            setPageTitle("Change Username and Password", true);
        });
    </script>

</head>
<body>
<div id="containerId" class="container">
    <div id="FormContainer" runat="server" class="text-container">
        <form name="aspnetForm" method="post" action="Change-Credentials.aspx" id="Form1" runat="server" class="needs-validation" novalidate>
            <input id="hdnPatientId" type="hidden" runat="server"/>
            <axi:Notification ID="Notification" runat="server" />
            <div id="Credentials">
                <div class="form-container bg-white p-3">
                    <div id="content1" class="instructionMessage" runat="server"></div>
                    <div id="content2">
                        <axi:CredentialFull ID="Creds" runat="server"/>
                    </div>

                    <div id="ButtonDiv" class="buttonDiv">
                        <asp:Button ID="Update" runat="server" CssClass="btn btn-primary" AccessKey="l" OnClick="UpdateButton_Click"
                                    OnClientClick="parent.openModalSpinner()" EnableViewState="false" Text="Update"/>
                    </div>
                    <asp:PlaceHolder ID="AutoLogout" runat="server" Visible="false" EnableViewState="false"/>
                </div>
            </div>

        </form>
        <div class="mt-4">
            <axi:Copyright ID="Copyright" runat="server" />
        </div>
    </div>
</div>
</body>
</html>