<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PublicationRuleView.ascx.cs"
    Inherits="Zap.BI.Portal.Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleView" %>
<%@ Register Src="~/Controls/UserControls/RichTextEditor/RichTextEditor.ascx" TagName="RichTextEditor"
    TagPrefix="zap" %>

<zapWeb:QueryParameterContainer runat="server" ID="filterPane" HasSlicer="False" />

<%--Inner Content--%>
<zapWeb:TemplateInstanceStack runat="server" ID="TemplateInstanceStack" />

<asp:HiddenField ID="CustomFolderId" runat="server" Visible="<%# IsUsingNewPicker() %>" />
<asp:Button ID="SelectCustomFolderButton" runat="server" CssClass="is-hidden" OnClick="SelectCustomFolderButton_Click" Visible="<%# IsUsingNewPicker() %>" />

<div class="horizontalDesignPlaceholder" id="PlaceholderWrapper" runat="server">
    <zapWeb:ZapUpdatePanel ID="ConnectionsPanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>

            <div id="cubeSelection" class="publication-cubeConnectionSelect" runat="server">
                <asp:Label ID="Label1" 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>

        </ContentTemplate>
    </zapWeb:ZapUpdatePanel>

    <div style="margin-bottom: 6px; margin-left: 64px;">
        <zapWeb:QueryPlaceholder runat="server" ID="filtersPlaceholder" Name="<%$ Resources: Controls.UserControls.ResourceControls.ResourceControlText, Label_Filters %>" />
    </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="recipientSlicersPlaceholder" Name="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_RecipientSlices %>" />
        </div>
    </div>
</div>

<div id="PublicationViewArea" class="resourceContentWrapper" runat="server">
    <zapWeb:ZapUpdatePanel ID="MainPanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table width="699" cellpadding="0" cellspacing="0" style="padding-top: 10px;">
                <tr>
                    <td style="padding-right: 3px;">
                        <asp:Button ID="SendNowButton" CssClass="button" OnClick="SendNow_Click" runat="server"
                            Height="156px" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_SendNow %>" />
                    </td>
                    <td>
                        <table cellspacing="4px" class="publication-inputs">
                            <tr>
                                <td>
                                    <asp:Label ID="FromLabel" CssClass="ui-form-label-inline" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_From %>" />
                                </td>
                                <td style="width: 485px;">
                                    <asp:DropDownList ID="From" runat="server" class="publication-field ui-input-box" />
                                </td>
                            </tr>
                            <tr id="RecipientsContainer" runat="server">
                                <td>
                                    <asp:Label runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Recipients %>" />
                                </td>
                                <td>
                                    <input id="RecipientsField" class="recipients publication-field" type="text" disabled="disabled" />
                                    <input id="RecipientsHiddenField" class="recipientsStorage" type="hidden" runat="server" />
                                </td>
                            </tr>
                            <tr id="ChannelContainer" runat="server">
                                <td>
                                    <asp:Label ID="ChannelLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Channel %>" />
                                </td>
                                <td>
                                    <asp:TextBox ID="SlackChannel" CssClass="unsavedChangesOnChange publication-subject publication-field" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="SubjectLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Subject %>" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSubject" CssClass="unsavedChangesOnChange publication-subject publication-field" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="AttachmentsLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Attachments %>" />
                                </td>
                                <td>
                                    <zapWeb:ZapUpdatePanel ID="AttachmentsPanel" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <div id="divAttachments" class="publication-field publication-attachments ui-input-box" runat="server" />
                                        </ContentTemplate>
                                    </zapWeb:ZapUpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_RunAsUser %>"
                                        ToolTip="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Tooltip_RunAsUser %>" />
                                </td>
                                <td>
                                    <span id="RunAsUser" class="publication-runAsUser ui-text" runat="server"/>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </ContentTemplate>
    </zapWeb:ZapUpdatePanel>
    <br />

    <zapWeb:ZapUpdatePanel ID="MessagePanel" class="MessagePanel"
        runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="MessageBlockPanel" class="publication-blockMessageOverlay" runat="server">
            </div>
            <zap:RichTextEditor ID="RTOMessage" class="RTOMessageEditor" Width="690" Height="320" runat="server" />
        </ContentTemplate>
    </zapWeb:ZapUpdatePanel>

    <br />
    <asp:Label runat="server" CssClass="ui-form-label" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Events %>" />
    <zapWeb:ZapUpdatePanel ID="EventsPanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>

            <div id="divEvents" runat="server" class="publication-field publication-events ui-input-box" />

        </ContentTemplate>
    </zapWeb:ZapUpdatePanel>
</div>
