<%@ Control Language="c#" AutoEventWireup="false" Codebehind="DefaultPermissionListControl.ascx.cs" Inherits="CommunityServer.ControlPanel.BlogAdmin.DefaultPermissionListControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register TagPrefix="CP" Namespace="CommunityServer.ControlPanel.Controls" Assembly="CommunityServer.Web" %>
<script type="text/javascript">
  function onCallbackError(excString)
  {
    if (confirm('<%= CommunityServer.ControlPanel.Components.ResourceManager.GetString("CP_CallBackWarning") %>')) alert(excString); 
    <%= Grid1.ClientID %>.Page(1); 
  }
</script>
<div id="GrayGrid">
	<CA:grid id="Grid1" runat="server">
		<Levels>
			<CA:gridlevel datakeyfield="RoleIDString">
				<Columns>
					<CA:gridcolumn AllowEditing="False" datafield="Name" headingtext="ResourceManager.CP_Blog_GridCol_Name" />
					<CA:gridcolumn columntype="CheckBox" datafield="View" headingtext="ResourceManager.CP_Blog_GridCol_View"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="Post" headingtext="ResourceManager.CP_Blog_GridCol_Post"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="Reply" headingtext="ResourceManager.CP_Blog_GridCol_Reply"
						align="Center" AllowEditing="True" />
					<ca:gridcolumn columntype="CheckBox" datafield="Ink" headingtext="ResourceManager.CP_PermissionList_Ink"
						align="Center" AllowEditing="True" />
					<ca:gridcolumn columntype="CheckBox" datafield="Video" headingtext="ResourceManager.CP_PermissionList_Video"
						align="Center" AllowEditing="True" />						
					<CA:gridcolumn columntype="CheckBox" datafield="LocalAttachment" headingtext="ResourceManager.CP_Blog_GridCol_LocalAttachment"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="RemoteAttachment" headingtext="ResourceManager.CP_Blog_GridCol_RemoteAttachment"
						align="Center" DataCellCssClass="LastDataCell" AllowEditing="True" />
					<ca:gridcolumn visible="False" columntype="CheckBox" datafield="Video" headingtext="ResourceManager.CP_PermissionList_Video"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn datafield="RoleIDString" visible="False" />
				</Columns>
			</CA:gridlevel>
		</Levels>
	</CA:grid>
</div>
<p class="PanelSaveButton">
	<cp:resourcelinkbutton id="SaveButton" runat="server" resourcename="Save" cssclass="CommonTextButton" />
</p>
