<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.LanguagesControl"
    CodeBehind="Languages.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-configuration.png" alt="Configuration" />
        Languages
    </div>
    <div class="options">
        <input type="button" onclick="location.href='LanguageAdd.aspx'" value="Add new" id="btnAddNew"
            class="adminButtonBlue" title="Add a new language" />
    </div>
</div>
<asp:GridView ID="gvLanguages" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="LanguageID" HeaderText="LanguageID" Visible="False"></asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="25%">
            <ItemTemplate>
                <a href="LanguageDetails.aspx?LanguageID=<%#Eval("LanguageID")%>" title="Edit language">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="LanguageCulture" HeaderText="Language culture" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="DisplayOrder" HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:TemplateField HeaderText="View string resources" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="LocaleStringResources.aspx?LanguageID=<%#Eval("LanguageID")%>" title="View language string resources">
                    View string resources</a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="15%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="LanguageDetails.aspx?LanguageID=<%#Eval("LanguageID")%>" title="Edit language">
                    Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
