<%@ control language="VB" autoeventwireup="false" inherits="PCC_DC_CC_PasswordPolicies, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>

<script type="text/javascript">
    //$(document).ready(function () { 
    //    jQuery($("table[id$=ClientID] input")).on("change", function () {

    //        if ($(this).val() == 0) {
    //            //$('#ClientID').removeAttr("disabled");
    //            ValidatorValidate($("#ClientID")[0]);
    //        }
    //        else {
    //            $('#ClientID').attr("disabled", "disabled");
    //            ValidatorValidate($("#ClientID")[0], false);
    //        }
    //    });

    //}); 


    function EnableDisableMinimumPasswordLength(obj) {
        if (!obj.checked) {
            $('#<%=TxBx_MinimumPasswordLength.ClientID %>').attr("disabled", "disabled");
            ValidatorEnable($("#<%= RFV_MinimumPasswordLength.ClientID %>")[0], false);
        }
        else {
            $('#<%=TxBx_MinimumPasswordLength.ClientID %>').removeAttr("disabled");
            ValidatorEnable($("#<%= RFV_MinimumPasswordLength.ClientID %>")[0], true);
        }
    }

    function EnableDisableMinimumPasswordHistory(obj) {
        if (!obj.checked) {
            $('#<%=TxBx_PasswordHistoryCount.ClientID%>').attr("disabled", "disabled");
            ValidatorEnable($("#<%= RFV_PasswordHistoryCount.ClientID%>")[0], false);
        }
        else {
            $('#<%=TxBx_PasswordHistoryCount.ClientID %>').removeAttr("disabled");
            ValidatorEnable($("#<%= RFV_PasswordHistoryCount.ClientID%>")[0], true);
        }
    }
    function EnableDisableMinPasswordAge(obj) {
        if (!obj.checked) {
            $('#<%=TxBx_MinPasswordAge.ClientID%>').attr("disabled", "disabled");
            ValidatorEnable($("#<%= RFV_MinPasswordAge.ClientID%>")[0], false);
        }
        else {
            $('#<%=TxBx_MinPasswordAge.ClientID %>').removeAttr("disabled");
            ValidatorEnable($("#<%= RFV_MinPasswordAge.ClientID%>")[0], true);
        }
    }
    function EnableDisableEnforceMaximumPasswordAge(obj) {
        if (!obj.checked) {
            $('#<%=TxBx_MaxPasswordAge.ClientID%>').attr("disabled", "disabled");
            ValidatorEnable($("#<%= RFV_MaxPasswordAge.ClientID%>")[0], false);
        }
        else {
            $('#<%=TxBx_MaxPasswordAge.ClientID %>').removeAttr("disabled");
            ValidatorEnable($("#<%= RFV_MaxPasswordAge.ClientID%>")[0], true);
        }
    }
    function EnableDisableEnforceAccountLockoutPolicy(obj) {
        if (!obj.checked) {
            $('#<%=TxBx_FailedLogonAttemptsAllowed.ClientID%>').attr("disabled", "disabled");
            $('#<%=TxBx_ResetFailedLoginAttemptsCountAfter.ClientID%>').attr("disabled", "disabled");
            //$("table[id$=ClientID] input").attr("disabled", "disabled");
            $('#<%=TxBx_LockoutDuration.ClientID%>').attr("disabled", "disabled");

            //disabled validator as well
            ValidatorEnable($("#<%= RFV_ResetFailedLoignAttemptsCounterAfter.ClientID%>")[0], false);
            ValidatorEnable($("#<%= RFV_LockoutDuration.ClientID%>")[0], false);

        }
        else {
            $('#<%=TxBx_FailedLogonAttemptsAllowed.ClientID%>').removeAttr("disabled");
            $('#<%=TxBx_ResetFailedLoginAttemptsCountAfter.ClientID%>').removeAttr("disabled");
            //$("table[id$= Rbl_Accountwilbelockedout.ClientID %>] input").removeAttr("disabled");
            $('#<%=TxBx_LockoutDuration.ClientID%>').removeAttr("disabled");

            //disabled validator as well
            ValidatorEnable($("#<%= RFV_ResetFailedLoignAttemptsCounterAfter.ClientID%>")[0], true);
            ValidatorEnable($("#<%= RFV_LockoutDuration.ClientID%>")[0], true);
        }

    }
