PageRenderTime 58ms CodeModel.GetById 46ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/source/app/NOS.Wiki/AdminPages.aspx

http://github.com/agross/netopenspace
ASP.NET | 372 lines | 329 code | 37 blank | 6 comment | 5 complexity | b2b4f5a676cbef804b02d89f58bf19c3 MD5 | raw file
  1<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeBehind="AdminPages.aspx.cs" Inherits="ScrewTurn.Wiki.AdminPages" culture="auto" meta:resourcekey="PageResource2" uiculture="auto" %>
  2
  3<%@ Register TagPrefix="st" TagName="PermissionsManager" Src="~/PermissionsManager.ascx" %>
  4<%@ Register TagPrefix="st" TagName="PageSelector" Src="~/PageSelector.ascx" %>
  5<%@ Register TagPrefix="st" TagName="ProviderSelector" Src="~/ProviderSelector.ascx" %>
  6<%@ Register TagPrefix="st" TagName="PageListBuilder" Src="~/PageListBuilder.ascx" %>
  7
  8<asp:Content ID="ctnHead" ContentPlaceHolderID="head" runat="server">
  9</asp:Content>
 10
 11<asp:Content ID="ctnPages" ContentPlaceHolderID="cphAdmin" runat="server">
 12	<script type="text/javascript">
 13	<!--
 14		function __ShowDraftPreview() {
 15			document.getElementById("DraftPreviewDiv").style["display"] = "";
 16			return false;
 17		}
 18	// -->
 19	</script>
 20
 21	<h2 class="sectiontitle"><asp:Literal ID="lblPages" runat="server" Text="Wiki Pages" EnableViewState="False" meta:resourcekey="lblPagesResource1" /></h2>
 22	
 23	<anthem:Panel ID="pnlList" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="pnlListResource1" UpdateAfterCallBack="True">
 24		<div class="rightaligned">
 25			<asp:Button ID="btnNewPage" runat="server" Text="New Page" ToolTip="Create a new Page"
 26				OnClick="btnNewPage_Click" meta:resourcekey="btnNewPageResource1" />
 27			<br /><br />
 28			<anthem:Button ID="btnBulkMigrate" runat="server" Text="Bulk Migrate" ToolTip="Migrate many Pages to another namespace"
 29				AutoUpdateAfterCallback="true" OnClick="btnBulkMigrate_Click" meta:resourcekey="btnBulkMigrateResource1" />
 30		</div>
 31		
 32		<div id="NamespaceSelectorDiv">
 33			<asp:Literal ID="lblNamespace" runat="server" Text="Namespace" EnableViewState="False" meta:resourcekey="lblNamespaceResource1" /><br />
 34			<anthem:DropDownList ID="lstNamespace" runat="server" AutoCallBack="True" OnSelectedIndexChanged="lstNamespace_SelectedIndexChanged" Width="150px" meta:resourcekey="lstNamespaceResource1" />
 35		</div>
 36		<div id="FilterDiv">
 37			<anthem:CheckBox ID="chkOrphansOnly" runat="server" Text="Display orphan pages only" AutoCallBack="True" 
 38				OnCheckedChanged="btnFilter_Click" meta:resourcekey="chkOrphansOnlyResource1" />
 39			&nbsp;&nbsp;&nbsp;&nbsp;
 40			<anthem:TextBox ID="txtFilter" runat="server" CssClass="searchtextbox" ToolTip="Filter Pages by name" meta:resourcekey="txtFilterResource1" />
 41			<anthem:ImageButton ID="btnFilter" runat="server" ToolTip="Apply Filter" ImageUrl="~/Images/Filter.png"
 42				ImageUrlDuringCallBack="~/Images/Filter.png" EnableViewState="False" 
 43				CssClass="imagebutton" OnClick="btnFilter_Click" meta:resourcekey="btnFilterResource1" />
 44		</div>
 45		
 46		<div id="PageSelectorDiv">
 47			<st:PageSelector ID="pageSelector" runat="server" PageSize='<%# PageSize %>' OnSelectedPageChanged="pageSelector_SelectedPageChanged" />
 48		</div>
 49		
 50		<div id="PagesListContainerDiv">
 51			<anthem:Repeater ID="rptPages" runat="server"
 52				OnDataBinding="rptPages_DataBinding" OnItemCommand="rptPages_ItemCommand">
 53				<HeaderTemplate>
 54					<table cellpadding="0" cellspacing="0" class="generic">
 55						<thead>
 56						<tr class="tableheader">
 57							<th><asp:Literal ID="lblName" runat="server" EnableViewState="False" meta:resourcekey="lblNameResource1" Text="Name" /></th>
 58							<th><asp:Literal ID="lblCurrentTitle" runat="server" EnableViewState="False" meta:resourcekey="lblCurrentTitleResource1" Text="Current Title" /></th>
 59							<th><asp:Literal ID="lblCreatedOn" runat="server" EnableViewState="False" meta:resourcekey="lblCreatedOnResource1" Text="Created On" /></th>
 60							<th><asp:Literal ID="lblCreatedBy" runat="server" EnableViewState="False" meta:resourcekey="lblCreatedByResource1" Text="Created By" /></th>
 61							<th><asp:Literal ID="lblLastModifiedOn" runat="server" EnableViewState="False" meta:resourcekey="lblLastModifiedOnResource1" Text="Modified On" /></th>
 62							<th><asp:Literal ID="lblLastModifiedBy" runat="server" EnableViewState="False" meta:resourcekey="lblLastModifiedByResource1" Text="Modified By" /></th>
 63							<th><asp:Literal ID="lblDiscussion" runat="server" EnableViewState="False" meta:resourcekey="lblDiscussionResource1" Text="Disc." /></th>
 64							<th><asp:Literal ID="lblRevisions" runat="server" EnableViewState="False" meta:resourcekey="lblRevisionsResource1" Text="Rev." /></th>
 65							<th><asp:Literal ID="lblOrphan" runat="server" EnableViewState="False" meta:resourcekey="lblOrphanResource1" Text="Orphan" /></th>
 66							<th><asp:Literal ID="lblProvider" runat="server" EnableViewState="False" meta:resourcekey="lblProviderResource1" Text="Provider" /></th>
 67							<th>&nbsp;</th>
 68						</tr>
 69						</thead>
 70						<tbody>
 71				</HeaderTemplate>
 72				<ItemTemplate>
 73					<tr class='tablerow<%# Eval("AdditionalClass") %>'>
 74						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPage %>'><%# ScrewTurn.Wiki.PluginFramework.NameTools.GetLocalName((string)Eval("FullName")) %></a></td>
 75						<td><%# Eval("Title") %></td>
 76						<td><%# Eval("CreatedOn") %></td>
 77						<td><%# Eval("CreatedBy") %></td>
 78						<td><%# Eval("LastModifiedOn") %></td>
 79						<td><%# Eval("LastModifiedBy") %></td>
 80						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?Discuss=1' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPageDiscussion %>'><%# Eval("Discussion") %></a></td>
 81						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?History=1' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPageHistory %>'><%# Eval("Revisions") %></a></td>
 82						<td><%# (bool)Eval("IsOrphan") ? "<span class=\"resulterror\">" + ScrewTurn.Wiki.Properties.Messages.Yes + "</span>" : ""%></td>
 83						<td><%# Eval("Provider") %></td>
 84						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?Edit=1' title='<%= ScrewTurn.Wiki.Properties.Messages.EditThisPage %>'><asp:Literal ID="lblEdit" runat="server" Text="Edit" EnableViewState="False" meta:resourcekey="lblEditResource1" /></a>
 85							&bull;
 86							<anthem:LinkButton ID="btnSelect" runat="server" Visible='<%# (bool)Eval("CanSelect") %>' Text="Select" 
 87								ToolTip="Select this Page for administration" CommandName="Select" CommandArgument='<%# Eval("FullName") %>' meta:resourcekey="btnSelectResource1" />
 88							&bull;
 89							<anthem:LinkButton ID="btnPermissions" runat="server" Visible='<%# (bool)Eval("CanSetPermissions") %>' Text="Permissions" 
 90								ToolTip="Manage Permissions for this Page" CommandName="Perms" CommandArgument='<%# Eval("FullName") %>' meta:resourcekey="btnPermissionsResource1" />
 91						</td>
 92					</tr>
 93				</ItemTemplate>
 94				<AlternatingItemTemplate>
 95					<tr class='tablerowalternate<%# Eval("AdditionalClass") %>'>
 96						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPage %>'><%# ScrewTurn.Wiki.PluginFramework.NameTools.GetLocalName((string)Eval("FullName")) %></a></td>
 97						<td><%# Eval("Title") %></td>
 98						<td><%# Eval("CreatedOn") %></td>
 99						<td><%# Eval("CreatedBy") %></td>
