<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_RDS_ServerGroups, 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">
    <div class="col-xs-12">
        <div class="card">
                <div class="header">
                    <h2>
                        <%= Resources.Content.M0095%>
                    </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.GN00001320%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="clearfix">
                                    <asp:Button ID="BTN_AddServer" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000970 %>' />
                                <asp:HyperLink ID="Lbtn_Configurations" runat="server" Visible="false"  Text="<%$ Resources:Content,SMI712 %>" CausesValidation="false"
                                    CssClass="btn btn-primary waves-effect btnAction" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <asp:GridView ID="GV_ServerGroups" 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-1" HeaderText='<%$ Resources:Content, String385 %>'>
                            <ItemTemplate>
                                <asp:Label ID="LB_Status" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000971 %>' HeaderStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <asp:Label ID="LB_Name" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110096%>' HeaderStyle-CssClass="col-xs-3">
                            <ItemTemplate>
                                <asp:Label ID="lblProvider" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                <asp:LinkButton SkinID="linkButtonservers" ID="LBSG_Servers" CommandName="ServerList"
                                    runat="server" Text="<%$ Resources:Content,GN0001231%>" CssClass="btn btn-primary" />
                                <asp:LinkButton ID="LB_Configurations" Visible="false"  SkinID="linkButtonConfigurations" CommandName="Configuration"
                                    runat="server" Text="<%$ Resources:Content,SMI712%>" CssClass="btn btn-primary" />
                                <asp:LinkButton ID="LB_Remove" runat="server" Text="<%$ Resources:Content,Remove%>" CssClass="btn btn-primary btnAction"
                                    OnClientClick="return confirm('Are you sure you want to remove this Server Group?');" CommandName="Remove" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <EM:Pager ID="Pager1" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
