<%@ Page Title="" Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="ManageUsers.aspx.cs" Inherits="ProcessDefinition.SiteAdmin.ManageUsers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

<div class="adminUsers ui-corner-all">

        <div class="ui-state-highlight infoBlurb">
    <h3>Site administrators</h3>
        Site administrators have administrator level rights to all process libraries and project libraries.  They can also
 create new process libraries, edit email templates and access the user licensing page.  Removing a user from this list will remove site admin rights but will
 leave all currently assigned rights in place to existing process libraries and project libraries.
        </div>

        <div class='siteAdmins'>
        <asp:ListView ID="lvMembers" runat="server">
            <LayoutTemplate>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
            </LayoutTemplate>
            <ItemTemplate>
                <div class='memberDetailContainer' u='<%# Eval("UserId") %>'>
                    <div class='memberDetail memberDetailImage avatar'>
                        <img src='<%# Eval("GravatarUrl") %>' width="40px" height="40px" />
                    </div>
                    <div class='memberDetail memberDetailDetails'>
                        <p>
                            <strong>
                                <%# Eval("DisplayName") %></strong></p>
                        <p>
                            <%# Eval("MemberEmailAddress") %></p>
                    </div>
                    <asp:Panel ID="pnlEditMember" runat="server" CssClass="memberDetail memberDetailIcons" Visible='<%# !IsYou(Eval("UserId")) %>'>
                        <span class="memberDelete ui-icon ui-icon-trash"></span>
                    </asp:Panel>
                    <br class="clear" />
                </div>
            </ItemTemplate>
        </asp:ListView>
        
    <div class="newMembers">
    </div>
    </div>
    
</div>
    <div class="adminUsers ui-corner-all">
        <h3>Add new site administrator:</h3>
        <br style="clear: both" />
        <textarea cols="40" rows="1" id="txtNewUsers"></textarea>
        <input type="button" value="Assign rights" id="btnAssignRights" class="ui-corner-all ui-state-default dpButton"/>
    </div>
    
    <div id="dialog" title="Remove site administrator rights?"> 
	    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>This user will have their site administrator rights removed. Are you sure?</p> 
    </div> 
    
    <p class="hBlurb ui-state-highlight">Adding a new site administrator will automatically make the user an administrator of all existing process and project libraries.  If you have existing
    site administrators that have not been created using this page then click the refresh permissions button below to assign administrator rights to all process and project libraries for all site administrators.</p>
    <asp:Button runat="server" ID="btnRefreshPermissions" Text="Refresh Permissions" OnClick="btnRefreshPermissions_OnClick" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href="..">
            Back to libraries</a></li>
    </ul>
</asp:Content>
