<%@ Page Title="Brightstar Device Protection: Role Hierarchy Management" Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" CodeBehind="ManageRoleHierarchy.aspx.cs" Inherits="WebSite.site.AccessManagement.Roles.ManageRoleHierarchy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    
    <h2><asp:Literal ID="m_litHeader" runat="server" Text="<%$ Resources: SecurityManagement, LabelRoleHierarchyManagement %>" /></h2>
    
    <div id="m_pnlHelpTip" class="switchcontent">
        <asp:Literal ID="m_litHelpTip1" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicMustSaveRoleHierarchyChanges %>" /><br />
    </div>

    <div>
        <asp:UpdatePanel ID="upnlManageRoleHierarchy" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td colspan="3">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblCompanies" Text="<%$ Resources: SecurityManagement, LabelOrganization %>" runat="server" />
                                </td><td>
                                    <asp:DropDownList ID="ddlCompanies" Width="400" OnSelectedIndexChanged="CompanyList_SelectedIndexChanged" AutoPostBack="true" runat="server" />
                                </td>
                            </tr><tr>
                                <td>
                                    <asp:Label ID="lblRoleName" Text="<%$ Resources: SecurityManagement, lblRoleName%>" runat="server" />
                                </td><td>
                                    <asp:DropDownList ID="ddlParentRoles" OnSelectedIndexChanged="ParentRoles_SelectedIndexChanged" AutoPostBack="true" Width="400" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr><tr>
                    <td valign="middle">
                        <asp:Label ID="lblAllRoles" Text="<%$ Resources: SecurityManagement, lblAllRoles%>"  runat="server" />
                        <br />
                        <asp:ListBox ID="lstAllRoles" SelectionMode="Multiple" Rows="20" Width="300" runat="server" />
                    </td><td valign="middle">
                        <asp:Button ID="btnAssignRoles" Width="100" Text="<%$ Resources: SecurityManagement, btnAssignRoles%>" OnClick="btnAssingRoles_Click" runat="server" />            
                        <br /><br />
                        <asp:Button ID="btnRemoveRoles" Width="100" Text="<%$ Resources: SecurityManagement, btnRemoveRoles%>" OnClick="btnRemoveRoles_Click" runat="server" />                  
                    </td><td valign="middle">
                        <asp:Label ID="lblAssignedRoles" Text="<%$ Resources: SecurityManagement, lblAssignedRoles%>" runat="server" />
                        <br />
                        <asp:ListBox ID="lstAssignedRoles" SelectionMode="Multiple" Width="300" Rows="20" runat="server" />
                    </td>
                </tr><tr>
                    <td colspan="3">
                        <asp:Button ID="btnSaveChanges" Text="<%$ Resources: SecurityManagement, btnSaveChanges%>" OnClick="btnSaveChanges_Click" runat="server" />
                    </td>
                </tr>
            </table>
           
           <asp:UpdateProgress ID="uprogress" runat="server" >
                <ProgressTemplate >
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/images/ajax-loader.gif" />
                </ProgressTemplate>
            </asp:UpdateProgress>
            
            <br /><br />

            <div id="Div1">
                <asp:Literal Visible ="false" ID="litChangesSavedMessage" runat="server" Text="<%$ Resources: SecurityManagement, LabelBoldRoleHierarchyChangeSaved%>" /><br />
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>