</script>

<asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter" Visible="false" CssClass="hide">
    <div class="row">
        <div class="panel-group search-panel" id="AS_PP" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_PP">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PP" href="#<%= CSB_PP.ClientID%>" aria-expanded="true" aria-controls="SH_PP">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_PP" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PP" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_SrchPolicyDisplayName" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L00189%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_SrchPrecedence" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Precedence%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_List" runat="server">
    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,GN00001320%>' EnableViewState="false" />
                    </h3>
                </div>
                <div class="body">
                    <asp:Button ID="Btn_AddPasswordPolicy" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,AddPolicy %>' />
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_PasswordPolicies" CurrentSortExpression="PolicyDisplayName" CurrentSortDirection="Asc"
                CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="false" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                AutoGenerateColumns="false">

                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, L00189 %>" SortExpression="PolicyDisplayName" HeaderStyle-CssClass="col-xs-5">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_PolicyDisplayName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PolicyDisplayName")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, Precedence %>" SortExpression="Precedence" HeaderStyle-CssClass="col-xs-5">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Precedence" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Precedence")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Button ID="Btn_Edit" runat="server" Text="<%$ Resources:Content,Edit %>" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.PolicyId")%>'
                                CssClass="btn btn-primary waves-effect" CommandName="Edit" />
                            <asp:LinkButton class="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.PolicyId")%>'
                                ID="LB_Remove" CommandName="Remove" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                            <EM:ConfirmButtonExtender ID="CBE_Remove" TargetControlID="LB_Remove" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>

