<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_System_CSPDistributors, 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" %>
<%@ Register Src="~/PCC/System/CC/DistributorDetail.ascx" TagName="DistributorDetail" TagPrefix="EM" %>

<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.Distributors%>
                    </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_AddCSPDistributor" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,AddCSPDistributor %>' />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <asp:GridView ID="GV_CSPDistributors" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, strName %>'>
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_Name" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField Visible="false" HeaderText='<%$ Resources:Content, AuthenticationEndPoint %>' HeaderStyle-CssClass="col-xs-4">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_AuthenticationEndPoint" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content,APIEndPoint%>' HeaderStyle-CssClass="col-xs-4">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_APIEndPoint" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content,Status%>' HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <ul class="option-menu">
                                        <li class="dropdown">
                                            <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                <i class="material-icons">menu</i>
                                            </a>
                                            <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                <li>
                                                    <asp:LinkButton ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                </li>
                                                <li>
                                                    <asp:LinkButton ID="LB_Remove" CssClass="btnAction" SkinID="linkButtonRemove" runat="server" Text="<%$ Resources:Content,Remove%>" />
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>

                                </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">
        <EM:DistributorDetail ID="DistributorDetail" runat="server" />
    </asp:Panel>
</asp:Content>
