<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.ProductTemplatesControl"
    CodeBehind="ProductTemplates.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-content.png" alt="Product Templates" />
        Manage Product Templates
    </div>
    <div class="options">
        <input type="button" onclick="location.href='ProductTemplateAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new product template" />
    </div>
</div>
<asp:GridView ID="gvProductTemplates" runat="server" AutoGenerateColumns="False"
    Width="100%">
    <Columns>
        <asp:BoundField DataField="ProductTemplateID" HeaderText="ProductTemplateID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
            <ItemTemplate>
                <a href="ProductTemplateDetails.aspx?ProductTemplateID=<%#Eval("ProductTemplateID")%>"
                    title="Edit product template">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <%#Eval("DisplayOrder")%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="ProductTemplateDetails.aspx?ProductTemplateID=<%#Eval("ProductTemplateID")%>"
                    title="Edit product template">Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
