<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.CustomerRolesControl"
    CodeBehind="CustomerRoles.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-customers.png" alt="Customers" />
        Customer Roles
    </div>
    <div class="options">
        <input type="button" onclick="location.href='CustomerRoleAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new customer role" />
    </div>
</div>
<asp:GridView ID="gvCustomerRoles" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="CustomerRoleID" HeaderText="CustomerRoleID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="40%">
            <ItemTemplate>
                <a href="CustomerRoleDetails.aspx?CustomerRoleID=<%#Eval("CustomerRoleID")%>" title="Edit customer role">
                    <%#Eval("Name")%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="FreeShipping" HeaderText="Free shipping" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="TaxExempt" HeaderText="Tax exempt" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="Active" HeaderText="Active" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="15%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="CustomerRoleDetails.aspx?CustomerRoleID=<%#Eval("CustomerRoleID")%>" title="Edit customer role">
                    Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
