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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ 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" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <asp:Panel ID="Pnl_Listing" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h2>
                        <%= Resources.Content.SIPProviders%>
                    </h2>
                </div>
                <div class="body">
                    <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_AddSIPProvider" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,AddSIPProvider %>' />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <asp:GridView ID="GV_SIPProviders" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:Label ID="lblSGStatus" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, strName %>'>
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_Name" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content, APIURL %>' HeaderStyle-CssClass="col-xs-4">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_APIURL" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content,USM0061%>' HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_UserName" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-3">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                    <asp:LinkButton SkinID="linkButtonservers" ID="LB_Test" CommandName="Test"
                                        runat="server" Text="<%$ Resources:Content,DGN1110046%>" CssClass="btn btn-primary" />
                                    <asp:LinkButton ID="LB_Remove" SkinID="linkButtonRemove" runat="server" Text="<%$ Resources:Content,Remove%>" CssClass="btn btn-primary btnAction" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager1" runat="server" />
                        </PagerTemplate>
                    </asp:GridView>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="Pnl_AddEdit" runat="server" Visible="false">
        <div class="card">
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Label ID="AddEditTitle" runat="server" Text="<%= Resources.Content.AddSIPProvider%>"></asp:Label>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content,strName %>' />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Name" runat="server" MaxLength="350"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Name"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,APIURL %>' />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_APIURL" runat="server" MaxLength="350"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_APIURL"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,USM0061 %>' EnableViewState="false" />:
                                    </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="350"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_UserName"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,GN0000569 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Password" runat="server" MaxLength="350" TextMode="Password"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:Label CssClass="sm" ID="lbl_PasswordOptionTextForEditCase" runat="server" Text='<%$ Resources:Content,PasswordOptional %>' Visible="false" />
                                        <asp:RequiredFieldValidator ID="RFV_Password" runat="server" ControlToValidate="TxBx_Password"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12  row-label">
                                        <asp:Literal ID="Div5" runat="server" Text='<%$ Resources:Content,GN000195 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:CheckBox ID="ChBx_IsEnabled" runat="server" Checked="True" Text=" " />
                                    </div>
                                </div>


                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Label ID="Label1" runat="server" Text='<%$ Resources:Content,strPBXAPICredentials %>'></asp:Label>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12  row-label">
                                       * <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,strPBXAPIURL %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PBXAPIURL" runat="server" MaxLength="350"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_PBXAPIURL"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,strPBXAPIUserName %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PBXAPIUserName" runat="server" MaxLength="350"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_PBXAPIUserName"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                                <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,strPBXAPIPassword %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PBXAPIPassword" runat="server" MaxLength="350" TextMode="Password"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:Label CssClass="sm" ID="Label2" runat="server" Text='<%$ Resources:Content,PasswordOptional %>' Visible="false" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_PBXAPIPassword"
                                            Display="None" ValidationGroup="AddSIPProvider" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:HiddenField ID="HF_SIPProviderId" Value="0" runat="server" />
                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="AddSIPProvider" HeaderText="<%$ Resources:Content,EM000001%>" />
                                <asp:Button ID="Btn_Save" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddSIPProvider" 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>
</asp:Content>
