<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.ProductManufacturerControl"
    CodeBehind="ProductManufacturer.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" %>
<asp:GridView ID="gvManufacturerMappings" runat="server" AutoGenerateColumns="false"
    Width="100%">
    <Columns>
        <asp:TemplateField HeaderText="Manufacturer" ItemStyle-Width="60%">
            <ItemTemplate>
                <asp:CheckBox ID="cbManufacturerInfo" runat="server" Text='<%# Server.HtmlEncode(Eval("ManufacturerInfo").ToString()) %>'
                    Checked='<%# Eval("IsMapped") %>' ToolTip="Map product to this manufacturer" />
                <asp:HiddenField ID="hfManufacturerID" runat="server" Value='<%# Eval("ManufacturerID") %>' />
                <asp:HiddenField ID="hfProductManufacturerID" runat="server" Value='<%# Eval("ProductManufacturerID") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="View" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="13%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href='ManufacturerDetails.aspx?ManufacturerID=<%# Eval("ManufacturerID") %>' title="View manufacturer details">
                    View</a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Featured Product" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="13%" ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <asp:CheckBox ID="cbFeatured" runat="server" Checked='<%# Eval("IsFeatured") %>'
                    ToolTip="Make this product a featured manufacturer product" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="13%" ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <nopCommerce:NumericTextBox runat="server" CssClass="adminInput" Width="50px" ID="txtDisplayOrder"
                    Value='<%# Eval("DisplayOrder") %>' RequiredErrorMessage="Display order is required"
                    RangeErrorMessage="The value must be from -99999 to 99999" MinimumValue="-99999"
                    MaximumValue="99999"></nopCommerce:NumericTextBox>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
