<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.MessageTemplatesControl"
    CodeBehind="MessageTemplates.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<div class="section-title">
    <img src="Common/ico-content.png" alt="Message Templates" />
    Manage Message Templates
</div>
<table>
    <tr>
        <td class="adminTitle">
            <nopCommerce:ToolTipLabel runat="server" ID="lblLanguage" Text="Select language:"
                ToolTip="Select a language for the template. A message template can be created for each language that your store supports."
                ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:DropDownList ID="ddlLanguage" AutoPostBack="True" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged"
                CssClass="adminInput" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
</table>
<p>
</p>
<asp:GridView ID="gvMessageTemplates" runat="server" AutoGenerateColumns="False"
    Width="100%">
    <Columns>
        <asp:BoundField DataField="MessageTemplateID" HeaderText="MessageTemplateID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="70%">
            <ItemTemplate>
                <a href="MessageTemplateDetails.aspx?MessageTemplateID=<%#Eval("MessageTemplateID")%>&LanguageID=<%#GetSelectedLanguageID()%>"
                    title="Edit message template">
                    <%#Eval("Name")%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="MessageTemplateDetails.aspx?MessageTemplateID=<%#Eval("MessageTemplateID")%>&LanguageID=<%#GetSelectedLanguageID()%>"
                    title="Edit message template">Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
