<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.Fields" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" TagPrefix="designers" Namespace="Telerik.Sitefinity.Web.UI.ControlDesign" %>
<sf:ResourceLinks id="resourcesLinks" runat="server">
<sf:ResourceFile Name="Styles/Window.css" />
</sf:ResourceLinks>
<telerik:RadWindowManager
ID="windowManager"
runat="server"
Behaviors="None"
Skin="Sitefinity"
ShowContentDuringLoad="false"
VisibleStatusBar="false"
VisibleTitleBar="true">
<Windows>
<telerik:RadWindow ID="contentPages" runat="server" Height="250" Width="425" Modal="true" NavigateUrl="~/Sitefinity/Dialog/ContentPagesDialog" ReloadOnShow="true" Behaviors="Close" />
<telerik:RadWindow ID="preview" runat="server" Height="100" Width="100" Modal="true" NavigateUrl="~/Sitefinity/Dialog/ContentViewEditDialog?ControlDefinitionName=ContentBackend&ViewName=ContentBackendPreview&SuppressBackToButtonLabelModify=true" />
</Windows>
</telerik:RadWindowManager>
<div id="selectorTag" style="display: none;" class="sfDesignerSelector sfFlatDialogSelector">
<designers:ContentSelector
ID="sharedContentSelector"
runat="server"
TitleText="<%$Resources:ContentResources, SelectSharedContentYouWantToUse %>"
BindOnLoad="false"
AllowMultipleSelection="false"
WorkMode="List"
SearchBoxInnerText=""
ShowProvidersList="true"
SearchBoxTitleText="<%$Resources:Labels, NarrowByTyping %>"
ListModeClientTemplate="<span class='sfItemTitle'>{{Title}}</span><span class='sf_binderCommand_viewContentPages'>{{PagesCountUIString}}</span>">
</designers:ContentSelector>
</div>
<sf:PromptDialog
ID="shareContentDialog"
Title="<%$ Resources:ContentResources, SharedContent %>"
TextFieldTitle="<%$ Resources:ContentResources, Title %>"
runat="server"
Width="350"
Height="300"
Mode="Input"
AllowCloseButton="true"
ShowOnLoad="false">
<Commands>
<sf:CommandToolboxItem Text="<%$ Resources:ContentResources, ShareThisContent %>" CommandName="shareContent" CommandType="SaveButton" WrapperTagName="LI" />
<sf:CommandToolboxItem Text="<%$ Resources:Labels, Cancel %>" CommandName="cancel" CommandType="CancelButton" WrapperTagName="LI" />
</Commands>
</sf:PromptDialog>
<sf:PromptDialog
ID="unshareContentDialog"
Message="<%$ Resources:ContentResources, AreYouSureYouWantToUnshareThisContent %>"
runat="server"
Width="300"
Height="300"
Mode="Confirm"
AllowCloseButton="true"
InputRows="5"
ShowOnLoad="false">
<Commands>
<sf:CommandToolboxItem Text="<%$ Resources:ContentResources, UnshareThisContent %>" CommandName="unshareContent" CommandType="NormalButton" WrapperTagName="LI" />
<sf:CommandToolboxItem Text="<%$ Resources:Labels, Cancel %>" CommandName="cancel" CommandType="CancelButton" WrapperTagName="LI" />
</Commands>
</sf:PromptDialog>
<sf:FormManager ID="formManager" runat="server" />
<div id="editView" class="sfContentBlocksDesignerWrp">
<sf:HtmlField
ID="htmlEditor"
runat="server"
Width="99%"
Height="370px"
EditorContentFilters="DefaultFilters"
EditorStripFormattingOptions="MSWord,Css,Font,Span,ConvertWordLists"
DisplayMode="Write"
FixCursorIssue="True">
</sf:HtmlField>
<sf:CommandBar id="editViewCommandBar" runat="server" WrapperTag="div" WrapperCssClass="sfContentBlocksBtnAreaBottom">
<Commands>
<sf:CommandToolboxItem runat="server" CommandName="selectSharedContent" CommandType="NormalButton" CssClass="sfChange" Text="<%$Resources:ContentResources, SelectFromExistingSharedContent %>" />
<sf:CommandToolboxItem runat="server" CommandName="shareContent" CommandType="NormalButton" CssClass="sfChange" Text="<%$Resources:ContentResources, ShareThisContentAcrossPages %>" />
</Commands>
</sf:CommandBar>
</div>
<div id="previewAndEditContentView" class="sfContentBlocksDesignerWrp">
<div class="sfNeutral sfClearfix">
<asp:Label ID="sharedContentLabel" runat="server" Text="<%$Resources:ContentResources, ThisContentIsShared %>"></asp:Label>
<asp:HyperLink ID="viewPagesLink" runat="server" NavigateUrl="javascript:void(0);" CssClass="">
<asp:Literal ID="viewPagesLiteral" runat="server" Text="<%$Resources:ContentResources, ViewAffectedPages %>" />
</asp:HyperLink>
<div id="editOutDatedContentView">
<span class="sfFailure">
<asp:Literal ID="newerVersionLabel1" runat="server" Text="<%$Resources:ContentResources, ThereIsNewerVersionOfThisContent %>" />
<asp:HyperLink ID="previewLink" runat="server" NavigateUrl="javascript:void(0);" CssClass="">
<asp:Literal ID="previewLiteral" runat="server" Text="<%$Resources:Labels, Preview %>" />
</asp:HyperLink>
<asp:Literal ID="orLabel" runat="server" Text="<%$Resources:Labels, or %>" />
<asp:HyperLink ID="updateLink" runat="server" NavigateUrl="javascript:void(0);" CssClass="">
<asp:Literal ID="updateLiteral" runat="server" Text="<%$Resources:Labels, Update %>" />
</asp:HyperLink>
<asp:Literal ID="newerVersionLabel2" runat="server" Text="<%$Resources:ContentResources, WithTheNewerVersion %>" />
</span>
</div>
<sf:CommandBar id="commandBar" runat="server" WrapperTag="div" WrapperCssClass="sfContentBlocksBtnAreaTop">
<Commands>
<sf:CommandToolboxItem runat="server" CommandName="editContent" CommandType="NormalButton" CssClass="sfChange" Text="<%$Resources:ContentResources, EditThisContent %>" />
<sf:CommandToolboxItem runat="server" CommandName="unshareContent" CommandType="NormalButton" CssClass="sfChange" Text="<%$Resources:ContentResources, Unshare %>" />
</Commands>
</sf:CommandBar>
</div>
<sf:SitefinityLabel id="contentLabel" runat="server" WrapperTagName="div" CssClass="sfSharedContentPreviewWrp"></sf:SitefinityLabel>
<sf:HtmlField
ID="contentEditor"
runat="server"
Width="99%"
Height="370px"
EditorContentFilters="DefaultFilters"
EditorStripFormattingOptions="MSWord,Css,Font,Span,ConvertWordLists"
DisplayMode="Write"
FixCursorIssue="True">
</sf:HtmlField>
</div>
<sf:ClientLabelManager id="clientLabelManager" runat="server">
<Labels>
<sf:ClientLabel ClassId="ContentResources" Key="ThisContentIsShared" runat="server" />
<sf:ClientLabel ClassId="ContentResources" Key="ThisContentIsSharedAccross" runat="server" />
<sf:ClientLabel ClassId="ContentResources" Key="ViewAffectedPages" runat="server" />
<sf:ClientLabel ClassId="PageResources" Key="Page" runat="server" />
<sf:ClientLabel ClassId="PageResources" Key="Pages" runat="server" />
<sf:ClientLabel ClassId="Labels" Key="Back" runat="server" />
<sf:ClientLabel ClassId="Labels" Key="SaveChanges" runat="server" />
<sf:ClientLabel ClassId="Labels" Key="Save" runat="server" />
</Labels>
</sf:ClientLabelManager>
<script type="text/javascript">
$("body").addClass("sfContentBlockDesigner");
</script>