<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="ReportPackView.ascx.cs"
    Inherits="Zap.BI.Portal.Controls.UserControls.ResourceControls.ReportPacks.ReportPackView" %>
<%@ Import Namespace="Zap.BI.Portal" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>

<div style="white-space: nowrap">
    <zapWeb:QueryParameterContainer runat="server" ID="filterPane" />
</div>
<%--Inner Content--%>
<zapWeb:TemplateInstanceStack runat="server" ID="TemplateInstanceStack" />

<div class="horizontalDesignPlaceholder" id="PlaceholderWrapper" runat="server">
    <div id="cubeSelection" runat="server">
        <asp:Label ID="LabelCube" CssClass="ui-form-label-inline" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.ReportPacks.ReportPackText, Label_Cube %>" />
        <asp:DropDownList ID="cubeDropDownList" class="cubeDropDownList ui-input-box" runat="server" OnSelectedIndexChanged="CubeDropDownList_SelectionChanged" AutoPostBack="true" />
    </div>

    <div style="margin-bottom: 6px; margin-left: 32px;">
        <zapWeb:QueryPlaceholder runat="server" ID="filtersPlaceholder" Name="<%$ Resources: Controls.UserControls.ResourceControls.ResourceControlText, Label_Filters %>" />
    </div>

    <div>
        <div style="margin-bottom: 6px; margin-left: 32px">
            <zapWeb:QueryPlaceholder runat="server" ID="slicersPlaceholder" Name="<%$ Resources: Controls.UserControls.ResourceControls.ResourceControlText, Label_Slicers %>" />
        </div>
    </div>
    
    <div>
        <div style="float: left; width: 32px; margin-top: 6px;">
            <zapWeb:DesignPlaceholderBin ID="DesignPlaceholderBin" runat="server" />
        </div>
        <div style="margin-left: 32px">
            <zapWeb:QueryPlaceholder runat="server" ID="repeatByPlaceholder" Name="<%$ Resources: Controls.UserControls.ResourceControls.ReportPacks.ReportPackText, Label_RepeatBy %>" />
        </div>
    </div>
</div>
<div class="resourceContentWrapper">
    <div id="divResourceDropTarget" class="reportPack-dropArea" runat="server">
        <asp:Label CssClass="reportPack-dropAreaText ui-title ui-subtle" ID="DragHereLabel" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.ResourceControlText, Label_DragHere %>" />
    </div>
    <br />
    <zapWeb:ZapUpdatePanel ID="ResourceListPanel" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <asp:HiddenField runat="server" ID="selectedId" />
            <act:ReorderList ID="ReportPackReorderList" runat="server" PostBackOnReorder="True"
                CallbackCssStyle="callbackStyle" ItemInsertLocation="End" AllowReorder="true"
                OnItemDataBound="ReportPackReorderList_ItemDataBound" OnItemReorder="ReportPackReorderList_ItemReorder"
                CssClass="reportPack-resources" OnDeleteCommand="ReportPackReorderList_ItemDelete">
                <DragHandleTemplate>
                    <table id="ItemTable" class="itemTable" runat="server" height="47px" width="470px">
                        <tr valign="middle">
                            <td valign="middle" align="center" width="55px">
                                <img id="ItemIcon" class="icon-32" runat="server">
                            </td>
                            <td valign="middle" align="center">
                                <div id="ItemLabel" class="itemLabel" runat="server"></div>
                            </td>
                        </tr>
                    </table>
                </DragHandleTemplate>
                <ItemTemplate>
                    <table style="float: right; height: 100%;">
                        <tr valign="middle">
                            <td style="padding-right: 10px;">
                                <asp:Panel ID="ItemTemplatePlaceholder" runat="server" />
                            </td>
                            <td style="padding-right: 10px;">
                                <asp:ImageButton ID="RemoveResource" CommandName="Delete" ImageUrl="<%# ContentUrlResolver.Create(PortalContent.Pages_Images_CloseSmall_svg) %>"
                                    runat="server" ToolTip="<%$ Resources: Controls.UserControls.ResourceControls.ReportPacks.ReportPackText, Label_Remove %>"
                                    Style="height: 16px; width: 16px;" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <ReorderTemplate>
                    <asp:Panel runat="server" CssClass="reorderCue" />
                </ReorderTemplate>
            </act:ReorderList>
        </ContentTemplate>
    </zapWeb:ZapUpdatePanel>
    <asp:PlaceHolder ID="PopupPlaceholder" runat="server" />
</div>
