<%@ Control Inherits="Xpdt.Portal.Roles" CodeBehind="Roles.ascx.cs" Language="c#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<TABLE class="ModuleFrame" width="100%">
	<TR>
		<TD><portal:title id="Title1" runat="server"></portal:title>
			<table cellSpacing="0" cellPadding="2" border="0">
				<tr vAlign="top">
					<td class="<%# GetNormalStyle(  ) %>" width=100 
            >&nbsp;
					</td>
					<td><asp:datalist id="rolesList" runat="server" DataKeyField="RoleID">
							<ItemTemplate>
								<asp:ImageButton ImageUrl="~/images/edit.gif" CommandName="edit" AlternateText="Edit this item" runat="server" />
								<asp:ImageButton ImageUrl="~/images/delete.gif" CommandName="delete" AlternateText="Delete this item"
									runat="server" />
								&nbsp;&nbsp;
								<asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "RoleName") %>' cssclass="Normal" runat="server" />
							</ItemTemplate>
							<EditItemTemplate>
								<asp:Textbox id="roleName" width="200" cssclass="NormalTextBox" Text='<%# DataBinder.Eval(Container.DataItem, "RoleName") %>' runat="server" />
								&nbsp;
								<asp:LinkButton Text="Apply" CommandName="apply" cssclass="CommandButton" runat="server" />
								&nbsp;
								<asp:LinkButton Text="Change Role Members" CommandName="members" cssclass="CommandButton" runat="server" />
							</EditItemTemplate>
						</asp:datalist></td>
				</tr>
				<tr>
					<td>&nbsp;
					</td>
					<td><asp:linkbutton id="AddRoleBtn" runat="server" Text="Add New Role" cssclass="CommandButton">
							Add New Role</asp:linkbutton></td>
				</tr>
			</table>
			<PORTAL:DIVIDER id="Divider1" runat="server"></PORTAL:DIVIDER></TD>
	</TR>
</TABLE>
