<%@ control language="VB" autoeventwireup="false" inherits="Template_CC_AccountTwoFASettings, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<div class="card card-profile" id="divCustomer" runat="server">
    <div class="card-header">
        <div class="heading">
            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,TFAS %>" />
        </div>


    </div>

    <div class="body body-profile">
        <div class="row">
            <div class="col-xs-12 p-l-r-0-sm">
                <asp:CheckBox ID="Cb_EnabledCus" runat="server" Text="<%$ Resources:Content, GN000195%>" onclick="ShowHideDiv(this)" />
            </div>
        </div>
        <div class="mfa-radio-wrapper" id="div_EnableCus" runat="server">

            <div class="row" id="divCusPINThroughEmail" runat="server">
                <div class="col-xs-12 col-md-3 p-t-15 p-l-r-0-sm">
                    <asp:RadioButton ID="rdb_PINThroughEmail" GroupName="Customer" runat="server" Text='<%$ Resources:Content, PINThroughEmail%>' />
                </div>
                <div class="col-xs-12 col-md-6 p-t-10" runat="server" id="divEmail" style="display: none">
                    <div class="form-group  form-float m-t-0">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Email" Enabled="false" CssClass="form-control" MaxLength="20" runat="server" />
                            <asp:Label ID="Label11" runat="server" Text="<%$Resources:Content,GN0000491 %>" CssClass="form-label"></asp:Label>
                            <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="SavePhoneNumber" ID="RequiredFieldValidator1"
                                ControlToValidate="TxBx_Email" runat="server" ErrorMessage='<%$Resources:Content,GN00008058%>'
                                Display="None"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div></div>

            <div class="row" id="divCusPINThroughSMS" runat="server">

                <div class="col-xs-12 col-md-3 p-t-15 p-l-r-0-sm">
                    <asp:RadioButton ID="rdb_PINThroughSMS" GroupName="Customer" runat="server" Text='<%$ Resources:Content, PINThroughSMS%>' />
                </div>
                <div id="divPhoneNumber" runat="server" style="display: none;" class="col-xs-12 col-md-6 p-t-10">
                    <div class="form-group form-float m-t-0">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_PhoneNumber" CssClass="form-control" MaxLength="20" runat="server" />
                            <asp:Label ID="Label1" runat="server" Text="<%$Resources:Content,MobileNumber %>" CssClass="form-label"></asp:Label>
                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" TargetControlID="TxBx_PhoneNumber"
                                FilterType="Numbers,Custom" ValidChars="+">
                            </EM:FilteredTextBoxExtender>
                            <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="SavePhoneNumber" ID="RequiredFieldValidator6"
                                ControlToValidate="TxBx_PhoneNumber" runat="server" ErrorMessage='<%$Resources:Content,GN00008058%>'
                                Display="None"></asp:RequiredFieldValidator>
                        </div>
                    </div>

                    <div id="divMobileMsg" class="col-xs-12 p-l-0" runat="server" style="display: none; color: #d12127">
                        <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content, MobileNumberRequired%>' EnableViewState="false" />
                    </div>
                </div>
            </div>

            <div class="row" id="divCusGoogleAuthenticator" runat="server">
                <div class="col-xs-12 col-md-3 p-t-15 p-l-r-0-sm">
                    <asp:RadioButton ID="rdb_GoogleAuthenticator" GroupName="Customer" runat="server" Text='<%$ Resources:Content, GoogleAuthenticator%>' />
                </div>
                <div id="divGoogleMsg" runat="server" style="display: none" class="col-xs-12 col-md-6 p-t-20 p-t-0-xs">
                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content, ReLogin%>' EnableViewState="false" />
                </div>

            </div>
            <div class="row" id="divCusDuoAuthentication" runat="server">

                <div class="col-xs-12 col-md-3 p-t-15 p-l-r-0-sm">
                    <asp:RadioButton ID="rdb_DuoAuthentication" GroupName="Customer" runat="server" Text='<%$ Resources:Content, DuoAuthentication%>' />
                </div>
                <div id="divDuoMsg" runat="server" style="display: none" class="col-xs-12 col-md-6 p-t-20 p-t-0-xs">
                    <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content, ReLogin%>' EnableViewState="false" />
                </div>

            </div>
        </div>
        <div class="row">
            <script type="text/javascript" lang="javascript">                       

                    function ShowHideDiv(chk) {
                        var div_EnableCus = $get('<% = div_EnableCus.ClientID %>');
                        div_EnableCus.style.display = chk.checked ? "block" : "none";
                    }
            </script>
            <div class="col-xs-12 p-l-r-0-sm m-t-5">
                <%--<%# "TwoFAMobileNumberReq(" + divMobileMsg + "," + rdb_PINThroughSMS + "," + TxBx_PhoneNumber + "); return false;"--%>
                <asp:Button ID="btn_SaveCustomer" class="btn btn-primary waves-effect p-5-24-24"
                    runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                <asp:Button ID="btn_Cancel" class="btn btn-primary waves-effect p-5-24-24"
                    runat="server" Text="<%$ Resources:Content,GN0000572%>" />
            </div>
        </div>
    </div>


</div>




