<%@ control language="VB" autoeventwireup="false" inherits="RCC_Voice_CC_Accounts, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Panel ID="Pnl_Listing" runat="server">
    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.SMI0423%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="clearfix">
                        <asp:Button ID="Btn_AddAccount" class="btn btn-primary waves-effect btnAction" runat="server"
                            Text='<%$ Resources:Content,strAddAccount %>' />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_AccountsListing" CssClass="table table-bordered table-striped table-hover" AllowSorting="false"
                AllowPaging="false"
                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="col-xs-4" HeaderText='<%$ Resources:Content, USM0061 %>'>
                        <ItemTemplate>
                            <asp:Label ID="LB_UserName" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000652%>" HeaderStyle-CssClass="col-xs-4">
                        <ItemTemplate>
                            <asp:Label ID="LB_Email" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-3" Visible="false" >
                        <ItemTemplate>
                            <asp:Button ID="Btn_Edit" runat="server" Text="<%$ Resources:Content,Edit %>"  CssClass="btn btn-primary waves-effect" CommandName="Edit"   />
                            <asp:Button ID="Btn_SetDefault" runat="server" Text="<%$ Resources:Content, strSetasDefaultForPorting %>" CssClass="btn btn-primary waves-effect btnAction" CommandName="Default" />
                                
                        </ItemTemplate>

                    </asp:TemplateField>
                </Columns>
                <%--<PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>--%>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>


<asp:Panel ID="Pnl_Add" runat="server" Visible="false">

    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Label ID="Lbl_AddEditTile" runat="server" Text="<%$ Resources:Content,strAddAccount%>"></asp:Label>
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal33" runat="server" Text='<%$ Resources:Content,USM0061 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_UserName" runat="server" MaxLength="100"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_UserName"
                                Display="None" ValidationGroup="AddAccount" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                            <asp:Literal ID="Literal34" runat="server" Text='<%$ Resources:Content,GN0000652 %>' EnableViewState="false" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Email" runat="server" MaxLength="128"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Email"
                                Display="None" ValidationGroup="AddAccount" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Label ID="Lbl_StericPassword" runat="server" Text="*"></asp:Label>
                            <asp:Literal ID="Literal45" runat="server" Text='<%$ Resources:Content,GN0000569 %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Password" runat="server" TextMode="Password" MaxLength="500"></asp:TextBox>
                                </div>
                            </div>
                            <div id="Div_PasswordTextForEditCase" runat="server" visible="false">
                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,GN00001530 %>" CssClass="xs"></asp:Label>
                            </div>
                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                            <asp:RequiredFieldValidator ID="RFV_Password" runat="server" ControlToValidate="TxBx_Password"
                                Display="None" ValidationGroup="AddAccount" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" ErrorMessage='<%$ Resources:Content,DGN1110005 %>'
                                runat="server" ControlToCompare="TxBx_ConfirmPassword" ControlToValidate="TxBx_Password"
                                ValidationGroup="AddAccount" Display="None"></asp:CompareValidator>
                            <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
                            ControlToValidate="TxBx_Password"
                            ErrorMessage="<%$ Resources:Content,MinimumPasswordLengthIs12 %>"
                            ValidationExpression=".{12}.*"
                            ValidationGroup="AddAccount"
                            SetFocusOnError="true"
                            Display="None" />--%>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>" CausesValidation="false"
                                TabIndex="-1"></asp:LinkButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Label ID="Lbl_StericConfirmPassword" runat="server" Text="*"></asp:Label>
                            <asp:Literal ID="Literal35" runat="server" Text='<%$ Resources:Content,ConfirmPassword %>' />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_ConfirmPassword" runat="server" TextMode="Password" MaxLength="500"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ID="RFV_ConfirmPassword" runat="server" ControlToValidate="TxBx_ConfirmPassword"
                            Display="None" ValidationGroup="AddAccount" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>

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

</asp:Panel>

