<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TableOfContentsPopup.ascx.cs"
    Inherits="Zap.BI.Portal.Controls.UserControls.ModalPopups.TableOfContentsPopup" %>
    
<div style="padding:10px; max-height: 500px; overflow: auto; text-align: center;">
    <asp:Repeater ID="TOC" runat="server">
        <HeaderTemplate>
            <table cellpadding="5px" width="480px" style="text-align: left;">
                <tr class="tocHeading">
                    <td style="width:150px;">
                        <asp:Label ID="ResourceName" runat="server" Text="<%$ Resources: Controls.UserControls.ModalPopups.ModalPopupText, Label_Name %>" CssClass="ui-text" />
                    </td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.Dashboards.DashboardText, Group_Display %>" CssClass="ui-text" />
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources: Controls.UserControls.ModalPopups.ModalPopupText, Label_TOCEntry %>" CssClass="ui-text" />
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tocEntry">
                <td class="ui-form-label">
                    <asp:HiddenField ID="Id" runat="server" Value='<%# Eval("Id") %>' />
                    <asp:Literal runat="server" ID="ResourceName" Text='<%# Eval("ResourceName") %>' />
                </td>
                <td style="text-align: center">
                    <asp:CheckBox runat="server" ID="Included" Checked='<%# Eval("Included") %>' />
                </td>
                <td>
                    <asp:Textbox CssClass="tocEntry ui-input-box" runat="server" ID="TocValue" Text='<%# Eval("TocValue") %>' Placeholder='<%# Eval("ResourceName") %>' />
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tocAltEntry">
                <td class="ui-form-label">
                    <asp:HiddenField ID="Id" runat="server" Value='<%# Eval("Id") %>' />
                    <asp:Literal runat="server" ID="ResourceName" Text='<%# Eval("ResourceName") %>' />
                </td>
                <td style="text-align: center">
                    <asp:CheckBox runat="server" ID="Included" Checked='<%# Eval("Included") %>' />
                </td>
                <td>
                    <asp:TextBox CssClass="tocAltEntry ui-input-box" runat="server" ID="TocValue" Text='<%# Eval("TocValue") %>' Placeholder='<%# Eval("ResourceName") %>' />
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</div>
<table style="margin: auto;" cellpadding="10">
    <tr>
        <td>
            <asp:Button ID="OkButton" OnClick="Ok_Click" CssClass="button standardbutton" runat="server"  Text="<%$ Resources: Controls.ControlText, Label_Ok %>" />
              
        </td>
        <td>
            <asp:Button ID="CancelButton" OnClick="Cancel_Click" CssClass="button standardbutton" runat="server" Text="<%$ Resources: Controls.ControlText, Label_Cancel %>" />
        </td>
    </tr>
</table>
