<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_Templates, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    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="~/RCC/Exchange/CC/AddEditMBTemplate.ascx" TagName="AddEditMBTemplate" TagPrefix="UC" %>

<%--Search Option--%>
<asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SearchTemplates" Visible="false">
    <div class="row hide">
        <div class="panel-group search-panel" id="AS_Templates" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_Templates">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Templates" href="#<%= CSB_Templates.ClientID%>" aria-expanded="true" aria-controls="SH_Templates">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_Templates" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Templates" 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_TemplateName" runat="server" MaxLength="200"></asp:TextBox>
                                        <asp:Label ID="Label32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String273%>" CssClass="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:Button ID="Btn_SearchTemplates" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                    <asp:Button ID="Btn_ClearSearchTemplates" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>


<%--Listing--%>
<asp:Panel ID="Pnl_List" runat="server" Visible="true">
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CurrentSortExpression="MailContactDisplayName" CurrentSortDirection="Asc" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                ID="GV_Templates" AllowSorting="true" AllowPaging="true" runat="server" AutoGenerateColumns="false">

                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,String273%>" HeaderStyle-CssClass="col-xs-4">
                        <ItemTemplate>
                            <asp:Label ID="LB_TemplateName" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,SPT002817%>" HeaderStyle-CssClass="col-xs-4">
                        <ItemTemplate>
                            <asp:Label ID="LB_Level" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Clone" runat="server" Text="<%$ Resources:Content,DGN1110198%>" CommandName="Clone" CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>

                            <asp:LinkButton ID="LB_Edit" runat="server" Text="<%$ Resources:Content,strEdit%>" CommandName="Edit" CssClass="btn btn-primary waves-effect"></asp:LinkButton>

                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>" CommandName="Delete" CssClass="btn btn-primary waves-effect btnAction"></asp:LinkButton>

                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                TargetControlID="LB_Delete" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>
</asp:Panel>

<%--Edit--%>
<asp:Panel ID="Pnl_Edit" runat="server" Visible="false">
    <UC:AddEditMBTemplate ID="AddEditMBTemplate1" runat="server" />
</asp:Panel>

