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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content6" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltr_HostingProducts" runat="server" Text='<%$ Resources:Content, Lync144 %>' /></h2>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UpdatePanel2" runat="server">

                    <ContentTemplate>

                        <EM:TabContainer ID="TbCntr_Products" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_Products" runat="server" HeaderText="<%$ Resources:Content,SMI708%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">

                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, GN00001320 %>' /></h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_AddTemplate" runat="server"
                                                            Text="<%$ Resources:Content,String272%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">&nbsp;</div>
                                        <ajax:UpdatePanel ID="UP" runat="server">
                                            <ContentTemplate>

                                                <asp:GridView ID="GV_TemplateList" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                    runat="server" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-7" HeaderText='<%$ Resources:Content, String273 %>' SortExpression="TemplateName">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.TemplateName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, String274 %>'>
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.TemplateCode")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, GN0000360 %>'>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Edit" runat="server" CommandName="Manage" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.TemplateId")%>' CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                                                <asp:LinkButton ID="LB_Remove" runat="server" CommandName="Remove" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.TemplateId")%>' CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                    TargetControlID="LB_Remove">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </ContentTemplate>
                                        </ajax:UpdatePanel>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Edit" Enabled="false" runat="server" HeaderText='<%$ Resources:Content, DGN1110138 %>'>
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <%-- <ajax:UpdatePanel ID="UpdatePanel1" runat="server" >--%>
                                        <%--  <ContentTemplate>--%>

                                        <div class="card">
                                            <div class="header">
                                                <h2>
                                                    <asp:Literal ID="Lietral1" runat="server" Text='<%$ Resources:Content, DGN1110138 %>' /></h2>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12">
                                                        *<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content, String273 %>' EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="Txt_TemplateName" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12">
                                                        *<asp:Literal ID="Div1" runat="server" Text='<%$ Resources:Content, String274 %>' />
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="Txt_TemplateCode" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                                                        <asp:Button Text='<%$ Resources:Content,GN0000572 %>' ID="Btn_Cancel" runat="server"
                                                            CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>

                                </ContentTemplate>
                            </EM:TabPanel>


                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
