<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_System_Authentication, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <%--<div class="row" id="Tr_Main" runat="server">
            <div class="col-xs-12">
                <asp:CheckBox ID="Cb_Enabled" AutoPostBack="true" runat="server" Text="<%$ Resources:Content, GN000195%>" />
            </div>
        </div>--%>
    </div>
    <div class="col-xs-12" id="divReseller" runat="server">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" Text="<%$ Resources:Content,TFAS %>" /></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:CheckBox ID="Cb_EnabledRes" AutoPostBack="true" runat="server" Text="<%$ Resources:Content, GN000195%>" />
                    </div>
                </div>
                <div class="row" id="div_EnableRes" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:CheckBox runat="server" ID="Chbx_EnabledByDefaultForNewCustomers" Text="<%$ Resources:Content,EnabledByDefaultForNewCustomers %>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:CheckBox runat="server" ID="Chbx_EnabledByDefaultForNewStaffUsers" Text="<%$ Resources:Content,EnabledByDefaultForNewStaffUsers %>" />
                            </div>
                        </div>
                        <div class="row" id="divPINThroughEmail" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content, PINThroughEmail%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:CheckBox ID="ChBx_PINThroughEmail" runat="server" Text=" " />
                            </div>
                        </div>

                        <div class="row" id="divPINThroughSMS" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, PINThroughSMS%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:CheckBox ID="ChBx_PINThroughSMS" runat="server" Text=" " />
                            </div>
                        </div>

                        <div class="row" id="divGoogleAuthenticator" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, GoogleAuthenticator%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:CheckBox ID="ChBx_GoogleAuthenticator" runat="server" Text=" " />
                            </div>
                        </div>

                        <div class="row" id="divDuoAuthentication" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content, DuoAuthentication%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:CheckBox ID="ChBx_DuoAuthentication" runat="server" Text=" " />
                            </div>
                        </div>

                    </div>
                    <div class="col-xs-12">
                        <div id="Div_UpdateExisting" runat="server" style="display: none;">
                            <%--Update existing 2FA settings of Provider/reseller staff users, customers ad users, endusers--%>
                            <div class="panel-group" id="AS_UpdateExisting" role="tablist" aria-multiselectable="true">
                                <div class="panel panel-primary">
                                    <div class="panel-heading" role="tab" id="heading_UpdateExisting">
                                        <h2 class="panel-title">
                                            <a role="button" id="A_UpdateExisting" data-toggle="collapse" data-parent="#AS_UpdateExisting" href="#CSB_UpdateExisting" aria-expanded="false" aria-controls="CSB_UpdateExisting" class="collapsed">
                                                <%= Resources.Content.UpdateExistingUsers%>
                                            </a>
                                        </h2>
                                    </div>
                                    <div id="CSB_UpdateExisting" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading_UpdateExisting" aria-expanded="false" style="height: 0px;">
                                        <div class="panel-body">

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-6 row-label">
                                                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,M0079 %>"></asp:Label>:
                                                </div>
                                                <div class="col-sm-9 col-xs-6">
                                                    <asp:RadioButtonList ID="Rbl_ResellerStaffUsers" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="<%$ Resources:Content,NoChange %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,strEnabled %>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,Disabled %>" Value="0"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-6 row-label">
                                                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,Customers %>"></asp:Label>:
                                                </div>
                                                <div class="col-sm-9 col-xs-6">
                                                    <asp:RadioButtonList ID="Rbl_ResellerCustomers" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="<%$ Resources:Content,NoChange %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,strEnabled %>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,Disabled %>" Value="0"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-6 row-label">
                                                    <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,EndADUsers %>"></asp:Label>:
                                                </div>
                                                <div class="col-sm-9 col-xs-6">
                                                    <asp:RadioButtonList ID="Rbl_EndADUsers" runat="server" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="<%$ Resources:Content,NoChange %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,strEnabled %>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,Disabled %>" Value="0"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>
                                            </div>
                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-2 col-xs-12">
                        <asp:Button ID="Btn_Save" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12" id="divCustomer" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,TFAS %>" /></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:CheckBox ID="Cb_EnabledCus" AutoPostBack="true" runat="server" Text="<%$ Resources:Content, GN000195%>" />
                    </div>
                </div>
                <div class="row" id="div_EnableCus" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="row" id="divCusPINThroughEmail" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content, PINThroughEmail%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:RadioButton ID="rdb_PINThroughEmail" GroupName="Customer" AutoPostBack="true" runat="server" Text=" " />
                            </div>
                            <div id="divEmail" runat="server" visible="false">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content, FAM0074%>' EnableViewState="true" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Email" Enabled="false" CssClass="form-control" MaxLength="20" runat="server" />
                                        </div>
                                    </div>
                                    <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 class="row" id="divCusPINThroughSMS" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content, PINThroughSMS%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:RadioButton ID="rdb_PINThroughSMS" GroupName="Customer" AutoPostBack="true" runat="server" Text=" " />
                            </div>
                            <div id="divPhoneNumber" runat="server" visible="false">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content, MobileNumber%>' EnableViewState="true" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_PhoneNumber" CssClass="form-control" MaxLength="20" runat="server" />
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="SavePhoneNumber" ID="RequiredFieldValidator6"
                                        ControlToValidate="TxBx_PhoneNumber" runat="server" ErrorMessage='<%$Resources:Content,GN00008058%>'
                                        Display="None"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>

                        <div class="row" id="divCusGoogleAuthenticator" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content, GoogleAuthenticator%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:RadioButton ID="rdb_GoogleAuthenticator" GroupName="Customer" AutoPostBack="true" runat="server" Text=" " />
                            </div>
                        </div>

                        <div class="row" id="divCusDuoAuthentication" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content, DuoAuthentication%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <asp:RadioButton ID="rdb_DuoAuthentication" GroupName="Customer" AutoPostBack="true" runat="server" Text=" " />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-2 col-xs-12">
                        <asp:Button ID="btn_SaveCustomer" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>

