<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.TaxProvidersControl"
    CodeBehind="TaxProviders.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="DecimalTextBox" Src="DecimalTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-configuration.png" alt="Configuration" />
        Tax Providers
    </div>
    <div class="options">
        <input type="button" onclick="location.href='TaxProviderAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new tax provider" />
    </div>
</div>
<br />
<asp:UpdatePanel ID="UpdatePanelTaxProviders" runat="server">
    <ContentTemplate>
        <asp:GridView ID="gvTaxProviders" runat="server" AutoGenerateColumns="False" Width="100%">
            <Columns>
                <asp:BoundField DataField="TaxProvidersID" HeaderText="TaxProvidersID" Visible="False">
                </asp:BoundField>
                <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
                    <ItemTemplate>
                        <a href="TaxProviderDetails.aspx?TaxProviderID=<%#Eval("TaxProviderID")%>" title="Edit tax provider">
                            <%#Eval("Name")%>
                        </a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
                    ItemStyle-Width="13%" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <%#Eval("DisplayOrder")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Is default" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="13%"
                    ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:HiddenField runat="server" ID="hfTaxProviderID" Value='<%#Eval("TaxProviderID")%>' />
                        <asp:RadioButton runat="server" ID="rdbIsDefault" Checked='<%#Eval("IsDefault")%>'
                            OnCheckedChanged="rdbIsDefault_CheckedChanged" AutoPostBack="true" ToolTip="Click to make this tax provider the default" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="13%"
                    ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <a href="TaxProviderDetails.aspx?TaxProviderID=<%#Eval("TaxProviderID")%>" title="Edit tax provider">
                            Edit </a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="up1" runat="server">
    <ProgressTemplate>
        <div class="progress">
            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/UpdateProgress.gif" />
            Updating .....
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>