100						<td><%# Eval("LastModifiedOn") %></td>
101						<td><%# Eval("LastModifiedBy") %></td>
102						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?Discuss=1' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPageDiscussion %>'><%# Eval("Discussion") %></a></td>
103						<td><a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?History=1' target="_blank" title='<%= ScrewTurn.Wiki.Properties.Messages.GoToPageHistory %>'><%# Eval("Revisions") %></a></td>
104						<td><%# (bool)Eval("IsOrphan") ? "<span class=\"resulterror\">" + ScrewTurn.Wiki.Properties.Messages.Yes + "</span>" : ""%></td>
105						<td><%# Eval("Provider") %></td>
106						<td>
107							<a href='<%# Eval("FullName") %><%= ScrewTurn.Wiki.Settings.PageExtension %>?Edit=1' title='<%= ScrewTurn.Wiki.Properties.Messages.EditThisPage %>'><asp:Literal ID="lblEdit" runat="server" Text="Edit" EnableViewState="False" meta:resourcekey="lblEditResource2" /></a>
108							&bull;
109							<anthem:LinkButton ID="btnSelect" runat="server" Visible='<%# (bool)Eval("CanSelect") %>' Text="Select" 
110								ToolTip="Select this Page for administration" CommandName="Select" CommandArgument='<%# Eval("FullName") %>' meta:resourcekey="btnSelectResource2" />
111							&bull;
112							<anthem:LinkButton ID="btnPermissions" runat="server" Visible='<%# (bool)Eval("CanSetPermissions") %>' Text="Permissions" 
113								ToolTip="Manage Permissions for this Page" CommandName="Perms" CommandArgument='<%# Eval("FullName") %>' meta:resourcekey="btnPermissionsResource2" />
114						</td>
115					</tr>
116				</AlternatingItemTemplate>
117				<FooterTemplate>
118					</tbody>
119					</table>
120				</FooterTemplate>
121			</anthem:Repeater>
122		</div>
123	</anthem:Panel>
124	
125	<anthem:Panel ID="pnlEditPage" runat="server" AutoUpdateAfterCallBack="True" 
126		Visible="False" meta:resourcekey="pnlEditPageResource1" UpdateAfterCallBack="True">
127		<div id="EditPageDiv">
128			<h2 class="separator"><asp:Literal ID="lblEditTitle" runat="server" Text="Page Operations" EnableViewState="False" meta:resourcekey="lblEditTitleResource1" />
129			(<asp:Literal ID="lblCurrentPage" runat="server" meta:resourcekey="lblCurrentPageResource1" />)</h2>
130			<br />
131			
132			<anthem:Panel ID="pnlApproveRevision" runat="server" 
133				AutoUpdateAfterCallBack="True" meta:resourcekey="pnlApproveRevisionResource1">
134				<div class="pagefeaturecontainerapprove">
135					<h3><asp:Literal ID="lblApproveTitle" runat="server" Text="Approve/Reject Draft" EnableViewState="False" meta:resourcekey="lblApproveTitleResource1" /></h3>
136					<br />
137					<asp:Literal ID="lblSavedOn" runat="server" Text="Saved on:" EnableViewState="False" meta:resourcekey="lblSavedOnResource1" />
138					<b><asp:Literal ID="lblDateTime" runat="server" meta:resourcekey="lblDateTimeResource1" /></b><br />
139					<asp:Literal ID="lblBy" runat="server" Text="By:" EnableViewState="False" meta:resourcekey="lblByResource1" />
140					<b><asp:Literal ID="lblUser" runat="server" meta:resourcekey="lblUserResource1" /></b><br /><br />
141					<a href="#" onclick="javascript:return __ShowDraftPreview();">Preview</a> &bull;
142					<asp:HyperLink ID="lnkDiff" runat="server" Text="Diff" ToolTip="Show changes" Target="_blank" meta:resourcekey="lnkDiffResource1" /> &bull;
143					<asp:HyperLink ID="lnkEdit" runat="server" Text="Edit" ToolTip="Edit this Draft" meta:resourcekey="lnkEditResource1" />
144					<br /><br />
145					<anthem:Button ID="btnApprove" runat="server" Text="Approve" ToolTip="Approve this Revision"
146						PreCallBackFunction="RequestConfirm" OnClick="btnApprove_Click" meta:resourcekey="btnApproveResource1" />
147					<anthem:Button ID="btnReject" runat="server" Text="Reject" ToolTip="Reject this Revision"
148						PreCallBackFunction="RequestConfirm" OnClick="btnReject_Click" meta:resourcekey="btnRejectResource1" />
149					<br />
150					<anthem:Label ID="lblApproveResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblApproveResultResource1" />
151				</div>
152			</anthem:Panel>
153			
154			<anthem:Panel ID="pnlRename" runat="server" AutoUpdateAfterCallBack="True" 
155				meta:resourcekey="pnlRenameResource1">
156				<div class="pagefeaturecontainer">
157					<h3><asp:Literal ID="lblRenamePageTitle" runat="server" Text="Rename Page" EnableViewState="False" meta:resourcekey="lblRenamePageTitleResource1" /></h3>
158					<br />
159					<asp:Literal ID="lblNewName" runat="server" Text="New Name" EnableViewState="False" meta:resourcekey="lblNewNameResource1" /><br />
160					<anthem:TextBox ID="txtNewName" runat="server" Width="200px" ValidationGroup="renpage" meta:resourcekey="txtNewNameResource1" /><br />
161					<anthem:CheckBox ID="chkShadowPage" runat="server" Text="Keep shadow Page" Checked="True"
162						ToolTip="Keep the old Page and set it to auto-redirect to the new Page" meta:resourcekey="chkShadowPageResource1" />
163					<br /><br />
164					<anthem:Button ID="btnRename" runat="server" Text="Rename" ToolTip="Rename the Page"
165						PreCallBackFunction="RequestConfirm" OnClick="btnRename_Click" ValidationGroup="renpage" meta:resourcekey="btnRenameResource1" />
166					<br />
167					<anthem:RequiredFieldValidator ID="rfvNewName" runat="server" Display="Dynamic" ValidationGroup="renpage"
168						ControlToValidate="txtNewName" CssClass="resulterror" ErrorMessage="New Name is required" meta:resourcekey="rfvNewNameResource1" />
169					<anthem:CustomValidator ID="cvNewName" runat="server" Display="Dynamic" ValidationGroup="renpage"
170						ControlToValidate="txtNewName" CssClass="resulterror" ErrorMessage="Invalid Page Name" OnServerValidate="cvNewName_ServerValidate" 
171						meta:resourcekey="cvNewNameResource1" />
172					<anthem:Label ID="lblRenameResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblRenameResultResource1" />
173				</div>
174			</anthem:Panel>
175			
176			<anthem:Panel ID="pnlMigrate" runat="server" AutoUpdateAfterCallBack="true" meta:resourcekey="pnlMigrateResource1">
177				<div class="pagefeaturecontainer">
178					<h3><asp:Literal ID="lblMigratePageTitle" runat="server" Text="Migrate Page" EnableViewState="false" meta:resourcekey="lblMigratePageTitleResource1" /></h3>
179					<br />
180					<asp:Literal ID="lblTargetNamespace" runat="server" Text="Target Namespace" EnableViewState="false" meta:resourcekey="lblTargetNamespaceResource1" />
181					<br />
182					<anthem:DropDownList ID="lstTargetNamespace" runat="server" Width="200px" meta:resourcekey="lstTargetNamespaceResource1" />
183					<br />
184					<anthem:CheckBox ID="chkCopyCategories" runat="server" Text="Copy Page Categories" ToolTip="Copy Page Categories to target Namespace"
185						AutoUpdateAfterCallBack="true" meta:resourcekey="chkCopyCategoriesResource1" />
186					<br /><br />
187					<anthem:Button ID="btnMigrate" runat="server" Text="Migrate" ToolTip="Migrate the Page"
188						PreCallBackFunction="RequestConfirm" OnClick="btnMigrate_Click" meta:resourcekey="btnMigrateResource1" />
189					<anthem:Label ID="lblMigrateResult" runat="server" AutoUpdateAfterCallBack="true" meta:resourcekey="lblMigrateResource1" />
190				</div>
191			</anthem:Panel>
192			
193			<anthem:Panel ID="pnlRollback" runat="server" AutoUpdateAfterCallBack="True" 
194				meta:resourcekey="pnlRollbackResource1" UpdateAfterCallBack="True">
195				<div class="pagefeaturecontainer">
196					<h3><asp:Literal ID="lblRollbackPageTitle" runat="server" Text="Rollback Page" EnableViewState="False" meta:resourcekey="lblRollbackPageTitleResource1" /></h3>
197					<br />
198					<asp:Literal ID="lblRevision" runat="server" Text="Target Revision" EnableViewState="False" meta:resourcekey="lblRevisionResource1" /><br />
199					<anthem:DropDownList ID="lstRevision" runat="server" Width="200px" ToolTip="Available revisions, newer first" meta:resourcekey="lstRevisionResource1" />
200					<br /><br />
201					<anthem:Button ID="btnRollback" runat="server" Text="Rollback" ToolTip="Rollback the Page"
202						PreCallBackFunction="RequestConfirm" OnClick="btnRollback_Click" meta:resourcekey="btnRollbackResource1" />
203					<br />
204					<anthem:Label ID="lblRollbackResult" runat="server" 
205						AutoUpdateAfterCallBack="True" meta:resourcekey="lblRollbackResultResource1" />
206				</div>
207			</anthem:Panel>
208			
209			<anthem:Panel ID="pnlDeleteBackups" runat="server" 
210				AutoUpdateAfterCallBack="True" meta:resourcekey="pnlDeleteBackupsResource1" UpdateAfterCallBack="True">
211				<div class="pagefeaturecontainer">
212					<h3><asp:Literal ID="lblDeleteBackupsTitle" runat="server" Text="Delete Backups" EnableViewState="False" meta:resourcekey="lblDeleteBackupsTitleResource1" /></h3>
213					<br />
214					<anthem:RadioButton ID="rdoAllBackups" runat="server" Text="Delete all Backups" GroupName="baks"
215						AutoCallBack="True" OnCheckedChanged="rdoBackup_CheckedChanged" meta:resourcekey="rdoAllBackupsResource1" /><br />
216					<anthem:RadioButton ID="rdoUpTo" runat="server" Text="Delete Backups older than and including"
217						GroupName="baks" AutoCallBack="True" OnCheckedChanged="rdoBackup_CheckedChanged" meta:resourcekey="rdoUpToResource1" /><br />
218					<anthem:DropDownList ID="lstBackup" runat="server" Width="200px" 
219						Enabled="False" ToolTip="Available Backups, newer first" meta:resourcekey="lstBackupResource1" />
220					<br /><br />
221					<anthem:Button ID="btnDeleteBackups" runat="server" Text="Delete" ToolTip="Delete the Page's Backups"
222						PreCallBackFunction="RequestConfirm" OnClick="btnDeleteBackups_Click" meta:resourcekey="btnDeleteBackupsResource1" />
223					<br />
224					<anthem:Label ID="lblBackupResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblBackupResultResource1" />
225				</div>
226			</anthem:Panel>
227			
228			<anthem:Panel ID="pnlClearDiscussion" runat="server" 
229				AutoUpdateAfterCallBack="True" meta:resourcekey="pnlClearDiscussionResource1">
230				<div class="pagefeaturecontainer">
231					<h3><asp:Literal ID="lblClearDiscussionTitle" runat="server" Text="Clear Page Discussion" EnableViewState="False" meta:resourcekey="lblClearDiscussionTitleResource1" /></h3>
232					<br />
233					<anthem:Button ID="btnClearDiscussion" runat="server" Text="Clear Discussion" ToolTip="Delete all Messages in the Page's Discussion"
234						PreCallBackFunction="RequestConfirm" OnClick="btnClearDiscussion_Click" meta:resourcekey="btnClearDiscussionResource1" />
235					<br />
236					<anthem:Label ID="lblDiscussionResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblDiscussionResultResource1" />
237				</div>
238			</anthem:Panel>
239			
240			<anthem:Panel ID="pnlDelete" runat="server" AutoUpdateAfterCallBack="True" 
241				meta:resourcekey="pnlDeleteResource1" UpdateAfterCallBack="True">
242				<div class="pagefeaturecontainerwarning">
243					<h3><asp:Literal ID="lblDeletePage" runat="server" Text="Delete Page" EnableViewState="False" meta:resourcekey="lblDeletePageResource1" /></h3>
244					<br />
245					<anthem:Button ID="btnDeletePage" runat="server" Text="Delete Page" ToolTip="Delete this Page"
246						PreCallBackFunction="RequestConfirm" OnClick="btnDeletePage_Click" meta:resourcekey="btnDeletePageResource1" />
247					<br />
248					<anthem:Label ID="lblDeleteResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblDeleteResultResource1" />
249				</div>
250			</anthem:Panel>
251			
252			<div id="ButtonsDiv">
253				<anthem:Button ID="btnBack" runat="server" Text="Back" ToolTip="Back to the Page list" OnClick="btnBack_Click" CausesValidation="False" meta:resourcekey="btnBackResource1" />
254			</div>
255		</div>
256	</anthem:Panel>
257	
258	<anthem:Panel ID="pnlPermissions" runat="server" AutoUpdateAfterCallBack="True" 
259		Visible="False" meta:resourcekey="pnlPermissionsResource1">
260	
261		<h2 class="separator">
262			<asp:Literal ID="lblPagePermissions" runat="server" Text="Page Permissions" EnableViewState="False" meta:resourcekey="lblPagePermissionsResource1" />
263			(<asp:Literal ID="lblPageName" runat="server" meta:resourcekey="lblPageNameResource1" />)
264		</h2>
265		
266		<div id="PermissionsTemplatesDiv">
267			<a href="#" onclick="javascript:document.getElementById('PermissionsTemplatesContainerDiv').style['display'] = ''; return false;">
268				<asp:Literal ID="lblPermissionsTemplates" runat="server" Text="Permissions Templates" EnableViewState="False" meta:resourcekey="lblPermissionsTemplatesResource1" />...
269			</a>
270			<div id="PermissionsTemplatesContainerDiv" style="display: none;">
271				<br />
272				<ul>
273					<li>
274						<anthem:LinkButton ID="btnPublic" runat="server" Text="Public" 
275							ToolTip="Use this Template" PreCallBackFunction="RequestConfirm" 
276							OnClick="btnPublic_Click" meta:resourcekey="btnPublicResource1" /><br />
277						<small>
278							<asp:Literal ID="lblPublicInfo" runat="server" 
279								Text="Anyone, including anonymous users, can <b>edit</b> this page." 
280								EnableViewState="False" meta:resourcekey="lblPublicInfoResource1" />
281						</small>
282					</li>
283					<li>
284						<anthem:LinkButton ID="btnAsNamespace" runat="server" Text="As Namespace" 
285							ToolTip="Use this Template" PreCallBackFunction="RequestConfirm" 
286							OnClick="btnAsNamespace_Click" meta:resourcekey="btnAsNamespaceResource1" /><br />
287						<small>
288							<asp:Literal ID="lblNormalInfo" runat="server" 
289								Text="Inherit permissions from the parent namespace." EnableViewState="False" 
290								meta:resourcekey="lblNormalInfoResource1" />
291						</small>
292					</li>
293					<li>
294						<anthem:LinkButton ID="btnLocked" runat="server" Text="Locked" 
295							ToolTip="Use this Template" PreCallBackFunction="RequestConfirm" 
296							OnClick="btnLocked_Click" meta:resourcekey="btnLockedResource1" /><br />
297							<small>
298								<asp:Literal ID="lblLockedInfo" runat="server" 
299									Text="Only Administrators can <b>edit</b> this page." EnableViewState="False" 
300									meta:resourcekey="lblLockedInfoResource1" />
301							</small>
302					</li>
303				</ul>
304				<br />
305				<small>
306					<asp:Literal ID="lblPermissionsTemplatesInfo" runat="server" 
307						Text="<b>Warning</b>: setting a template will replace all existing permissions for the default user groups." 
308						EnableViewState="False" meta:resourcekey="lblPermissionsTemplatesInfoResource1" />
309				</small>
310			</div>
311		</div>
312	
313		<st:PermissionsManager ID="permissionsManager" runat="server" CurrentResourceType="Pages" />
314		
315		<div id="ButtonsDiv2">
316			<asp:Button ID="btnBack2" runat="server" Text="Back" ToolTip="Back to the Page list" OnClick="btnBack_Click" meta:resourcekey="btnBack2Resource1" />
317		</div>
318	
319	</anthem:Panel>
320	
321	<anthem:Panel ID="pnlBulkMigrate" runat="server" Visible="false" AutoUpdateAfterCallBack="true">
322		<div id="PageBulkMigrateDiv">
323			<div id="PageSelectionDiv">			
324				<h3 class="separator"><asp:Literal ID="lblBulkStep1" runat="server" Text="1. Select Pages" EnableViewState="false" meta:resourcekey="lblBulkStep1Resource1" /></h3>
325				
326				<st:ProviderSelector ID="providerSelector" runat="server" ProviderType="Pages"
327					AutoPostBack="true" OnSelectedProviderChanged="providerSelector_SelectedProviderChanged" />
328				<br /><br />
329				
330				<st:PageListBuilder ID="pageListBuilder" runat="server" />
331			</div>
332			
333			<div id="NamespaceSelectionDiv">
334				<h3 class="separator"><asp:Literal ID="lblBulkStep2" runat="server" Text="2. Select Target Namespace" EnableViewState="false" meta:resourcekey="lblBulkStep2Resource1" /></h3>
335				
336				<asp:Literal ID="lblBulkMigarateInfo" runat="server" Text="<b>Note</b>: this list only displays namespaces in which you are allowed to manage all pages." EnableViewState="false"
337					meta:resourcekey="lblBulkMigrateInfoResource1" />
338				<br /><br />
339				
340				<anthem:DropDownList ID="lstBulkMigrateTargetNamespace" runat="server" CssClass="dropdown" AutoUpdateAfterCallBack="true" />
341			</div>
342			
343			<div id="BatchControlDiv">
344				<h3 class="separator"><asp:Literal ID="lblBulkStep3" runat="server" Text="3. Perform Migration" EnableViewState="false" meta:resourcekey="lblBulkStep3Resource1" /></h3>
345				<asp:CheckBox ID="chkBulkMigrateCopyCategories" runat="server" Text="Copy Page Categories" ToolTip="Copy Page Categories to target Namespace" meta:resourcekey="chkBulkMigrateCopyCategoriesResource1" />
346				<br /><br />
347				
348				<asp:Literal ID="lblBulkMigrateInfo2" runat="server" Text="<b>Note</b>: the default page of the namespace cannot be migrated and is silently skipped." EnableViewState="false"
349					meta:resourcekey="lblBulkMigrateInfo2Resource1" />
350				<br /><br />
351				
352				<anthem:Button ID="btnBulkMigratePages" runat="server" Text="Migrate" OnClientClick="javascript:return RequestConfirm();" OnClick="btnBulkMigratePages_Click"
353					AutoUpdateAfterCallBack="true" meta:resourcekey="btnBulkMigratePagesResource1" /><br />
354				<anthem:Label ID="lblBulkMigrateResult" runat="server" AutoUpdateAfterCallBack="true" />
355			</div>
356			
357			<div id="ButtonsDiv3">
358				<anthem:Button ID="btnBulkMigrateBack" runat="server" Text="Back" ToolTip="Back to the Page list" OnClick="btnBulkMigrateBack_Click"
359					CausesValidation="False" meta:resourcekey="btnBulkMigrateBackResource1" />
360			</div>
361		</div>
362	</anthem:Panel>
363	
364	<div id="DraftPreviewDiv" style="display: none;">
365		<anthem:Label ID="lblDraftPreview" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblDraftPreviewResource1" />
366	</div>
367	
368	<anthem:HiddenField ID="txtCurrentPage" runat="server" AutoUpdateAfterCallBack="True" />
369	
370	<div style="clear: both;"></div>
371
372</asp:Content>