<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/eLogin.master" AutoEventWireup="true"
    CodeBehind="ResetPassword.aspx.cs" Inherits="WebSite.ResetPassword" %>

<%@ Register Src="~/Controls/ResetUserPassword.ascx" TagName="ResetUserPassword" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />

    <asp:UpdatePanel ID="updatePanelQuestionAnswers" runat="server" EnableViewState="True" UpdateMode="Conditional">
        <ContentTemplate>
            
           <script type="text/javascript" language="javascript">
               
               function ResetPasswordButtonClientClick() {

                   var failureTextElement = document.getElementById('<%= FailureText.ClientID %>');

                   if (failureTextElement) {
                       failureTextElement.innerText = "";
                   }

                   return true;
               }

           </script>

            <asp:Label ID="Literal1" runat="server" Text="<%$ Resources : Default, ResetPasswordHeader%>" 
                Font-Bold="True" Font-Size="13px" /> 

            <br/>
            <br/>

            <asp:Label ID="FailureText" runat="server" EnableViewState="False" style="color: #ff0000"
                Font-Bold="True" Font-Size="13px" ></asp:Label>
            
            <asp:Panel runat="server" ID="pnlPasswordResetSuccess">
                
                <asp:Label ID="lblPasswordResetSuccess_A" runat="server" EnableViewState="False" Font-Bold="True" Font-Size="13px" 
                        Text="<%$ Resources: UsersManagement, ResetPasswordSuccessMessage_A %>"></asp:Label>
                
            </asp:Panel>
            
            <asp:Panel runat="server" ID="pnlLoginPage">
                
                <br/>
                <br/>
                
                <asp:Label ID="lblPasswordResetSuccess_B" runat="server" EnableViewState="False" Font-Bold="True" Font-Size="13px" 
                        Text="<%$ Resources: UsersManagement, ResetPasswordSuccessMessage_B %>"></asp:Label>

                <asp:LinkButton  ID="m_hlLoginPage" runat="server" 
                        Text="<%$ Resources: UsersManagement, ResetPasswordSuccessMessage_C %>"  
                        Font-Bold="True" Font-Size="13px"
                        OnClick="LoginPage_Click"
                    ></asp:LinkButton>		

                <asp:Label ID="lblPasswordResetSuccess_D" runat="server" EnableViewState="False" Font-Bold="True" Font-Size="13px" 
                        Text="<%$ Resources: UsersManagement, ResetPasswordSuccessMessage_D %>"></asp:Label>

            </asp:Panel>
            
            <asp:Panel runat="server" ID="pnlResetPassword">
                
                <br/>
                <br/>
                
                <uc:ResetUserPassword ID="ResetUserPasswordControl" runat="server" />

            </asp:Panel>

            <br/>
            <br/>

            <table cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td align="right">
                            <asp:Button ID="ResetPasswordPushButton" runat="server" CommandName="ResetPassword"
                                Text="<%$ Resources: Default, ButtonTextResetPassword %>" ValidationGroup="ResetPassword" 
                                OnClientClick="ResetPasswordButtonClientClick();" OnClick="ResetPasswordPushButton_Click" />
                        </td>
                        <td>
                            <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="<%$ Resources: Default, ButtonCancel %>" OnClick="CancelPushButton_Click" />
                        </td>
                    </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
