<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.ProductVariantsControl"
    CodeBehind="ProductVariants.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="NumericTextBox" Src="NumericTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="SimpleTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<table class="adminContent">
    <tr>
        <td width="100%">
            <asp:GridView ID="gvProductVariants" runat="server" AutoGenerateColumns="false" Width="100%">
                <Columns>
                    <asp:TemplateField HeaderText="Product variant name" ItemStyle-Width="60%">
                        <ItemTemplate>
                            <a href='ProductVariantDetails.aspx?ProductVariantID=<%#Eval("ProductVariantID")%>'
                                title="View product variant">
                                <%#Server.HtmlEncode(GetProductVariantName(Container.DataItem as ProductVariant))%>
                            </a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="View" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                        ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <a href='ProductVariantDetails.aspx?ProductVariantID=<%#Eval("ProductVariantID")%>'
                                title="View product variant">View</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="DisplayOrder" HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
<p>
    <input type="button" onclick="location.href='ProductVariantAdd.aspx?ProductID=<%=ProductID%>'"
        value="Add new" id="btnAddNewVariant" class="adminButton" title="Add a new product variant" />
</p>
