<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.PaymentMethodsControl"
    CodeBehind="PaymentMethods.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-configuration.png" alt="Configuration" />
        Payment Methods
    </div>
    <div class="options">
        <input type="button" onclick="location.href='PaymentMethodAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new payment method" />
    </div>
</div>
<asp:GridView ID="gvPaymentMethods" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="PaymentMethodID" HeaderText="PaymentMethodID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="30%">
            <ItemTemplate>
                <a href="PaymentMethodDetails.aspx?PaymentMethodID=<%#Eval("PaymentMethodID")%>"
                    title="Edit payment method">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Visible name" ItemStyle-Width="30%">
            <ItemTemplate>
                <a href="PaymentMethodDetails.aspx?PaymentMethodID=<%#Eval("PaymentMethodID")%>"
                    title="Edit payment method">
                    <%#Server.HtmlEncode(Eval("VisibleName").ToString())%>
                </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 active" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="13%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <%#Eval("IsActive")%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="13%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="PaymentMethodDetails.aspx?PaymentMethodID=<%#Eval("PaymentMethodID")%>"
                    title="Edit payment method">Edit </a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
