<%@ Page language="c#" Codebehind="DefaultPermissionList.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.WikiAdmin.DefaultPermissionList" MasterPageFile="~/ControlPanel/Masters/WikiAdmin.master" %>

<asp:Content ContentPlaceHolderId="DescriptionRegion" runat="server">
	<cp:resourcecontrol id="SectionDescription" runat="server" resourcename="CP_Wiki_NavBar_DefaultPerms"></cp:resourcecontrol>
</asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
    <CP:ControlPanelSelectedNavigation runat="server" SelectedNavItem="WikiPermissions" />
	<DIV class="CommonDescription">
		<CP:ResourceControl id="Section_Sub_Description" runat="server" ResourceName="CP_Wiki_DefaultPermissionsList_SubTitle"></CP:ResourceControl><BR>
	</DIV>
	
    <asp:Repeater runat="server" ID="PermissionList">
        <HeaderTemplate>
            <br/>
            <table cellSpacing=0 cellPadding=0 width="100%">
            <tbody>
                <tr>
                    <th class="CommonListHeaderLeftMost"><CP:ResourceControl runat="server" ResourceName="CP_Forums_GridCol_Name" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Create" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Comment" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Edit" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Move" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Delete" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Lock" /></th>
                    <th class="CommonListHeader PermissionHeaderCenter"><CP:ResourceControl runat="server" ResourceName="CP_PermGrid_Moderate" /></th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td class="CommonListCellLeftMost"><%# Eval("RoleName") %><asp:HiddenField ID="RoleId" runat="server" Value='<%# Eval("RoleId") %>' Visible="false" /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="PostCheckbox" Checked='<%# Eval("Create") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="ReplyCheckbox" Checked='<%# Eval("Comment") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="EditCheckbox" Checked='<%# Eval("Edit") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="MoveCheckbox" Checked='<%# Eval("Move") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="DeleteCheckbox" Checked='<%# Eval("Delete") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="LockCheckbox" Checked='<%# Eval("Lock") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="ModerateCheckbox" Checked='<%# Eval("Moderate") %>' /></td>
                </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
                <tr class="AltListRow">
                    <td class="CommonListCellLeftMost"><%# Eval("RoleName") %><asp:HiddenField ID="RoleId" runat="server" Value='<%# Eval("RoleId") %>' Visible="false" /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="PostCheckbox" Checked='<%# Eval("Create") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="ReplyCheckbox" Checked='<%# Eval("Comment") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="EditCheckbox" Checked='<%# Eval("Edit") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="MoveCheckbox" Checked='<%# Eval("Move") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="DeleteCheckbox" Checked='<%# Eval("Delete") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="LockCheckbox" Checked='<%# Eval("Lock") %>' /></td>
                    <td class="CommonListCell Status"><asp:CheckBox runat="server" ID="ModerateCheckbox" Checked='<%# Eval("Moderate") %>' /></td>
                </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <p class="PanelSaveButton">
        <cp:resourcebutton id="SaveButton" runat="server" resourcename="Save" />
    </p>
</asp:Content>