<asp:Panel CssClass="row" ID="Pnl_AddPolicy" runat="server" DefaultButton="Btn_Save" Visible="false">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Ltl_AddEditTitle" runat="server" Text="<%$ Resources:Content,AddPolicy%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000170%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_PolicyDisplayName" runat="server" MaxLength="64"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_PolicyDisplayName" runat="server" ControlToValidate="TxBx_PolicyDisplayName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,Description%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox runat="server" ID="Txbx_Description" TextMode="MultiLine" Width="100%" Height="150px" MaxLength="1024"></asp:TextBox>
                            <asp:RegularExpressionValidator runat="server" ID="valInput"
                                ControlToValidate="Txbx_Description"
                                Display="None" 
                                SetFocusOnError="true" 
                                ValidationGroup="PP"
                                ValidationExpression="^[\s\S]{0,1024}$"
                                ErrorMessage="<%$ Resources:Content,DescriptionValidation%>"></asp:RegularExpressionValidator>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        *<asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Precedence%>" />:
                    </div>
                    <div class="col-sm-4 col-xs-7">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Precedene" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_Precedence" runat="server" ControlToValidate="TxBx_Precedene"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_Precedence" runat="server" ControlToValidate="TxBx_Precedene"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,PrecedenceValidation %>" Type="Integer"
                                    MinimumValue="0" MaximumValue="2147483647"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,Enforceminimumpasswordlength%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_Enforceminimumpasswordlength" runat="server" Text=" " Checked="true"
                                onclick="EnableDisableMinimumPasswordLength(this)" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,MinimumpasswordlengthChar%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MinimumPasswordLength" runat="server" CssClass="allowonlyintegervalues"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_MinimumPasswordLength" runat="server" ControlToValidate="TxBx_MinimumPasswordLength"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_MinimumPasswordLength" runat="server" ControlToValidate="TxBx_MinimumPasswordLength"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,MinPassValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="255"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,EnforcePasswordHistory%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_EnforcePasswordHistory" runat="server" Text=" " Checked="true"
                                onclick="EnableDisableMinimumPasswordHistory(this)" />
                        </div>
                    </div>
                </div>
                <%--PasswordHistoryCount--%>
                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,NumberofPasswordsRemembered %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_PasswordHistoryCount" runat="server" CssClass="allowonlyintegervalues"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_PasswordHistoryCount" runat="server"
                                    ControlToValidate="TxBx_PasswordHistoryCount"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_PasswordHistoryCount" runat="server" ControlToValidate="TxBx_Precedene"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,PassHistoryCountValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="1024"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,PassConmplexityRequirments %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_ComplexityEnabled" runat="server" Text=" " Checked="true" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,ReversibleEncryptionEnabled %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_ReversibleEncryptionEnabled" runat="server" Text=" " />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,ProtectedFromAccidentalDeletion %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_ProtectedFromAccidentalDeletion" runat="server" Text=" " Checked="true" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources:Content,EnforceMinimumPasswordAge%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_EnforceMinimumPasswordAge" runat="server" Text=" " Checked="true"
                                onclick="EnableDisableMinPasswordAge(this)" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,MinPasswordAge%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MinPasswordAge" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_MinPasswordAge" runat="server"
                                    ControlToValidate="TxBx_MinPasswordAge"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_MinPasswordAge" runat="server" ControlToValidate="TxBx_MinPasswordAge"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,MinPassAgeValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="10675199"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,EnforceMaximumPasswordAge%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_EnforceMaximumPasswordAge" runat="server" Text=" " Checked="true"
                                onclick="EnableDisableEnforceMaximumPasswordAge(this)" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,MaxPasswordAge%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MaxPasswordAge" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_MaxPasswordAge" runat="server"
                                    ControlToValidate="TxBx_MaxPasswordAge"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_MaxPasswordAge" runat="server" ControlToValidate="TxBx_MaxPasswordAge"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,MaxPassAgeValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="10675199"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,EnforceAccountLockoutPolicy%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Chbx_EnforceAccountLockoutPolicy" runat="server" Text=" " Checked="false"
                                onclick="EnableDisableEnforceAccountLockoutPolicy(this)" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,NumberofFailedLogonAttemptsAllowed %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FailedLogonAttemptsAllowed" runat="server" CssClass="allowonlyintegervalues" Enabled="false"></asp:TextBox>
                                <asp:RangeValidator ID="RV_FailedLoginAttemptsAllowed" runat="server" ControlToValidate="TxBx_MaxPasswordAge"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,LockoutThresholdValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="65535"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,LockoutObservationWindow  %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ResetFailedLoginAttemptsCountAfter" runat="server" Enabled="false"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_ResetFailedLoignAttemptsCounterAfter" runat="server"
                                    ControlToValidate="TxBx_ResetFailedLoginAttemptsCountAfter"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_ResetFailedLoignAttemptsCounterAfter" runat="server" ControlToValidate="TxBx_ResetFailedLoginAttemptsCountAfter"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,LockoutObservationWindowValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="65535"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <%-- <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,Accountwilbelockedout%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-8 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="Rbl_Accountwilbelockedout" runat="server" Enabled="false" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Text="<%$ Resources:Content,ForadurationofMins%>" Value="0"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,UntillAnAdministrationManuallyUnlock%>" Value="1"></asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                </div>--%>

                <div class="row">
                    <div class="col-sm-4 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,Accountwilbelockedout%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_LockoutDuration" runat="server" Enabled="false"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_LockoutDuration" runat="server"
                                    ControlToValidate="TxBx_LockoutDuration"
                                    Display="None" SetFocusOnError="True" ValidationGroup="PP"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RV_LouckoutDuration" runat="server" ControlToValidate="TxBx_LockoutDuration"
                                    Display="None" SetFocusOnError="true" ValidationGroup="PP"
                                    ErrorMessage="<%$ Resources:Content,LockoutDurationValidation %>" Type="Integer"
                                    MinimumValue="1" MaximumValue="65535"></asp:RangeValidator>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,AppliesTo %>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-xs-12">
                        <%--IsSelectedRequired="true"--%>
                        <EM:AddSelectableSelected ID="UCMembers" ValidationGroup="PP" runat="server" />
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <asp:HiddenField ID="HF_PolicyDisplayName" Value="" runat="server" />
                        <asp:HiddenField ID="HF_PolicyName" Value="" runat="server" />
                        <asp:HiddenField ID="HF_PolicyId" Value="0" runat="server" />
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                            ShowSummary="false" HeaderText="<%$ Resources:Content,EM000001%>" ValidationGroup="PP" />
                        <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                            class="btn btn-primary waves-effect btnAction" ValidationGroup="PP" CausesValidation="true" />
                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                            class="btn btn-primary waves-effect" CausesValidation="false" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
